Skip to content

ci(gates): cancel superseded floor runs - #628

Merged
LargeModGames merged 1 commit into
mainfrom
ci/gates-floor-cancel
Sep 27, 2026
Merged

LargeModGames merged 1 commit into
mainfrom
ci/gates-floor-cancel

Conversation

@LargeModGames

@LargeModGames LargeModGames commented Sep 27, 2026 •

Copy link
Copy Markdown
Owner

Summary

After a series of quick merges, every older Gates floor run finished its build and then failed at the push with a non-fast-forward rejection, because main had moved on. Only the last run could push. That is one red run and one failure email per merge in the series.

With cancel-in-progress: true, a newer push cancels the older run instead. The newer run checks out the newest main, so no floor update is lost, and a cancelled run sends no failure email.

Testing

  • Seen on main on 2026-09-27: runs 36312063970 and 36312077804 were rejected with fetch first; run 36312224758 pushed 9978842 (2302 to 2309) through the ruleset bypass.
  • The change is one workflow line plus a comment. It only runs from main, so there is no local test.

Additional notes

A push can still be rejected in the few seconds between a merge and the start of its own run. That is rare, and the newer run then raises the floor.


💬 Questions or want to chat with other contributors? Join the spotatui Discord.

Summary by CodeRabbit

  • Chores
    • Automated checks now stop an in-progress run when a newer run starts, preventing an outdated run from continuing alongside the latest one. This keeps check results aligned with the most recent update.

@coderabbitai

coderabbitai Bot commented Sep 27, 2026 •

Copy link
Copy Markdown
Contributor

Review in Change Stack →

Navigate logical layers of code changes, visualize relationships, and explore their blast radius.

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Repository: LargeModGames/spotatui/.coderabbit.yaml

Review profile: CHILL

Plan: Advanced

Run ID: 43aa54f4-052d-4fe5-848c-73a8052505be

📥 Commits

Reviewing files that changed from the base of the PR and between 9978842 and c2cfece.

📒 Files selected for processing (1)
  • .github/workflows/gates-floor.yml

Included review availability: This review used your included allowance. Your plan provides up to 4 included reviews per hour; 1 remain after this review.


📝 Walkthrough

Walkthrough

The gates-floor workflow now cancels an in-progress run when a newer run starts. A comment explains that the newer push measures the latest main, while an older run would be rejected as non-fast-forward if it attempted to push.

Changes

Workflow concurrency

Layer / File(s) Summary
Superseded run cancellation
.github/workflows/gates-floor.yml
The workflow sets cancel-in-progress to true for the gates-floor concurrency group. A comment explains why a newer push supersedes an older run.

Priority: ⬇️ Low

Estimated code review effort: 1 (Trivial) | ~5 minutes

Change: Bug fix

Merge Risk: ⚪ Minimal · up to c2cfe

No actionable merge-blocking risk remains: qualifying newer pushes are processed by successor runs, and floor-only updates do not interrupt them.

Architecture Summary

Architecture risk: 🔵 Low · up to c2cfe

The changed surface does not map to a changed system, dependency edge, entrypoint, or external dependency.

Changed systems: None identified.

Architecture concerns
No architecture-level concerns identified.

Review details

Before / after behavior

  • observed — Modified behavior in .github/workflows/gates-floor.yml: Added an explanation that a newer push supersedes an older run, and changed cancel-in-progress from false to true for the gates-floor concurrency group.
🚥 Pre-merge checks | ✅ 4
✅ Passed checks (4 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title uses the allowed conventional-commit prefix ci:, includes the gates scope, and concisely describes the workflow change to cancel superseded floor runs.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Commit to this branch
  • Create a new PR
✨ Simplify code
  • Commit to this branch
  • Create a new PR

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@codecov

codecov Bot commented Sep 27, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

@LargeModGames
LargeModGames merged commit 8ad1fbe into main Sep 27, 2026
35 checks passed
@LargeModGames
LargeModGames deleted the ci/gates-floor-cancel branch September 27, 2026 10:29
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