Skip to content

Give exact workflow test claim a turn identity - #1449

Closed
leaf-agent wants to merge 1 commit into
mainfrom
fix/ci-36633195934-workflow
Closed

leaf-agent wants to merge 1 commit into
mainfrom
fix/ci-36633195934-workflow

Conversation

@leaf-agent

@leaf-agent leaf-agent commented Sep 30, 2026 •

Copy link
Copy Markdown
Collaborator

The nightly exact-workflow test now writes the turn field required of a work claim. The server's claim_update_sources ignores 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 test job remains red: running the whole touched startup file surfaced one other assertion failure and 16 browser-health errors. The h2#after startup shift reproduces with the same message on current main; the other failures have not been checked individually on main. 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.

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]>
@leaf-agent leaf-agent closed this Sep 30, 2026
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.

1 participant