Repository navigation
Stop the CI poll from waiting on a job held for environment approval - #1473
Merged
max-sixty merged 1 commit intoOct 1, 2026
Merged
Conversation
A CheckRun in status WAITING is a job parked on an environment's protection rules; it moves only when someone outside the run approves it. poll_pr_checks.py counted it as pending, so the post-approval poll in tend-review held the session until the harness timeout. It now reports such a job as settled without a result: `poll` exits 2 (unverified, not green) naming it, and `approval` names it beside an approval as it already does for a cancelled check.
max-sixty
deleted the
review-reviewers/36845166779-dormouse-poll-waiting
branch
October 1, 2026 09:58
This was referenced Oct 1, 2026
This was referenced Oct 2, 2026
Merged
max-sixty
pushed a commit
that referenced
this pull request
Oct 2, 2026
…'s unverified checks (#1475) #1473 made `poll_pr_checks.py` treat a job held for an environment's approval (`WAITING`) as settled without a result. Under `approval`, such a job now lands in the unverified list beside an `approve:` verdict, just as a cancelled check does. The text that tells a review session what those unverified checks mean still listed only cancelled, stale, and unrecognized conclusions. That covers [`references/approving.md`](https://github.com/max-sixty/tend/blob/95427f945b047d655920f844bf15af0849acf574/plugins/tend-ci-runner/skills/review/references/approving.md#L19) and the `approval` docstring. This PR adds the environment-approval case to both, so the review body can say why a named check never ran. This changes only docs and a docstring, so there's no regression test. `test_poll_scripts.py` and `test_repo_pins.py` pass, and the pre-commit hooks pass on both files. --------- Co-authored-by: tend-agent <[email protected]>
max-sixty
pushed a commit
to max-sixty/worktrunk
that referenced
this pull request
Oct 4, 2026
Regenerates the Tend workflows with tend 0.3.7 (from 0.3.5). The effect for this repo: the generated workflows now pin third-party actions and `uv` to commits and checksums, and the bot's sessions pick up 0.3.6–0.3.7's skill and runner fixes. No `.config/tend.yaml` change was needed. What changes for worktrunk: - **Supply-chain pinning** — `actions/checkout` and `astral-sh/setup-uv` are pinned to commit SHAs (version kept as a comment), and the `uv` download (bumped to 0.12.22) is verified against a per-arch checksum (max-sixty/tend#1463). - **Mention prompt moves into a skill** — `tend-mention` now invokes `/tend-ci-runner:mention` and passes only the triggering event; the per-event "read the context, respond, make changes" instructions that were inlined in the workflow now live in the skill. - **`fetch-tags: true` is dropped from checkouts.** Every Tend checkout uses `fetch-depth: 0`, which already fetches all tags, so `build.rs`'s `git describe` still sees them. - **CI polling no longer waits on a job held for environment approval** (max-sixty/tend#1473), and nightly reads the last successful run more robustly so a cached listing can't widen its review range (max-sixty/tend#1468). - **Triage opens a PR when a maintainer is reasonably likely to merge it** rather than defaulting to a comment (max-sixty/tend#1471), and repair sessions resume unfinished bot work from the live PR state (max-sixty/tend#1479). - Claude Code is bumped to 2.1.288 (max-sixty/tend#1491). Full upstream diff: max-sixty/tend@0.3.5...0.3.7 Co-authored-by: worktrunk-bot <[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.
poll_pr_checks.pycounted a CheckRun in statusWAITING, a job held by an environment's protection rules, as pending. Only someone outside the run can approve that job, so the poll never settled. This PR reports such a job as settled without a result, sopollexits 2 (unverified, not green) and names it.approvallists it as unverified beside an approval, as it already does for a cancelled check. Three new tests ingenerator/tests/test_poll_scripts.pycover this, and all three fail on main.#1450 removed the poll's deadline "until a real run shows the case needs handling". Two such runs have now happened on diffplug/dormouse, which moved to 0.3.5 yesterday:
poll_pr_checks.py poll 864 <sha>then waited ondeploy(workflowHosted PR preview), which sat inWAITINGfor thehosted-previewenvironment. GraphQL still reportsstatus: WAITINGon that commit. Every other check was green by 03:54Z.reviewcheck on a PR the bot had approved.cleanupjob, which sits inWAITINGnow that the PR has merged.report_failure.pyopened Bot temporarily unavailable diffplug/dormouse#871, "Bot temporarily unavailable", for a run that had done its work.Dormouse's
Hosted PR previewparksdeploy(on open PRs) andcleanup(on closed ones) like this, so without this change each review of one costs about six hours of runner time, a red check, and an outage-tracker row.The
WAITINGstatus is kept through the per-name grouping and classified only when the output lists are built. When an earlier green attempt of the same check exists, the grouping therefore still prefers the waiting attempt and doesn't fall back to the green one. One test covers that case with nostartedAt. An environmentwait_timeralso shows asWAITING. It would end on its own, but reporting it as unverified is the fail-closed reading, and a wait timer can last up to 30 days. Themonitor-ciskill needs no change, because it already treats any exit other than 0, 1 or 3 as unverified, not green.Evidence log: https://gist.github.com/tend-agent/ca54094796f3f5c2370cdda4e3ed32d1