Repository navigation
fix: retry the uv release download in setup-runtime - #1666
Merged
Merged
Conversation
setup-runtime installs uv as its own step ahead of the harness action, so a transient 504 there skips the action's Report failure and loses the run unrecorded. curl --retry 5 rides out transient 5xx and timeouts. Refs #1663
max-sixty
added a commit
to max-sixty/leaf
that referenced
this pull request
Nov 14, 2026
Regenerates Leaf's Tend workflows with [tend 0.3.25](https://github.com/max-sixty/tend/releases/tag/0.3.25). The change that matters here is the CI failure report's lifecycle ([max-sixty/tend#1677](max-sixty/tend#1677)). `main` has been red since 25 Oct, and its report stayed open the whole time, so each later failed `ci` run only added a "Failed again" comment and new failures waited up to a day for the daily sweep. Now triage closes the report once every failure has an owner, and the next failed run reopens it, which starts a triage session through the ordinary `issues: reopened` event. The workflow change itself is only `tend-ci-failures`' comment and every action pin moving to 0.3.25; the behavior is in the released runtime and skills. The release also retries the uv download in `setup-runtime` ([max-sixty/tend#1666](max-sixty/tend#1666)), where one 504 on 8 Nov left Leaf's new causes waiting 22 to 24 hours for the next sweep, and ends a session's CI poll before the session's own timeout ([max-sixty/tend#1683](max-sixty/tend#1683)). > _This was written by Claude Code on behalf of max-sixty_
max-sixty
pushed a commit
to max-sixty/worktrunk
that referenced
this pull request
Nov 15, 2026
Regenerates the Tend workflows for tend 0.3.24 → 0.3.25 ([compare](max-sixty/tend@0.3.24...0.3.25)). The diff only bumps the action pins and the generated-by header, plus a reworded `tend-ci-failures` header comment. The behavior changes come with the new action version. What changes for this repo: - **CI failure reports follow the lane's state.** Triage now closes a CI failure report once it has diagnosed the failure and every failure has an owner. The lane's next failure reopens the report, which starts a new triage session instead of only adding a "Failed again" comment (max-sixty/tend#1677). Before filing, triage also searches for an existing cause by the full test name (max-sixty/tend#1673). - **CI polling handles more cases.** A failed external check, such as `codecov/patch`, now returns red once it fails on two reads 30 seconds apart, without waiting for hung Actions jobs (max-sixty/tend#1584). Cancelled matrix checks are superseded by a later run of the same workflow (max-sixty/tend#1526). The poll now ends before the Claude session's own timeout, so a session that approved and then polled CI can still act on the result (max-sixty/tend#1683). - **`tend check` can accept a reviewed failure.** A maintainer can list a failing check under `checks.accepted` in `.config/tend.yaml` with a reason. It then prints as `ACCEPTED`, no longer fails `tend check`, and the nightly drift step treats it as a non-failure (max-sixty/tend#1662). This is relevant to #4797 if the `release` environment's `workflow_dispatch` exposure is judged acceptable rather than gated. - **Setup is more robust.** `setup-runtime` retries the uv download (max-sixty/tend#1666), and Claude Code moves to 2.1.322 (max-sixty/tend#1665). 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.
install-uv.shdownloaded the uv release archive with a singlecurl -fsSLand no retry, so one transient504from GitHub's release CDN failedsetup-runtime. Since #1608,setup-runtimeruns as its own step ahead ofclaude/codex, so that failure skips the harness action and itsReport failurestep: the run goes red and notend-outagerow is filed. #1663 counts 14 such runs inmax-sixty/cargo-affectedon 2026-11-08/09, including a weekly run whose maintenance was lost. When the retry stack was closed on #906, the remedy named for recurrence was "the attempt count in the existing loop". That loop is gone from this path, so this adds--retry 5to the onecurl. curl's--retrytreats 408/429/500/502/503/504 and timeouts as transient and backs off 1, 2, 4, 8 and 16 s, about 31 s at most before the step fails as it did before.The same script also installs the sandbox's agent uv fallback inside the harness actions, so that download gets the retry too.
Verified against a local server that returns
504twice and then200. Plaincurl -fsSLexits 22 withThe requested URL returned error: 504, the error in the report. With--retry 5it recovers on the third request and exits 0.test_repo_pins.pyandscripts/test_workflow_scripts.pypass, and so does shellcheck.This does not close the reporting gap: a
setup-runtimefailure that outlasts the retries still skipsReport failure. The issue weighs two ways to close it, a runtime-independentif: failure()step emitted by the generator or having review-runs treatsetup-runtime=failureruns as outage rows, and choosing between them is left to a maintainer.Refs #1663 — automated triage