Skip to content

ci: post-merge dispatcher also runs on push to main; cron is the fallback (#4825 follow-up) - #4851

Merged
squid-protocol merged 1 commit into
mainfrom
ci/4825-post-merge-push
Oct 10, 2026
Merged

squid-protocol merged 1 commit into
mainfrom
ci/4825-post-merge-push

Conversation

@squid-protocol

Copy link
Copy Markdown
Owner

Follow-up to #4825. post-merge.yml had only schedule: */20 and workflow_dispatch. GitHub never fired the cron for two hours, so a merged main sat without its heavy checks.

Change

  • push: branches: [main] added. The cron stays as the fallback.
  • Idempotent per main SHA: the run checks the run list for head_sha before dispatching, so a push and a cron tick for the same SHA dispatch once. A push that defers (PR jobs queued) is picked up by the next cron tick.
  • concurrency.cancel-in-progress: true (was false). Only the newest main matters, and the dispatch takes seconds. A cancelled older run either already dispatched (visible in the run list for its SHA) or never did (the newer run dispatches). This keeps the group serial without a backlog of stale dispatchers.

Checks: tests/tools/workflow_inputs.py passes. The YAML parses with push, schedule and workflow_dispatch. The run script passes bash -n. pr_gates.py --fast 5/5 via heavy-run.

🤖 Generated with Claude Code

https://claude.ai/code/session_01TBJdDBRtJis5hzE244NQKV

…back (#4825 follow-up)

post-merge.yml had only `schedule: */20` and workflow_dispatch. GitHub never fired the cron for two hours (schedules
are best-effort), so a merged main sat without its heavy checks.

- Add `push: branches: [main]`. The run is idempotent per main SHA: it checks the run list for that head SHA before
  dispatching, so a push and a cron tick for the same SHA dispatch once. A push that defers (PR jobs queued) is
  picked up by the next cron tick.
- concurrency cancel-in-progress -> true. Only the newest main is worth considering, and the dispatch itself takes
  seconds. A cancelled older run either dispatched already (the run list shows it for its SHA) or never did (the
  newer run dispatches). Keeps the group serial without a backlog of stale dispatchers.
- Cron stays as the fallback.

Checked: workflow_inputs.py passes; the YAML parses with push, schedule and workflow_dispatch; the run script
passes `bash -n`.

Co-Authored-By: Claude Haiku 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01TBJdDBRtJis5hzE244NQKV
@github-actions

Copy link
Copy Markdown
Contributor

🐦‍⬛ Muninn Security Scan

✅ No security issues found.

🐦‍⬛ Powered by Muninn · Skald Lab

@squid-protocol
squid-protocol marked this pull request as ready for review October 10, 2026 16:32
@squid-protocol
squid-protocol merged commit 44e7f3e into main Oct 10, 2026
22 checks passed
@squid-protocol
squid-protocol deleted the ci/4825-post-merge-push branch October 10, 2026 16:32
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