Skip to content

fix: retry the uv release download in setup-runtime - #1666

Merged
max-sixty merged 1 commit into
mainfrom
fix/issue-1663
Nov 10, 2026
Merged

max-sixty merged 1 commit into
mainfrom
fix/issue-1663

Conversation

@tend-agent

Copy link
Copy Markdown
Collaborator

install-uv.sh downloaded the uv release archive with a single curl -fsSL and no retry, so one transient 504 from GitHub's release CDN failed setup-runtime. Since #1608, setup-runtime runs as its own step ahead of claude/codex, so that failure skips the harness action and its Report failure step: the run goes red and no tend-outage row is filed. #1663 counts 14 such runs in max-sixty/cargo-affected on 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 5 to the one curl. curl's --retry treats 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 504 twice and then 200. Plain curl -fsSL exits 22 with The requested URL returned error: 504, the error in the report. With --retry 5 it recovers on the third request and exits 0. test_repo_pins.py and scripts/test_workflow_scripts.py pass, and so does shellcheck.

This does not close the reporting gap: a setup-runtime failure that outlasts the retries still skips Report failure. The issue weighs two ways to close it, a runtime-independent if: failure() step emitted by the generator or having review-runs treat setup-runtime=failure runs as outage rows, and choosing between them is left to a maintainer.

Refs #1663 — automated triage

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
max-sixty merged commit f9a7eb8 into main Nov 10, 2026
12 checks passed
@max-sixty
max-sixty deleted the fix/issue-1663 branch November 10, 2026 08:12
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]>
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