Skip to content

Commit dbfb702

Browse files
authored
Enable Renovate and fix its config (#70)
* Add more repositories * Migrate config to newer format, fix a few issues (e.g. concurrent & hourly limits) that would prevent all PRs to be created * Migrate config to newer format, fix a few issues (e.g. concurrent & hourly limits) that would prevent all PRs to be created * Migrate config to newer format, fix a few issues (e.g. concurrent & hourly limits) that would prevent all PRs to be created * Enable renovate
1 parent 8ef8fd6 commit dbfb702

File tree

5 files changed

+65
-121
lines changed

5 files changed

+65
-121
lines changed

renovate.json

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
{
2+
"$schema": "https://docs.renovatebot.com/renovate-schema.json",
3+
"extends": [
4+
"local>stackabletech/.github:renovate-config"
5+
]
6+
}

renovate/README.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,12 @@ This directory contains tools necessary to run Renovate manually against our rep
55
For reasons unknown to us this currently (2023-07) does not work from within Jenkins, which is why we run it manually.
66
I am not sure if we have tried to move it into a GitHub Action, which would be one reasonable thing to try.
77

8-
You need an access token for GitHub for the Stacky McStackface user.
8+
You need an access token for GitHub for the Stacky McStackface user (repo & workflow scope at least).
99
The script assumes an environment variable named `GITHUB_TOKEN` exists.
1010

1111
Then just run `run_renovate.sh`.
1212
The script `list_repos.sh` will return a list of all non-archived, non-fork repositories for Stackable.
13+
14+
## Troubleshooting
15+
16+
Search for `Skipping` (e.g. `Skipping branch deletion` or `Skipping branch creation`) to find out why a PR has not been created.

renovate/config.js

Lines changed: 51 additions & 48 deletions
Original file line numberDiff line numberDiff line change
@@ -1,49 +1,52 @@
11
module.exports = {
2-
repositories: [
3-
"stackabletech/airflow-operator",
4-
"stackabletech/beku.py",
5-
"stackabletech/commons-operator",
6-
"stackabletech/crddocs",
7-
"stackabletech/docker-images",
8-
"stackabletech/documentation",
9-
"stackabletech/documentation-ui",
10-
"stackabletech/druid-opa-authorizer",
11-
"stackabletech/druid-operator",
12-
"stackabletech/edc-operator",
13-
"stackabletech/hbase-normalizer",
14-
"stackabletech/hbase-operator",
15-
"stackabletech/hdfs-operator",
16-
"stackabletech/hdfs-topology-provider",
17-
"stackabletech/hdfs-utils",
18-
"stackabletech/hello-world-operator",
19-
"stackabletech/hive-operator",
20-
"stackabletech/image-tools",
21-
"stackabletech/kafka-operator",
22-
"stackabletech/listener-operator",
23-
"stackabletech/nifi-operator",
24-
"stackabletech/opa-bundle-builder",
25-
"stackabletech/opa-operator",
26-
"stackabletech/operator-rs",
27-
"stackabletech/operator-templating",
28-
"stackabletech/product-config",
29-
"stackabletech/secret-operator",
30-
"stackabletech/spark-k8s-operator",
31-
"stackabletech/stackable-cockpit",
32-
"stackabletech/stackable-utils",
33-
"stackabletech/superset-operator",
34-
"stackabletech/t2",
35-
"stackabletech/tokio-zookeeper",
36-
"stackabletech/trino-lb",
37-
"stackabletech/trino-operator",
38-
"stackabletech/zookeeper-operator",
39-
],
40-
gitAuthor: "\"Stacky McStackface\" <serviceaccounts@stackable.tech>",
41-
includeForks: true,
42-
logFileLevel: 'debug',
43-
logLevel: 'debug',
44-
recreateClosed: 'true',
45-
force: {
46-
schedule: [],
47-
prCreation: "immediate",
48-
}
49-
};
2+
repositories: [
3+
"stackabletech/airflow-operator",
4+
"stackabletech/beku.py",
5+
"stackabletech/commons-operator",
6+
"stackabletech/crddocs",
7+
"stackabletech/docker-images",
8+
"stackabletech/documentation",
9+
"stackabletech/documentation-ui",
10+
"stackabletech/druid-opa-authorizer",
11+
"stackabletech/druid-operator",
12+
"stackabletech/edc-operator",
13+
"stackabletech/hbase-normalizer",
14+
"stackabletech/hbase-operator",
15+
"stackabletech/hdfs-operator",
16+
"stackabletech/hdfs-topology-provider",
17+
"stackabletech/hdfs-utils",
18+
"stackabletech/hello-world-operator",
19+
"stackabletech/hive-operator",
20+
"stackabletech/image-tools",
21+
"stackabletech/kafka-operator",
22+
"stackabletech/listener-operator",
23+
"stackabletech/nifi-operator",
24+
"stackabletech/opa-bundle-builder",
25+
"stackabletech/opa-operator",
26+
"stackabletech/operator-rs",
27+
"stackabletech/operator-templating",
28+
"stackabletech/product-config",
29+
"stackabletech/secret-operator",
30+
"stackabletech/spark-k8s-operator",
31+
"stackabletech/stackable-cockpit",
32+
"stackabletech/stackable-utils",
33+
"stackabletech/superset-operator",
34+
"stackabletech/t2",
35+
"stackabletech/tokio-zookeeper",
36+
"stackabletech/trino-lb",
37+
"stackabletech/trino-operator",
38+
"stackabletech/zookeeper-operator",
39+
],
40+
gitAuthor: "\"Stacky McStackface\" <serviceaccounts@stackable.tech>",
41+
forkProcessing: 'enabled',
42+
logFileLevel: 'info',
43+
branchConcurrentLimit: 0,
44+
prConcurrentLimit: 0,
45+
prHourlyLimit: 0,
46+
commitBodyTable: true,
47+
recreateWhen: "always",
48+
prCreation: "immediate",
49+
force: {
50+
schedule: [],
51+
}
52+
};

renovate/config_all.js

Lines changed: 0 additions & 71 deletions
This file was deleted.

renovate/run_renovate.sh

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
1+
# Renovate 37.351 - slim | Updated 2024-05-08
2+
# https://hub.docker.com/r/renovate/renovate/tags
13
docker run --rm \
24
--volume "./config.js:/usr/src/app/config.js" \
35
--env RENOVATE_TOKEN="$GITHUB_TOKEN" \
46
--env LOG_LEVEL=debug \
5-
renovate/renovate@sha256:1df1b79cad9262c50d4537706716494301ee6437ab0176cc34ab960d8557c56d
7+
renovate/renovate@sha256:3286096674fc3e5d5d3e74698c144113930ffbc4f900ddc9f99d6c81c682f448

0 commit comments

Comments
 (0)