-
Notifications
You must be signed in to change notification settings - Fork 998
Expand file tree
/
Copy pathrenovate.json5
More file actions
213 lines (207 loc) · 6.39 KB
/
Copy pathrenovate.json5
File metadata and controls
213 lines (207 loc) · 6.39 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
{
$schema: 'https://docs.renovatebot.com/renovate-schema.json',
extends: [
'config:best-practices',
'helpers:pinGitHubActionDigestsToSemver',
],
ignorePresets: [
'workarounds:javaLTSVersions', // Allow all Java major versions, not just LTS
],
ignorePaths: [], // overwrite default ignore which includes **/test/**
// used to update docker image versions used in Java test files
packageRules: [
// ── Scheduling & grouping ──────────────────────────────────────────
{
// group all patch updates into a single weekly PR
groupName: 'all patch and minor versions',
matchUpdateTypes: [
'patch',
'minor',
],
schedule: [
'* 0-7 * * 2', // weekly, before 8am on Tuesday
],
},
{
// group GitHub Actions and dockerfile updates into a single weekly PR
// (must be after patch rule so that it wins for GH Action patches)
matchManagers: [
'github-actions',
'dockerfile',
],
schedule: [
'* 0-7 * * 2', // weekly, before 8am on Tuesday
],
groupName: 'weekly update',
},
{
// keep Kotlin Gradle plugin updates out of the catch-all patch PR because CodeQL often
// fails on them, which blocks unrelated patch updates
matchDepNames: [
'org.jetbrains.kotlin.jvm',
'org.jetbrains.kotlin:kotlin-gradle-plugin',
],
schedule: [
'* 0-7 * * 2', // weekly, before 8am on Tuesday
],
groupName: 'kotlin plugin updates',
},
// ── Version constraints ────────────────────────────────────────────
{
matchPackageNames: [
'io.opentelemetry.contrib:opentelemetry-aws-xray-propagator',
'io.opentelemetry.proto:opentelemetry-proto',
'io.opentelemetry.semconv:opentelemetry-semconv-incubating',
],
// Renovate's default behavior is only to update from unstable -> unstable if it's for the
// major.minor.patch, under the assumption that you would want to update to the stable version
// of that release instead of the unstable version for a future release
// (TODO remove once the artifacts above release stable versions)
ignoreUnstable: false,
allowedVersions: '!/\\-SNAPSHOT$/',
},
// ── Package family groups ──────────────────────────────────────────
{
groupName: 'spotless packages',
matchPackageNames: [
'com.diffplug.spotless',
'com.diffplug.spotless:**',
],
},
// Disable prometheus minor updates while working out translation strategy
// https://github.com/open-telemetry/opentelemetry-java/pull/8346
{
matchPackageNames: [
'io.prometheus:**',
],
matchUpdateTypes: [
'minor',
],
enabled: false,
},
// ── Disabled updates (Java version compatibility) ──────────────────
{
// junit 6+ requires Java 17+
matchPackageNames: [
'org.junit:**',
'org.junit.jupiter:**',
'org.junit.platform:**',
],
matchUpdateTypes: [
'major',
],
enabled: false,
},
{
// junit-pioneer 2+ requires Java 11+
matchPackageNames: [
'org.junit-pioneer:junit-pioneer',
],
matchUpdateTypes: [
'major',
],
enabled: false,
},
{
// mockito 5+ requires Java 11+
matchUpdateTypes: [
'major',
],
enabled: false,
matchPackageNames: [
'org.mockito:**',
],
},
{
// snakeyaml-engine 3+ requires Java 11+
matchUpdateTypes: [
'major',
],
enabled: false,
matchPackageNames: [
'org.snakeyaml:snakeyaml-engine'
],
},
{
// jqf-fuzz version 1.8+ requires Java 11+
matchPackageNames: [
'edu.berkeley.cs.jqf:jqf-fuzz',
],
matchUpdateTypes: [
'major',
'minor',
],
enabled: false,
},
{
// pinned version for compatibility
matchPackageNames: [
'org.jetbrains.kotlinx:kotlinx-coroutines-core',
],
matchCurrentVersion: '1.5.2',
enabled: false,
},
{
// equalsverifier v4+ requires Java 17+
// https://github.com/jqno/equalsverifier/blob/HEAD/CHANGELOG.md#changed-13
matchPackageNames: ['nl.jqno.equalsverifier:equalsverifier'],
matchUpdateTypes: ['major'],
enabled: false,
},
{
// mockserver-netty 6+ requires Java 11+
matchPackageNames: ['org.mock-server:mockserver-netty'],
matchUpdateTypes: ['major'],
enabled: false,
},
],
customManagers: [
{
// keep SHA-pinned raw.githubusercontent.com URLs in mise.toml up to date
customType: 'regex',
datasourceTemplate: 'github-tags',
managerFilePatterns: [
'/^mise\\.toml$/',
],
matchStrings: [
'https://raw\\.githubusercontent\\.com/(?<depName>[^/]+/[^/]+)/(?<currentDigest>[a-f0-9]{40})/.*#\\s*(?<currentValue>v\\S+)',
],
},
{
customType: 'regex',
datasourceTemplate: 'docker',
managerFilePatterns: [
'.github/workflows/**',
],
matchStrings: [
'(?<currentValue>\\d+) # renovate\\(java-version\\)',
],
// using zulu because new releases get published quickly
depNameTemplate: 'azul/zulu-openjdk',
},
{
customType: 'regex',
datasourceTemplate: 'docker',
managerFilePatterns: [
'.github/workflows/**',
],
matchStrings: [
'(?<currentValue>\\d+) # renovate\\(graal-java-version\\)',
],
// gates updates on GraalVM Community actually publishing support for a Java version
depNameTemplate: 'ghcr.io/graalvm/graalvm-community',
},
{
customType: 'regex',
datasourceTemplate: 'docker',
managerFilePatterns: [
'**/*.java',
],
matchStrings: [
'"(?<depName>otel/opentelemetry-collector-contrib):(?<currentValue>[^@"]+)(?:@(?<currentDigest>sha256:[a-f0-9]+))?"',
],
autoReplaceStringTemplate: '"{{depName}}:{{newValue}}{{#if newDigest}}@{{newDigest}}{{/if}}"',
versioningTemplate: 'docker',
},
],
}