Skip to content

test(heal): require six-drive loopback overwrite rollback in G01 - #206

Merged
overtrue merged 2 commits into
rustfs:mainfrom
myrust-go:test/g01-remote-overwrite-read-repair
Dec 3, 2026
Merged

overtrue merged 2 commits into
rustfs:mainfrom
myrust-go:test/g01-remote-overwrite-read-repair

Conversation

@myrust-go

@myrust-go myrust-go commented Dec 3, 2026 •

Copy link
Copy Markdown
Contributor

G01 now requires three native regressions for RustFS candidate 6336a21da9760df52f0e85f0dd84b78f865b70eb. The two existing ecstore tests cover committed overwrite cleanup and stale read repair before the final rename. The new rustfs library test drives a six-disk, three-generation split through the normal read-repair entry point. It observes the incarnation-bound undo over loopback gRPC, checks that both backups and receipts were consumed, and verifies the full committed object body.

The collector builds both library test targets, checks their exact inventories, and binds each executable digest and test result to the source, helper and hosted run. G01 preflight rejects a missing RPC binary, an invocation from the wrong library, an incomplete group or evidence from another candidate. Older pinned source contracts retain their original test groups. The H1/H2 fleet branches are still required for a complete G01 pass.

The producer upload for the RPC test executable is in rustfs/rustfs#9885.

Verification

  • 98 related Python tests passed, including exact Cargo library selection, all three invocations, tampered evidence and historical contracts.
  • The heal matrix validated 84 cases and 302 operator branches.
  • Compared the candidate Git tree, lockfile, eight source digests and all three Rust test functions against the pinned commit.
  • All three native tests passed locally on the exact candidate 6336a21da9760df52f0e85f0dd84b78f865b70eb. The ecstore tests were deep_heal_preserves_committed_generation_during_old_data_cleanup and read_repair_commit_aborts_when_object_changes_before_final_rename. The rustfs test read_repair_consumes_overwrite_rollback_over_loopback_rpc passed under nextest in 5.536 seconds.
  • The Linux contract job ran 1,393 validation tests. The migration review and governance checks passed. Contract job · Governance job
  • A hosted native tools build and the public H1/H2 fleet runs are still needed for canonical G01 acceptance.

@overtrue overtrue left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM — reviewed head 0b9fb796 (test(heal): record the reviewed G01 evidence contract).

  • scripts/validation_heal/race.py, race_native.py, race_native_contracts.json, race_native_evidence.py: Adding LOOPBACK_CANDIDATE (6336a21da9760df52f0e85f0dd84b78f865b70eb), multi-library --lib compilation (rustfs-ecstore and rustfs), additionalBinaries digest verification, and per-package test dispatch cleanly binds the six-drive loopback overwrite rollback regression alongside the existing ecstore cases.
  • test_validation_heal_race_native.py & validation-migration-review.json: Thoroughly covers multi-library selection, wrong-library/tampered-binary/wrong-source rejection, and updates all SHA-256 inventory entries accurately. (Minor non-blocking typo in race_native_contracts.json: "in4/2 and16/4" lacks spaces.)
  • CI: unit-and-governance and contract-tests both pass (local-smoke-profile skipped).

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.

3 participants