Skip to content

running-in-ci: add rerun-job polling recipe - #350

Merged
max-sixty merged 2 commits into
mainfrom
running-in-ci/rerun-poll-jobs-25065791154
Apr 28, 2026
Merged

max-sixty merged 2 commits into
mainfrom
running-in-ci/rerun-poll-jobs-25065791154

Conversation

@tend-agent

Copy link
Copy Markdown
Collaborator

Summary

After gh run rerun <run-id> --failed, the bot has been polling the parent run's .status for completed. That status stays in_progress until every sibling job finishes — including unrelated long-running ones — so the rerun loop blocks waiting on jobs the bot does not care about.

Add a recipe to bundled running-in-ci showing how to poll the rerun job IDs via repos/.../actions/jobs/<id>, and note that the existing pending() (statusCheckRollup) recipe doesn't help because sibling check-runs on the head SHA still appear pending.

Context

Per max-sixty's request in worktrunk#2449 and worktrunk#2451: the same recipe was originally landed as a worktrunk overlay, but the rule is universal across consumers, so it belongs in the bundled skill. The overlay is being removed in worktrunk#2451.

After gh run rerun --failed, polling the parent run's status blocks until
every sibling job finishes — including unrelated long-running ones. Poll
the specific rerun job IDs instead.
The new section's inline-code references to the literal '\!' tripped the
no-preprocessor-poison-in-skills hook. Rephrase to discuss the exclamation
mark in prose and use the \!= operator inline instead.

Co-Authored-By: Claude <[email protected]>
@max-sixty
max-sixty merged commit db1471a into main Apr 28, 2026
3 checks passed
@max-sixty
max-sixty deleted the running-in-ci/rerun-poll-jobs-25065791154 branch April 28, 2026 22:26
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.

2 participants