Skip to content

Only rebase Renovate PRs when they conflict - #437

Merged
lalten merged 1 commit into
mainfrom
copilot/improve-renovate-rebasing
Aug 2, 2026
Merged

Only rebase Renovate PRs when they conflict#437
lalten merged 1 commit into
mainfrom
copilot/improve-renovate-rebasing

Conversation

Copilot AI commented Aug 2, 2026

Copy link
Copy Markdown
Contributor

Renovate's default rebaseWhen: "auto" rebases every open PR as soon as anything lands on main, kicking off a full CI matrix per PR each time. With a large batch of open dependency PRs — many of which are intentionally left sitting — this is a lot of wasted CI.

Changes

  • renovate.json: set rebaseWhen: "conflicted", so a branch is only rebased when it actually conflicts with the base branch.
"rebaseWhen": "conflicted",

Trade-off

PR branches are now validated against a potentially older base. This means GitHub's "require branches to be up to date before merging" branch protection setting should stay off; otherwise merges will block on manual rebases. A rebase can still be triggered on demand via the PR's rebase checkbox or the dependency dashboard.

This is the narrow, single-knob version of the fix. Complementary options not included here: a concurrency block in ci.yaml to cancel superseded PR runs, prConcurrentLimit/prHourlyLimit, and packageRules splitting dev/lint deps (automerge) from consumer-visible bazel_deps (dashboard-approved).

@lalten
lalten marked this pull request as ready for review August 2, 2026 09:13
Copilot AI review requested due to automatic review settings August 2, 2026 09:13
@lalten
lalten enabled auto-merge (squash) August 2, 2026 09:13

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR updates the repository’s Renovate configuration to reduce unnecessary CI churn by preventing automatic rebases of dependency update PRs unless they actually conflict with the base branch.

Changes:

  • Set Renovate rebaseWhen to "conflicted" so open PR branches are only rebased when required to resolve merge conflicts.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@lalten
lalten merged commit 59ae2bc into main Aug 2, 2026
20 checks passed
@lalten
lalten deleted the copilot/improve-renovate-rebasing branch August 2, 2026 09:24
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.

3 participants