Skip to content

ci: merge queue support + 7-day Dependabot auto-merge soak#53

Merged
pbertsch merged 1 commit intomainfrom
ci/merge-queue-automerge
Apr 2, 2026
Merged

ci: merge queue support + 7-day Dependabot auto-merge soak#53
pbertsch merged 1 commit intomainfrom
ci/merge-queue-automerge

Conversation

@pbertsch
Copy link
Copy Markdown
Contributor

@pbertsch pbertsch commented Apr 2, 2026

Summary

  • Add merge_group: trigger to ci.yml and codeql.yml — required for CI to run on merge queue branches (without this, every queued PR times out after 60 min and fails)
  • Replace immediate auto-merge in dependabot-compat.yml with approve-only — the 7-day wait is now enforced separately
  • Add dependabot-automerge.yml: scheduled daily at 09:00 UTC, enables auto-merge on Dependabot PRs that are ≥ 7 days old, approved, and not already queued; major version updates are still skipped for manual review

How it works end-to-end

  1. Dependabot opens PR → CI runs → dependabot-compat.yml approves it (patch/minor only)
  2. Day 7+: scheduled job calls gh pr merge --auto --squash → PR enters the merge queue
  3. Merge queue runs CI on the combined branch → squash-merges to main
  4. If multiple Dependabot PRs are eligible, the queue processes them sequentially — no "BEHIND" stalls

Test plan

- Add merge_group trigger to ci.yml and codeql.yml so CI runs on
  merge queue branches (required for queue to function)
- Remove immediate auto-merge from dependabot-compat.yml; keep approve only
- Add dependabot-automerge.yml: scheduled daily job that enables auto-merge
  on Dependabot PRs that are >= 7 days old, approved, and not yet queued
- Major version updates still require manual review
@pbertsch pbertsch requested a review from a team as a code owner April 2, 2026 12:41
@pbertsch pbertsch merged commit 1e40cc3 into main Apr 2, 2026
13 checks passed
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