Repository navigation
ci: post-merge dispatcher also runs on push to main; cron is the fallback (#4825 follow-up) - #4851
Merged
Merged
Conversation
…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
Contributor
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Follow-up to #4825.
post-merge.ymlhad onlyschedule: */20andworkflow_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.head_shabefore 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.pypasses. The YAML parses withpush,scheduleandworkflow_dispatch. The run script passesbash -n.pr_gates.py --fast5/5 via heavy-run.🤖 Generated with Claude Code
https://claude.ai/code/session_01TBJdDBRtJis5hzE244NQKV