Qualify peer artifact rollback under ENOSPC - #74
Merged
Conversation
There was a problem hiding this comment.
Pull request overview
This PR extends the peer artifact replication E2E gate to deterministically exercise (and verify) rollback behavior when node-B runs near ENOSPC during peer artifact localization, using an opt-in failpoint that pauses immediately after disk reservation.
Changes:
- Add a
test-failpoints-gated taritd failpoint to pause after artifact localization disk reservation. - Enhance the E2E script to mount node-B onto a loop-backed btrfs filesystem, exhaust free space below the required localization size, and assert a private 503 with no partial replica/snapshot/branch/staging state.
- Improve teardown by using the supported
losetup --detachloop device cleanup path.
Reviewed changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.
| File | Description |
|---|---|
| orch/tests/e2e_peer_artifact_replication.sh | Adds near-ENOSPC fixture (loop+btrfs), drives storage pressure during localization pause, validates lossless rollback + clean retry, and updates cleanup behavior. |
| orch/crates/taritd/src/ops.rs | Introduces an opt-in localization pause failpoint immediately after disk reservation (gated behind test-failpoints). |
💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
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
losetup --detachinvocationValidation
cargo test --locked -p taritd --features test-failpoints(383 passed)c7a12de7ed677968e151d6b5df2de015739c4d68