2023-07-10 17:26:33 +00:00
|
|
|
{
|
|
|
|
schedule: [
|
2023-08-08 20:14:48 +00:00
|
|
|
'before 5am on the first day of the month',
|
2023-07-10 17:26:33 +00:00
|
|
|
],
|
|
|
|
semanticCommits: 'enabled',
|
|
|
|
configMigration: true,
|
2024-01-06 02:08:43 +00:00
|
|
|
dependencyDashboard: true,
|
2023-07-19 13:41:36 +00:00
|
|
|
ignorePaths: [
|
2023-12-03 12:55:11 +00:00
|
|
|
'**/tests/**',
|
2023-07-19 13:41:36 +00:00
|
|
|
],
|
2023-09-26 13:18:02 +00:00
|
|
|
customManagers: [
|
2023-07-19 14:21:37 +00:00
|
|
|
{
|
|
|
|
customType: 'regex',
|
|
|
|
fileMatch: [
|
2023-09-11 13:02:17 +00:00
|
|
|
'Cargo.toml$',
|
2023-07-19 14:21:37 +00:00
|
|
|
],
|
|
|
|
matchStrings: [
|
chore(ci): Shot-in-the-dark fix for MSRV updating
With #13254, we found MSRV updating is broken.
PR #12775 is the last MSRV we got.
That was merged before #12654 and #13106.
That makes #12654 the most likely culprit.
Looking at the logs:
```
DEBUG: Matched 24 file(s) for manager regex: Cargo.toml, benches/benchsuite/Cargo.toml, benches/capture/Cargo.toml, crates/cargo-platform/Cargo.toml, crates/cargo-test-macro/Cargo.toml, crates/cargo-test-support/Cargo.toml, crates/cargo-test-support/containers/apache/bar/Cargo.toml, crates/cargo-test-support/containers/sshd/bar/Cargo.toml, crates/cargo-util-schemas/Cargo.toml, crates/cargo-util/Cargo.toml, crates/crates-io/Cargo.toml, crates/home/Cargo.toml, crates/mdman/Cargo.toml, crates/resolver-tests/Cargo.toml, crates/rustfix/Cargo.toml, crates/semver-check/Cargo.toml, crates/xtask-build-man/Cargo.toml, crates/xtask-bump-check/Cargo.toml, crates/xtask-stale-label/Cargo.toml, credential/cargo-credential-1password/Cargo.toml, credential/cargo-credential-libsecret/Cargo.toml, credential/cargo-credential-macos-keychain/Cargo.toml, credential/cargo-credential-wincred/Cargo.toml, credential/cargo-credential/Cargo.toml
...
DEBUG: manager extract durations (ms)
{
"managers": {
"dockerfile": 30,
"github-actions": 38,
"regex": 386,
"cargo": 855
}
}
DEBUG: Found cargo package files
DEBUG: Found dockerfile package files
DEBUG: Found github-actions package files
DEBUG: Found 25 package file(s)
```
Our regex managers have the files matched
but no regex manager packages are found.
I think this means that the name association failed or the regex within
the file content failed.
The differences between cargo and my other projects
- Use of `:`
- `depNameTemplate`
- Presence of `\b`
As a first attempt, I'm going to switch `\b` to `\\b` to be like the
other escaped regex values.
2024-01-08 18:11:55 +00:00
|
|
|
'\\bMSRV:1\\b.*?(?<currentValue>\\d+\\.\\d+(\\.\\d+)?)',
|
|
|
|
'(?<currentValue>\\d+\\.\\d+(\\.\\d+)?).*?\\bMSRV:1\\b',
|
2023-07-19 14:21:37 +00:00
|
|
|
],
|
2023-09-11 13:02:17 +00:00
|
|
|
depNameTemplate: 'MSRV:1', // Support 1 version of rustc
|
2023-07-19 14:21:37 +00:00
|
|
|
packageNameTemplate: 'rust-lang/rust',
|
|
|
|
datasourceTemplate: 'github-releases',
|
|
|
|
},
|
2023-09-11 13:06:12 +00:00
|
|
|
{
|
|
|
|
customType: 'regex',
|
|
|
|
fileMatch: [
|
|
|
|
'Cargo.toml$',
|
|
|
|
],
|
|
|
|
matchStrings: [
|
|
|
|
'\bMSRV:3\b.*?(?<currentValue>\\d+\\.\\d+(\\.\\d+)?)',
|
|
|
|
'(?<currentValue>\\d+\\.\\d+(\\.\\d+)?).*?\bMSRV:3\b',
|
|
|
|
],
|
|
|
|
depNameTemplate: 'MSRV:3', // Support 3 versions of rustc
|
|
|
|
packageNameTemplate: 'rust-lang/rust',
|
|
|
|
datasourceTemplate: 'github-releases',
|
|
|
|
},
|
2023-07-19 14:21:37 +00:00
|
|
|
],
|
2023-07-10 17:26:33 +00:00
|
|
|
packageRules: [
|
2023-07-19 14:21:37 +00:00
|
|
|
{
|
2023-09-11 13:02:17 +00:00
|
|
|
commitMessageTopic: 'MSRV (1 version)',
|
2023-07-19 14:21:37 +00:00
|
|
|
matchManagers: [
|
2023-12-03 12:55:11 +00:00
|
|
|
'custom.regex',
|
2023-07-19 14:21:37 +00:00
|
|
|
],
|
|
|
|
matchPackageNames: [
|
2023-09-11 13:02:17 +00:00
|
|
|
'MSRV:1',
|
2023-07-19 14:21:37 +00:00
|
|
|
],
|
2023-09-11 13:06:12 +00:00
|
|
|
schedule: [
|
|
|
|
'* * * * *',
|
|
|
|
],
|
|
|
|
groupName: 'msrv',
|
|
|
|
},
|
|
|
|
{
|
|
|
|
commitMessageTopic: 'MSRV (3 versions)',
|
|
|
|
matchManagers: [
|
2023-12-03 12:55:11 +00:00
|
|
|
'custom.regex',
|
2023-09-11 13:06:12 +00:00
|
|
|
],
|
|
|
|
matchPackageNames: [
|
|
|
|
'MSRV:3',
|
|
|
|
],
|
2023-12-03 12:55:11 +00:00
|
|
|
extractVersion: '^(?<version>\\d+\\.\\d+)', // Drop the patch version
|
2023-07-19 14:21:37 +00:00
|
|
|
schedule: [
|
|
|
|
'* * * * *',
|
|
|
|
],
|
2023-09-11 13:06:12 +00:00
|
|
|
minimumReleaseAge: '85 days', // 2 releases back * 6 weeks per release * 7 days per week + 1
|
|
|
|
internalChecksFilter: 'strict',
|
|
|
|
groupName: 'msrv',
|
2023-07-19 14:21:37 +00:00
|
|
|
},
|
2023-12-01 16:02:30 +00:00
|
|
|
{
|
|
|
|
matchManagers: [
|
|
|
|
'cargo',
|
|
|
|
],
|
|
|
|
matchPackageNames: [
|
|
|
|
'gix-features-for-configuration-only',
|
|
|
|
'gix',
|
|
|
|
],
|
|
|
|
groupName: 'gix',
|
|
|
|
},
|
2023-07-10 17:26:33 +00:00
|
|
|
// Goals:
|
|
|
|
// - Rollup safe upgrades to reduce CI runner load
|
|
|
|
// - Have lockfile and manifest in-sync (implicit rules)
|
|
|
|
{
|
|
|
|
matchManagers: [
|
|
|
|
'cargo',
|
|
|
|
],
|
|
|
|
matchCurrentVersion: '>=0.1.0',
|
|
|
|
matchUpdateTypes: [
|
|
|
|
'patch',
|
|
|
|
],
|
|
|
|
automerge: false,
|
|
|
|
groupName: 'compatible',
|
|
|
|
},
|
|
|
|
{
|
|
|
|
matchManagers: [
|
|
|
|
'cargo',
|
|
|
|
],
|
|
|
|
matchCurrentVersion: '>=1.0.0',
|
|
|
|
matchUpdateTypes: [
|
|
|
|
'minor',
|
|
|
|
],
|
|
|
|
automerge: false,
|
|
|
|
groupName: 'compatible',
|
|
|
|
},
|
|
|
|
],
|
|
|
|
}
|