Repository navigation
Give exact workflow test claim a turn identity - #1449
Closed
leaf-agent wants to merge 1 commit into
Closed
leaf-agent wants to merge 1 commit into
leaf-agent wants to merge 1 commit into
Conversation
This was referenced Sep 30, 2026
max-sixty
added a commit
that referenced
this pull request
Sep 30, 2026
…en claim a turn (#1451) Main's nightly job fails on 776 of its 2,107 tests. Two main commits caused it, and neither PR ran the nightly-marked tests. - **The shift watch (#1432).** `EXPECTED` in `tests/shift_watch.js` lists the shifts without input that the broad selection's pages make. The nightly-marked tests' pages make many more: 809 distinct moved elements, reported as teardown errors on 766 tests. Examples are `INLINE_PAGE`'s `lf-options` growing its 44px write-in row as it upgrades under authored HTML that already painted, which pushes every paragraph below it down, and `ASK_PAGE`'s Ask pushing its sections down 63px. Listing them region by region would turn `EXPECTED` into an allowlist of most of the corpus. The nightly-marked tests now skip the watch (`tests/conftest.py`, `_watches_shifts`). The broad selection still fails on any shift the list doesn't name. - **A claim without a turn (#1433).** #1433 made `turn` a required claim field, and `claim_update_sources` drops a claim that lacks it. The claim that `test_an_exact_workflow_reports_stale_work_beside_a_live_page_claim` writes by hand had no `turn`, so its thread read Sent instead of Working. The claim now names `turn-1`, the turn `record_claim` gives its session, as `set_status` would record it. This is the same line #1449 proposes. - **A status read at one stage (#1450).** `test_the_margin_groups_meanings_at_one_destination_without_moving_the_page` found the move's status by the text "Sent for". The pickup grace can run out during the journey and relabel it "Waiting for pickup", which is how [nightly run 36633195934](https://github.com/max-sixty/leaf/actions/runs/36633195934) failed. The test now finds the status by role at any stage. #1450 also found that the Ask fixture's startup shift would still fail the test at teardown; with the nightly tests off the shift watch, that no longer happens. On macOS, a full nightly run (`pytest tests --run-nightly -m nightly`) on main before this change had 56 failures and 807 errors. After it, the run had 3 failures and 1 error. Two of those failures pass when re-run serially, which points to load (the load average was 39). The third was the claim test fixed here. It and the margin test both pass now. The everyday selection passes (1,451 tests). The nightly pages' shifts are still defects under the Stability rule. Bringing the nightly tests back under the watch means fixing them, starting with the widgets that grow as they upgrade. > _This was written by Claude Code on behalf of max-sixty_ 🤖 Generated with [Claude Code](https://claude.com/claude-code) --------- Co-authored-by: Claude Opus 5.5 (1M context) <[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.
The nightly exact-workflow test now writes the
turnfield required of a work claim. The server'sclaim_update_sourcesignores incomplete records, so the fixture's claimed work never reached the browser and its message stayed at “Sent.” The test failed at that assertion on run 36633195934.Verified: the targeted test failed before this change, passed locally after it, and passed on this PR's head in CI. The full
testjob remains red: running the whole touched startup file surfaced one other assertion failure and 16 browser-health errors. Theh2#afterstartup shift reproduces with the same message on currentmain; the other failures have not been checked individually onmain. This PR needs a green CI gate before merging.The original run's separate margin-status failure is tracked in #1450. That test expects “Sent” after the pickup grace can instead label the same receipt “Waiting for pickup”; removing the age-sensitive match exposes an independent initial Ask layout shift. This PR changes only the exact-workflow fixture.