Skip to content

test(ci): pin that a failed cross-filesystem baseline restore exits 1 cleanly - #124

Open
bodencrouch wants to merge 3 commits into
mainfrom
test/baseline-exdev-failure
Open

bodencrouch wants to merge 3 commits into
mainfrom
test/baseline-exdev-failure

Conversation

@bodencrouch

Copy link
Copy Markdown
Owner

Stacked on #122 (contains its commits; merge #122 first, then this PR shows only the test).

Adds a test to test_fullrun_baseline.py: when the verified tree can't be renamed into the lane's loop-mounted storage (EXDEV) and the restore at the destination then fails verification, main() reports ::error, exits 1, and leaves no game tree behind.

Verification: replacing the verified destination restore with an unverified shutil.copytree makes this test and #122's EXDEV test fail. Contract suite: 1334 OK.


Generated by Claude Code

ci and others added 3 commits November 23, 2026 21:12
… storage

Every install lane (all 12: k1/k2 x cli/gui x three patcher backends) failed
at "Recover and verify the lane-local game baseline", so no patcher lane
ever installed anything and the cross-lane comparison had nothing to compare.

Exhaustive lanes loop-mount a compressed btrfs image as FULLRUN_STORAGE_ROOT.
recover() verified the baseline under RUNNER_TEMP and then renamed the
verified tree into the mount, which crosses filesystems (EXDEV). The broad
OSError handler reported that as "No verified baseline is available".

On EXDEV, restore the same already-verified seal directly at the destination
with verify_seal (unpack + inventory verification), so only freshly verified
bytes are materialized and nothing is copied unverified. Any other OSError
still fails recovery.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01QDKiomK3BZE8fScCAGRfuq
… cleanly

When the verified tree cannot be renamed into the lane's loop-mounted storage
(EXDEV) and the restore at the destination then fails verification, main()
must report ::error, exit 1, and leave no game tree behind. Replacing the
verified restore with an unverified copy makes this test and the existing
EXDEV test fail.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01QDKiomK3BZE8fScCAGRfuq

Copy link
Copy Markdown
Owner Author

Install lanes on this head fail at observe_k1_bound_model with source_program_archive_identity_changed. This PR is stacked on #122 and only adds a test, so the failure isn't from its diff.

Cause: DeadlyStream re-uploads no longer match the manual-plan pins (details: #122 (comment)). The fix is in #127. This PR waits on #122 and #127.

🤖 Generated with Claude Code

https://claude.ai/code/session_01QDKiomK3BZE8fScCAGRfuq


Generated by Claude Code

Copy link
Copy Markdown
Owner Author

install (k2, cli, holo-patcher) fails for a second, separate reason. This one isn't from this PR's diff either.

The lane re-downloads 63 of its 145 sources from the websites, because tools/modsync-ci/fullrun_contract.py (lines 102-106) makes every PR into main a release candidate, and release candidates require "downloader refresh" in every install lane. In this run, 15 sources ended unresolved:

  • 9 DeadlyStream pages answered HTTP 403 (examples: K2 Community Patch, 4K Atton, Peragus Medical Bay Enhancement). With 12 lanes per run and several PRs open, every lane is downloading from the same host.
  • 6 Nexus mods (kotor2/mods/1060, 1066, 1100, 1101, 1103, 1105) report "nexus requires NEXUS_API_KEY" in the lane, and no cached copy was available to fall back on.

The archives job in this run succeeded, so its cache had a full set to work from. Whether every lane should re-download, or only the archives job should refresh while the lanes restore from its cache, is a policy decision. I've raised it with the maintainer rather than changing it here.

🤖 Generated with Claude Code

https://claude.ai/code/session_01QDKiomK3BZE8fScCAGRfuq


Generated by Claude Code

This branch has not been deployed

No deployments
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