Skip to content

Adopt tend 0.3.12 so reviews stop waiting for CI; hold revision bundles by path - #2455

Merged
max-sixty merged 4 commits into
mainfrom
test-cost
Oct 12, 2026
Merged

max-sixty merged 4 commits into
mainfrom
test-cost

Conversation

@max-sixty

Copy link
Copy Markdown
Owner

Two changes from the test-cost survey.

Reviews stop waiting for CI. Adopts tend 0.3.12 (max-sixty/tend#1538) with workflows.review.await_ci: false in .config/tend.yaml. A review now acts on the checks already finished and ends, rather than polling the ~50-minute suite after it approves: polling was ~95% of tend-review's runner time in sampled long sessions, and tend-review ~31% of the repository's Actions minutes over Oct 9–11. A check already red when the review reads CI is still acted on (a related failure dismisses the approval). Under merge: yolo a review still waits on a head the bot pushed, since it is the lander there. The regeneration also carries 0.3.12's other workflow change: tend-ci-fix starts only on failed runs, not cancelled ones.

The page server holds revision bundles by their content-addressed path. A revision's name carries its manifest's digest and its marker appears only after its bundle is complete, so read_artifact no longer stamps three files per call, and the resource route stops resolving the revision listing twice more to rebuild a root its URL already names. A runtime module GET makes 3 stats and 1 open instead of 7 and 1. Behavior change: a bundle deleted under a running server keeps serving its held descriptor until the memo drops it.

This was written by Claude Code on behalf of max-sixty

max-sixty and others added 3 commits October 11, 2026 14:12
…ping

A revision's name carries its manifest's digest and its marker appears only
after its bundle is complete, so one path names one bundle for good. read_artifact
still stamped the marker, the bundle directory and manifest.json on every call,
and the resource route resolved the revision listing twice more to rebuild a root
its URL already names. A runtime module GET now makes 3 stats and 1 open instead
of 7 and 1.

Behavior change: a bundle deleted under a running server keeps serving its held
descriptor until the server's memo drops it.

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
`workflows.review.await_ci: false`: a review acts on the checks already
finished and ends, rather than polling the ~50-minute suite after it
approves. Polling was ~95% of tend-review's runner time and tend-review
~31% of the repository's Actions minutes over Oct 9-11. Under yolo it
still waits on a head the bot pushed, since it lands those.

The regeneration also carries tend 0.3.12's other workflow change:
tend-ci-fix starts only on failed runs, not cancelled ones.

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>

@leaf-agent leaf-agent left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The new path-only cache leaves test_artifact_cache_refuses_a_replaced_immutable_manifest asserting the old invalidation behavior. After its first read, read_artifact returns the held descriptor without reopening the manifest, so the test's pytest.raises(ArtifactError) fails; I reproduced this with uv run pytest tests/test_interact_document.py::test_artifact_cache_refuses_a_replaced_immutable_manifest -q -n0. This makes the PR's test gate red. Rework that test around the intended immutable-bundle contract, or remove the corruption case if it protects no supported behavior; a cold read can still check the manifest digest.

…n a cold read

The revision cache now holds a bundle by its content-addressed path, so a
manifest replaced after the first read is no longer reread: one test asserts
that, and the manifest-digest refusal moves to a read that finds the
replaced manifest before anything is held.

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
@max-sixty
max-sixty merged commit de2df87 into main Oct 12, 2026
3 checks passed
@max-sixty
max-sixty deleted the test-cost branch October 12, 2026 01:56
max-sixty added a commit that referenced this pull request Nov 4, 2026
`running-tend` told a session fixing a failure only `test-macos` shows
to dispatch `ci` on the fix's branch and read that run's `test-macos`
job. A triage session takes that as evidence it must collect before it
finishes, so it polls the run for its whole length, four to five hours,
while it holds the only triage lane. Two Claude triage sessions did so
in their first day: #5174's waited 4 h 10 min and #5184's 4 h 46 min. In
both, the PR (#5218, #5267) merged within 20 minutes of the wait
starting, so the result changed nothing, and #5184's dispatched run
ended red after its PR had merged.

Leaf already chose not to have Tend sessions wait on CI (`await_ci:
false`, #2455), and Tend tells every triage session so. This
instruction, added in #3939, asked for a wait the setting doesn't
govern, since the dispatched run is outside the PR's checks. It also
supplied the "passes after" evidence the merge rule in **Fixing a CI
failure's cause** asks for. Now the merge rule says that for a failure
only `test-macos` shows, the checks the Linux runner can run suffice,
and the macOS paragraph names the next scheduled run on main, after the
merge, as the evidence after the fix. The landing sessions already
worked that way: both PRs merged before their dispatched runs ended. If
the scheduled run still fails, its CI report brings the failure back to
triage.

Supersedes #5315, which makes the same merge-rule change but still
dispatches the macOS run and leaves the cause issue open until a later
session reads it. That costs a macOS run and another triage session per
fix to learn what the next scheduled run reports anyway.

> _This was written by Claude Code on behalf of max-sixty_
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