Skip to content

Commit d67ee8f

Browse files
committed
perf: changed schedule and migrated configs
Since we are hibernating some services during the night, we decided to also limit the creation of update PRs to time frames closer to working hours. This can of course be changed per repository. Since the config validation revealed some available migrations, those have been applied.
1 parent 59be4be commit d67ee8f

File tree

3 files changed

+22
-40
lines changed

3 files changed

+22
-40
lines changed

README.md

+4-5
Original file line numberDiff line numberDiff line change
@@ -135,16 +135,14 @@ and it configures the following:
135135

136136
##### Rules for [reducing noise](https://docs.renovatebot.com/noise-reduction/):
137137

138-
Only automatically create one PR at a time and only create/update PRs [outside of office hours](https://docs.renovatebot.com/presets-schedule/#schedulenonofficehours).
138+
Only automatically create one PR at a time and only create/update PRs in the morning and evening,
139+
which is related to the start and end of working days.
139140
Create the PR right away when checks done by renovate (like [`npm:unpublishSafe`](https://docs.renovatebot.com/presets-npm/#npmunpublishsafe)) pass
140141
and only up to six times per hour (every 10 min).
141142
All major version bumps need to be triggered manually from the dependency dashboard.
142143

143144
```json
144145
{
145-
"extends": [
146-
"schedule:nonOfficeHours"
147-
],
148146
"internalChecksFilter": "strict",
149147
"prConcurrentLimit": 1,
150148
"prHourlyLimit": 6,
@@ -154,7 +152,8 @@ All major version bumps need to be triggered manually from the dependency dashbo
154152
"matchUpdateTypes": ["major"],
155153
"dependencyDashboardApproval": true
156154
}
157-
]
155+
],
156+
"schedule": ["* 7-9,18-19 * * 1-5"]
158157
}
159158
```
160159

default.json

+4-7
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,8 @@
77
":prImmediately",
88
":separateMajorReleases",
99
":separateMultipleMajorReleases",
10-
"schedule:nonOfficeHours",
1110
"preview:dockerVersions",
12-
"regexManagers:dockerfileVersions"
11+
"customManagers:dockerfileVersions"
1312
],
1413
"internalChecksFilter": "strict",
1514
"prConcurrentLimit": 1,
@@ -27,9 +26,7 @@
2726
},
2827
"addLabels": ["dependencies"],
2928
"packageRules": [
30-
{
31-
"matchUpdateTypes": ["major"],
32-
"dependencyDashboardApproval": true
33-
}
34-
]
29+
{"matchUpdateTypes": ["major"], "dependencyDashboardApproval": true}
30+
],
31+
"schedule": ["* 7-9,18-19 * * 1-5"]
3532
}

javascript.json

+14-28
Original file line numberDiff line numberDiff line change
@@ -8,26 +8,16 @@
88
],
99
"dependencyDashboardHeader": "Uses https://github.com/bettermarks/renovate-config#javascript \nPR that have automerge enabled [might be approved automatically](https://github.com/bettermarks/approve-dependency-pr#readme)",
1010
"packageRules": [
11-
{
12-
"matchUpdateTypes": ["pin"],
13-
"prPriority": 10,
14-
"automerge": true
15-
},
11+
{"matchUpdateTypes": ["pin"], "prPriority": 10, "automerge": true},
1612
{
1713
"matchPackageNames": ["node", "@types/node"],
1814
"matchUpdateTypes": ["major"],
1915
"enabled": false
2016
},
17+
{"matchPackageNames": ["node"], "rangeStrategy": "replace"},
18+
{"matchDepTypes": ["resolutions"], "rangeStrategy": "auto"},
2119
{
22-
"matchPackageNames": ["node"],
23-
"rangeStrategy": "replace"
24-
},
25-
{
26-
"matchDepTypes": ["resolutions"],
27-
"rangeStrategy": "auto"
28-
},
29-
{
30-
"matchPackagePatterns": ["^@bettermarks\/.*", "^bm-.*"],
20+
"matchPackageNames": ["/^@bettermarks/.*/", "/^bm-.*/"],
3121
"matchUpdateTypes": ["minor", "patch", "pin", "digest"],
3222
"prPriority": 5,
3323
"minimumReleaseAge": null,
@@ -40,30 +30,26 @@
4030
"prPriority": 2
4131
},
4232
{
43-
"matchSourceUrlPrefixes": [
44-
"https://github.com/aws",
45-
"https://github.com/cdk8s-team",
46-
"https://github.com/cdktf",
47-
"https://github.com/hashicorp"
48-
],
33+
"matchSourceUrls": [
34+
"https://github.com/aws{/,}**",
35+
"https://github.com/cdk8s-team{/,}**",
36+
"https://github.com/cdktf{/,}**",
37+
"https://github.com/hashicorp{/,}**"
38+
]
4939
"groupName": "js infrastructure packages",
5040
"minimumReleaseAge": null,
5141
"prPriority": 1,
5242
"matchUpdateTypes": ["minor", "patch", "pin", "digest"],
5343
"schedule": ["before 4am on Monday"],
54-
"automerge": true
44+
"automerge": true,
5545
},
5646
{
57-
"matchManagers": [
58-
"npm"
59-
],
60-
"matchPackageNames": [
61-
"@types/jest"
62-
],
47+
"matchManagers": ["npm"],
48+
"matchPackageNames": ["@types/jest"],
6349
"versioning": "jest"
6450
},
6551
{
66-
"matchPackagePatterns": ["^@types\/.*"],
52+
"matchPackageNames": ["/^@types/.*/"],
6753
"matchUpdateTypes": ["minor", "patch", "pin", "digest"],
6854
"minimumReleaseAge": null,
6955
"prPriority": -5,

0 commit comments

Comments
 (0)