From 8ee24f67e1426b8388dafccd850da1d0728aea55 Mon Sep 17 00:00:00 2001 From: Luis Markmann <110569833+lmarkmann@users.noreply.github.com> Date: Fri, 28 Aug 2026 21:13:39 +0200 Subject: [PATCH] ci: automerge dependency updates, and drop the config warning to do it Every Renovate run reported one config warning, which is the whole of the "Found renovate config warnings" banner on the dashboard. It came from the scoped rule pinning the crate datasource to "~1.88". That rule was correct and is still gone. Renovate validates constraints.rust against rust-release-channel versioning no matter which datasource the rule is scoped to, "~1.88" is not valid there, and the commit that added that validation says the warning may later become an error. constraintsVersioning is not a way out either: it rejects tool names and rust is one. So the rule was a permanent warning today and a build break at some future upgrade. Losing it costs less than it looks. The msrv job was always the real floor: cargo check --locked pinned to 1.88.0, now a required status check, so a dependency that raises the MSRV turns it red and automerge never fires. The filter only ever stopped such a PR being opened. A doomed PR a couple of times a year is cheaper than a config that warns on every run. Automerge covers cargo patches, github-actions, and lockfile maintenance; cargo minor and major stay manual, because ratatui and crossterm are 0.x so a minor there is a breaking change that moves the floor in Cargo.toml. Actions are tag-pinned, which is the tj-actions vector, and the existing three-day minimumReleaseAge is what makes automerging them defensible: a compromised release is usually pulled inside that window. platformAutomerge hands the wait to GitHub rather than to Renovate's next run, so a green PR lands in minutes instead of waiting for Monday. It needed allow_auto_merge on the repository, which was off. The required checks were widened at the same time and that is the load bearing half: only "fmt + clippy + test" was required, so automerge would have fired while macOS, Windows, msrv and cargo-deny were still running. All six are required now. --- .github/renovate.json5 | 56 ++++++++++++++++++++++-------------------- 1 file changed, 30 insertions(+), 26 deletions(-) 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, }, }