Skip to content

ci: automerge dependency updates, and drop the config warning to do it - #87

Merged
lmarkmann merged 1 commit into
mainfrom
ci/renovate-automerge
Aug 28, 2026
Merged

lmarkmann merged 1 commit into
mainfrom
ci/renovate-automerge

Conversation

@lmarkmann

Copy link
Copy Markdown
Owner

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.88 is not a valid tool version constraint, according to rust-release-channel versioning.

That rule was the MSRV filter and it was correct. Release filtering runs under cargo versioning, where a bare 1.88 reads as ^1.88 and a crate declaring 1.90.0 satisfies it, so only ~1.88 filters properly. But Renovate validates constraints.rust against rust-release-channel regardless of the datasource the rule is scoped to, and the commit that added that validation states the warning may later become an error. constraintsVersioning is not an escape: it rejects tool names, and rust is 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 msrv job, which always was the real floor: cargo check --locked pinned 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

Update Automerge
cargo patch yes
github-actions yes
lockfile maintenance yes
cargo minor / major no

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.toml rather 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.

platformAutomerge hands 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_merge was off, so platformAutomerge would have silently fallen back to Renovate merging on a later run. Now on.
  • delete_branch_on_merge now on.
  • Required checks widened from one to six. This 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, 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.

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.
@codspeed

codspeed Bot commented Aug 28, 2026

Copy link
Copy Markdown
Contributor

Merging this PR will not alter performance

✅ 70 untouched benchmarks
⏩ 10 skipped benchmarks1


Comparing ci/renovate-automerge (8ee24f6) with main (9f751cd)

Open in CodSpeed

Footnotes

  1. 10 benchmarks were skipped, so the baseline results were used instead. If they were deleted from the codebase, click here and archive them to remove them from the performance reports. ↩

@lmarkmann
lmarkmann merged commit cb90899 into main Aug 28, 2026
8 checks passed
@lmarkmann
lmarkmann deleted the ci/renovate-automerge branch August 28, 2026 19:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant