Repository navigation
ci: automerge dependency updates, and drop the config warning to do it - #87
Merged
Merged
Conversation
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.
Contributor
Merging this PR will not alter performance
Comparing Footnotes
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes the "Found renovate config warnings" banner on the Mend dashboard and lets routine dependency updates land without a human.
The warning
One warning, on every run:
packageRules[0].constraints.rust=~1.88is not a valid tool version constraint, according torust-release-channelversioning.That rule was the MSRV filter and it was correct. Release filtering runs under cargo versioning, where a bare
1.88reads as^1.88and a crate declaring1.90.0satisfies it, so only~1.88filters properly. But Renovate validatesconstraints.rustagainstrust-release-channelregardless of the datasource the rule is scoped to, and the commit that added that validation states the warning may later become an error.constraintsVersioningis not an escape: it rejects tool names, andrustis one.So it was a warning on every run today and a break at some future upgrade. It is removed.
What enforces the MSRV now
The
msrvjob, which always was the real floor:cargo check --lockedpinned to 1.88.0. It is now a required status check, so a dependency that raises the floor turns it red and automerge never fires. The filter only ever prevented such a PR from being opened; a doomed PR a couple of times a year is cheaper than a permanent warning.Automerge
cargo minor and major stay manual because ratatui and crossterm are 0.x, so a minor there is a breaking change that moves the pinned floor in
Cargo.tomlrather than only the lockfile.Actions are tag-pinned, which is the tj-actions vector. The existing
minimumReleaseAge: "3 days"is what makes automerging them defensible: a compromised release is usually pulled inside that window.platformAutomergehands the waiting to GitHub instead of Renovate's next run, so a green PR lands in minutes rather than waiting for the Monday schedule.Repository settings changed alongside
allow_auto_mergewas off, soplatformAutomergewould have silently fallen back to Renovate merging on a later run. Now on.delete_branch_on_mergenow on.fmt + clippy + testwas required, so automerge would have fired while macOS, Windows,msrvandcargo denywere still running. All six are required now, which is also what makes the msrv job a real gate rather than an advisory one.This PR is the first gated by the new checks.