diff --git a/.github/renovate.json5 b/.github/renovate.json5 index 40c88f4..b2c1a93 100644 --- a/.github/renovate.json5 +++ b/.github/renovate.json5 @@ -12,37 +12,34 @@ minimumReleaseAge: "3 days", separateMinorPatch: true, - // Installs the toolchain Renovate runs `cargo update` with, and is the baseline for - // constraintsFiltering. "1.88" is a range in rust-release-channel versioning, so the - // tool resolver picks the newest 1.88.x rather than failing to parse a single version. + // Merge through GitHub's own auto-merge rather than having Renovate merge on a later + // run. GitHub then holds the PR until the required check passes, so nothing lands on + // a red build, and the merge happens minutes after CI rather than up to a week later + // when the Monday schedule next fires. + platformAutomerge: true, + + // Installs the toolchain Renovate runs `cargo update` with. "1.88" is a range in + // rust-release-channel versioning, so the resolver picks the newest 1.88.x rather + // than failing to parse a single version. + // + // This used to carry a second, scoped rule pinning the crate datasource to "~1.88", + // which is the only spelling that filters correctly: release filtering runs under + // cargo versioning, where a bare "1.88" reads as ^1.88, and a crate declaring + // "1.90.0" satisfies that, so it slips through. It was removed anyway. Renovate + // validates constraints.rust against rust-release-channel whatever datasource the + // rule is scoped to, "~1.88" is not valid there, and every run reported a config + // warning; upstream says that warning may become a hard error. constraintsVersioning + // cannot override it either, because it rejects tool names and rust is one. + // + // So the msrv job in ci.yml is the floor now, and it always was the real one: it runs + // cargo check --locked pinned to 1.88.0, so a dependency that raises the floor turns + // that job red and automerge never fires. The cost is a doomed PR opening a few times + // a year instead of being filtered before it is raised. That is the cheaper failure. constraints: { rust: "1.88", }, - constraintsFiltering: "strict", packageRules: [ - { - // The MSRV gate, in the only shape that works. Release filtering compares under - // cargo versioning, where a bare "1.88" means ^1.88, and a crate spelling its MSRV - // with three components ("1.90.0", which is what ratatui and image do) is then a - // valid semver version that satisfies ^1.88, so it slips through. "~1.88" is - // >=1.88.0 <1.89.0, which makes subset() the deciding check: [1.88, 1.89) sits - // inside ^1.85 so a crate needing 1.85 stays eligible, and does not sit inside - // ^1.90 so that one is dropped. - // - // The config validator warns that "~1.88" is not a valid rust-release-channel - // version. That is expected: it validates every constraints.rust against the - // toolchain versioning even when the rule is scoped to the crate datasource. The - // warning is the price of the filter working on three-component MSRVs. Reverting - // to "1.88" silences it and reopens the hole. - // - // Crates that declare no rust-version at all are never filtered, so the msrv job - // in ci.yml stays the hard gate; this only keeps doomed PRs from being opened. - matchDatasources: ["crate"], - constraints: { - rust: "~1.88", - }, - }, { // Both of these are the 1.88 floor itself, not dependencies to keep current. // Renovate reads its own config with the renovate-config manager and offered to @@ -59,10 +56,15 @@ matchManagers: ["cargo"], matchUpdateTypes: ["patch"], groupName: "cargo patch updates", + automerge: true, }, { + // Actions are tag-pinned, so a bump moves what a tag resolves to, which is the + // tj-actions vector. The three-day cooldown above is the protection that makes + // automerging these reasonable: a compromised release is usually pulled inside it. matchManagers: ["github-actions"], groupName: "github actions", + automerge: true, }, { // ratatui and crossterm are 0.x, so a minor bump is a breaking one, and it moves @@ -71,6 +73,7 @@ matchUpdateTypes: ["minor", "major"], groupName: null, labels: ["dependencies", "needs-review"], + automerge: false, }, ], @@ -78,5 +81,6 @@ lockFileMaintenance: { enabled: true, schedule: ["before 7am on the first day of the month"], + automerge: true, }, }