Repository navigation
running-in-ci: add rerun-job polling recipe - #350
Merged
Merged
Conversation
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]>
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.
Summary
After
gh run rerun <run-id> --failed, the bot has been polling the parent run's.statusforcompleted. That status staysin_progressuntil 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-cishowing how to poll the rerun job IDs viarepos/.../actions/jobs/<id>, and note that the existingpending()(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.