Skip to content

Tooling tests: fold fork-kit/golive/tests/switch.test.py - #1523

Merged
scuttletoby merged 1 commit into
mainfrom
tooling-tests-fold-golive-switch
Nov 30, 2026
Merged

scuttletoby merged 1 commit into
mainfrom
tooling-tests-fold-golive-switch

Conversation

@scuttletoby

Copy link
Copy Markdown
Owner

Part of #1493 (part 3: fork-kit/golive/tests/switch.test.py). Nothing else of #1493 is in this PR.

What changed

  • The Round2 class is gone and its entry leaves .github/fork-test-names.json. Its tests move into the classes for their behaviour: verify-record checks into Switch, the unreadable boot id into Refusals, restage, stage and downgrade-environment cases into WayBack, and the killed-W1 and reboot cases into Guard.
  • Deleted as repeats:
    • "installed target is not the rehearsed build fails verify at once": the WayBack tamper case already covered it. Its check that verify fails at once (MIN_LIMIT 60, under 30 s on the real clock) moved into that case.
    • "the guard step journals the boot": every guard case depends on it. Planted bug: with facts['boot'] = boot removed from switch.py, 7 of the 23 Guard tests fail.
  • Folded: "after a reboot the guard by hand needs --lose-work-since" and "a journal from before the boot was kept needs the copy time" are now one table (reboot, no boot in the journal). Planted bug: with the boot check in _w1_needs_owner forced to pass, both rows fail.
  • Round-history comments dropped (Fork #422 round 2 (state minor 3), #557 lens A/B). Git keeps that history.
  • Weight line in .github/fork-ci-tests.txt changed from ~109s to ~105s.

Before / after (same machine, one run each)

Lines Tests Run time
Before (main) 1 787 108 130 s
After 1 771 105 125 s

The machine was busy, so the run-time difference is close to noise.

Checks run

  • python3 fork-kit/golive/tests/switch.test.py: 108 OK before, 105 OK after.
  • Run locally with passing results: Fork checks scripts (test-names, schema, upstream-files, seam).
  • vp is not on this machine, so vp run check:changed did not run. This PR changes Python only, no TypeScript.

General vs project

General: these are the fork's own golive kit tests. Nothing project-specific.

🤖 Generated with Claude Code

The Round2 class is gone. Its tests move into the behaviour classes they
belong to (Switch verify, Refusals, WayBack, Guard). Two that repeat other
cases are deleted: the tamper-fails-at-once test (its time check joins the
WayBack tamper case) and the boot-journal test (every guard case reads it).
The two "guard cannot tell the boot" cases become one table. Round-history
comments are dropped; git keeps that history.

Part of #1493

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@scuttletoby scuttletoby added the fork:merge-ready Merge conveyor: lenses done, merge when green (PRs) label Nov 30, 2026
@scuttletoby
scuttletoby merged commit 0f37a32 into main Nov 30, 2026
25 checks passed
@scuttletoby
scuttletoby deleted the tooling-tests-fold-golive-switch branch November 30, 2026 07:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

fork:merge-ready Merge conveyor: lenses done, merge when green (PRs)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant