test(infra): rebind seeded archive clone bootstrap (#3884) - #3884
Merged
Conversation
Problem: seeded workload clones retained a fresh durable bootstrap marker bound to the immutable artifact. The first real archive open then failed durable identity continuity before candidate tests could reach their production route. Recreate the copied marker through the production bootstrap writer after both reflink and copy fallback clones become writable. Cover destination-bound identity, immutable source preservation, real writer opens, and foreign-marker rejection. Ref polylogue-seeded-clone-bootstrap-rebind. Co-Authored-By: Codex <noreply@openai.com>
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: ASSERTIVE Plan: Pro Plus Run ID: 📒 Files selected for processing (3)
📝 WalkthroughWalkthrough
ChangesSeeded archive clone isolation
Estimated code review effort: 2 (Simple) | ~10 minutes Possibly related PRs
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
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.
Summary
Seeded workload archive clones now replace the copied fresh durable-bootstrap marker with evidence bound to the destination clone before use. Reflink and ordinary copy clones both open through the real
ArchiveStorepath without weakening durable-continuity checks.Problem
The immutable seeded artifact's marker binds the source and user database identities.
clone_seeded_archivecopied that marker unchanged, so the first real writer open rejected the clone with a durable-identity mismatch. PR #3883 covered empty archive-template clones, but not seeded workload artifacts used by candidate and canary tests.Solution
After making the clone writable,
tests/infra/workload_artifacts.pyremoves only the copied marker and invokes the production bootstrap recorder against the destination. Tests exercise realArchiveStoreopens, prove the immutable source marker remains unchanged, cover reflink and forced-copy paths, and prove that restoring a foreign marker still fails closed.Ref
polylogue-seeded-clone-bootstrap-rebind.Verification
.venv/bin/mypy --strict tests/infra/workload_artifacts.py tests/unit/infra/test_workload_artifacts.py:Success: no issues found in 2 source files.venv/bin/python -m devtools test tests/unit/infra/test_workload_artifacts.py tests/unit/test_pytest_temp_policy.py tests/unit/storage/test_durable_change_train.py::test_startup_proves_durable_continuity_before_initialization_or_release:26 passed.venv/bin/python -m devtools verify --quick: all 24 steps green at exact head, receipt20260808T083519Z-quick-3611577-c2b1e641Summary by CodeRabbit
Bug Fixes
Tests