Repository navigation
test: strengthen validation migration coverage - #156
Conversation
There was a problem hiding this comment.
🟡 Changes recommended
Critical validation gaps can falsely certify recoveries and exact inventories from incomplete evidence, while ILM checks can miss extra delete markers and tag-filter violations.
7 open issues
Reject empty legacy manifests without completeness evidence · New Require complete current-list evidence · New Wait for control survival beyond the combined due window · New Reject extra markers in exact-inventory checks · New Collect all version-list pages before asserting exact state · New Reject truncated version listings in exact-inventory checks · New Separate expected-manifest checks from census validation · New
What changed in this PR
This PR strengthens the existing validation harnesses for Scanner usage, lifecycle management, Heal recovery, and replication. It adds stricter assertions and regression coverage while keeping live product acceptance separate from migration completeness.
Changes:
- Add scanner-cycle tracking and stronger lifecycle timing, configuration, and version checks.
- Validate Heal node membership and inventory completeness.
- Tighten replication checks and document the migration follow-ups.
| File | Description |
|---|---|
test_validation_scanner_usage.py |
Adds cycle-tracking and public-probe failure tests. |
test_validation_replication.py |
Tests exact version and marker inventories. |
test_validation_ilm.py |
Tests lifecycle inventory assertions. |
test_validation_heal_availability.py |
Adds census and node-membership regression tests. |
scripts/validation_scanner_usage/runner.py |
Records and validates cycles during sampling. |
scripts/validation_scanner_usage/cycle.py |
Adds monotonic cycle and stable epoch checks. |
scripts/validation_replication/replication_behavior.py |
Strengthens configuration, inventory, content-length, and resync checks. |
scripts/validation_replication/oracles.py |
Adds shared replication inventory assertions. |
scripts/validation_ilm/oracles.py |
Adds lifecycle version and marker assertions. |
scripts/validation_ilm/ilm_behavior.py |
Tightens lifecycle configuration, timing, and cleanup checks. |
scripts/validation_heal/shards.py |
Enforces unchanged node membership across snapshots. |
scripts/validation_heal/heal_probe.py |
Validates census identities, counters, bytes, and pagination. |
docs/validation-migration-map.md |
Documents the migration follow-up batches. |
docs/validation-heal-contract.md |
Describes availability and census requirements. |
docs/scanner-usage-validation.md |
Documents scanner identity and lifecycle coverage. |
Review effort: Balanced
|
The seven review findings have been addressed in commit
The local validation suite passes 1312 tests with 12 environment skips, the migration completeness review reports 145 implemented and 13 environment-gated cases with zero partial cases, and the catalog check passes. Please rerun the formal review on the current head. The 13 environment-gated cases remain disabled because the required dedicated resources and candidate-bound adapters are unavailable. The current VM lab host is offline, so no live product PASS is being claimed for those cases. |
Add the source audit inventory and index every existing compatibility, security, tier, storage, key-management, table, and upgrade procedure in the local validation catalog. Wire selectors, shared validation arguments, endpoint admission, assertions, reuse checks, and migration regression tests without changing the 158 canonical source cases.
|
The source-audit migration is now extended beyond the 158 canonical scenarios.
The VM lab host is still unavailable, so newly indexed procedure entries remain unverified live. Please review commit 6c020f7 and rerun the formal review on the current head. |
|
All required checks are green on the current head f1d4dc7, including contract, environment, security, KMS, S3, upgrade, and local test checks. The only failed run was the first security-script attempt. It exposed an unset selector variable in the legacy run_test harness. Commit f1d4dc7 fixes that with safe default expansion, and the corresponding 33-test security suite passes locally. The PR is mergeable and clean. Please complete the formal review for the current head. |
Clarify that the migration absorbs observable test content, edge cases, and assertions into the target procedure collection. Keep native implementation details and benchmarks as traceability references without requiring one-to-one ports.
|
Scope clarification applied in commit cfe5f13. The migration target is the test content and testing ideas from the source audit. Observable behavior, edge cases, boundary values, state transitions, cleanup rules, and assertion oracles are absorbed into the canonical and local procedure collection. Native implementation details and benchmarks remain traceability references and do not require one-to-one ports. The source inventory and migration map now state this explicitly. The catalog remains 158 canonical cases plus 260 local procedures, and the focused scope tests pass. Please review the current head. |
|
@copilot review |
Review found one issue in |
Document the product criteria for absorbing source test behavior, native test ideas, serialization coverage, performance gates, and CI automation into the target collection.
|
The product migration boundary is now explicit in commit 4eaca7e. Source behavior, edge cases, boundaries, state transitions, cleanup rules, and assertions are required migration content. Native implementation mechanics are selectively represented through observable behavior. Generated serialization checks are represented when persistence or compatibility is user-visible. Benchmarks become target cases only when a product SLO, capacity target, or resource budget exists. Build and repository automation remain CI quality gates. The migration inventory and PR description now use this scope. All remote checks were green before this documentation update. Please complete the formal review on the current head. |


Summary
Validation
python3 -m unittest discover -q -p 'test_validation_*.py'(1314 passed, 12 skipped)python3 -m unittest -q test_source_procedure_catalog.py test_source_test_migration_inventory.py test_validation_s3_compatibility.py test_validation_migration.pybash -n rustfs-kms-test.sh rustfs-s3-compat-test.sh rustfs-security-test.sh rustfs-storage-test.sh rustfs-table-test.sh rustfs-tier-test.sh rustfs-upgrade-test.sh scripts/run_validation_case.shpython3 -B scripts/validation_catalog.py check --catalog validation-cases.jsonpython3 -B scripts/validation_migration_review.py --require-completeLive product acceptance remains tracked separately from implementation completeness in the migration ledger. The dedicated VM lab host was unavailable during this pass, so no live PASS is claimed for environment-gated or newly indexed procedures.