Skip to content

Commit ea7513b

Browse files
worktrunk-botclaude
andcommitted
skills(running-tend): drop rerun polling section
Per PR #2449 maintainer feedback, this guidance is general-purpose and belongs in tend's bundled skills (where tend-agent can pick it up across consumer repos), not in worktrunk's overlay. Co-Authored-By: Claude Opus 4.7 <[email protected]>
1 parent 32e0292 commit ea7513b

1 file changed

Lines changed: 0 additions & 39 deletions

File tree

‎.claude/skills/running-tend/SKILL.md‎

Lines changed: 0 additions & 39 deletions
Original file line numberDiff line numberDiff line change
@@ -108,45 +108,6 @@ failure, not a broken link:
108108
When in doubt, post a comment on the failed run summarizing the diagnosis and
109109
wait — don't open a PR.
110110

111-
## Polling `gh run rerun --failed`
112-
113-
After `gh run rerun <run-id> --failed`, poll the rerun jobs directly — the
114-
parent run's `.status` stays `in_progress` until every sibling job finishes,
115-
including unrelated long-running ones.
116-
117-
```bash
118-
gh run rerun <run-id> --failed --repo "$REPO"
119-
120-
# New attempt records take a few seconds to surface; without this sleep,
121-
# the next query can see only the prior `failure` rows and exit immediately.
122-
sleep 10
123-
124-
# `?filter=latest` returns each job's most recent attempt. Avoid `!=` in
125-
# --jq filters: the Bash tool rewrites `!` to `\!`, which jq rejects. Use
126-
# `== "completed" | not` instead.
127-
JOB_IDS=$(gh api "repos/$REPO/actions/runs/<run-id>/jobs?filter=latest" \
128-
--jq '.jobs[] | select((.status == "completed") | not) | .id')
129-
130-
# Rollup poll: one pass checks all reran jobs together and exits when the
131-
# last one is terminal.
132-
pending_jobs() {
133-
local n=0
134-
for id in $JOB_IDS; do
135-
s=$(gh api "repos/$REPO/actions/jobs/$id" --jq '.status')
136-
[ "$s" = "completed" ] || n=$((n + 1))
137-
done
138-
echo "$n"
139-
}
140-
for i in $(seq 1 15); do
141-
[ "$(pending_jobs)" -eq 0 ] && break
142-
sleep 60
143-
done
144-
```
145-
146-
The bundled `running-in-ci` `pending()` recipe (statusCheckRollup) does not
147-
help — sibling check-runs on the head SHA still appear pending. Polling
148-
specific job IDs is the only fix.
149-
150111
## Applying GitHub Suggestions
151112

152113
Apply the literal suggestion only — change the lines it covers, nothing more.

0 commit comments

Comments
 (0)