Skip to content

test: strengthen validation migration coverage - #156

Merged
cxymds merged 7 commits into
mainfrom
cxymds/validation-migration-batches
Nov 22, 2026
Merged

cxymds merged 7 commits into
mainfrom
cxymds/validation-migration-batches

Conversation

@cxymds

@cxymds cxymds commented Nov 22, 2026 •

Copy link
Copy Markdown
Member

Summary

  • strengthen Scanner usage and ILM migration oracles with monotonic cycle checks, strict lifecycle round trips, invalid configuration branches, and exact version inventories
  • add Heal availability and census invariants for node membership, object and marker identities, counters, bytes, and pagination summaries
  • strengthen bucket and site replication coverage with rejected-configuration checks, exact version and marker inventories, content-length validation, loop protection, and resync terminal-state tracking
  • add a source-audit migration inventory covering all 18 workflows, 243 test files, 1,081 test functions, and 872 benchmarks
  • absorb source test content, edge cases, and assertions into the target procedure collection without requiring one-to-one native test ports
  • document the product boundary for native tests, generated serialization checks, benchmarks, and CI automation
  • index every existing compatibility, security, tier, storage, key-management, table, and upgrade procedure as 260 individually selectable local procedures, preserving existing assertions and reuse candidates
  • add endpoint admission, selectors, reuse validation, dry-run checks, and migration regression tests without changing the 158 canonical source cases

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.py
  • bash -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.sh
  • table and upgrade selectors dry-run all 7 and 18 newly indexed cases
  • python3 -B scripts/validation_catalog.py check --catalog validation-cases.json
  • python3 -B scripts/validation_migration_review.py --require-complete

Live 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.

Copilot AI balanced review requested due to automatic review settings November 22, 2026 02:05

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

🟡 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
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

Comment thread scripts/validation_heal/heal_probe.py Resolved
Comment thread scripts/validation_heal/heal_probe.py Resolved
Comment thread scripts/validation_ilm/ilm_behavior.py Resolved
Comment thread scripts/validation_ilm/ilm_behavior.py Resolved
Comment thread scripts/validation_ilm/oracles.py Resolved
Comment thread scripts/validation_heal/heal_probe.py Resolved
@cxymds

cxymds commented Nov 22, 2026

Copy link
Copy Markdown
Member Author

The seven review findings have been addressed in commit 2b89afa and all review threads are resolved.

  • Empty legacy manifests now require completeness evidence.
  • Current-list pagination must be present and equal the latest live-object count.
  • Expected ACK-derived manifests use entry-only comparison, separate from census validation.
  • Truncated version listings are rejected.
  • ILM current-expiration checks reject extra markers and retain the original version identity.
  • Tag-filter validation observes the control object through the combined due window and successful scanner cycles.
  • The migration review manifest has been refreshed for the reviewed file digests.

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.

@cxymds
cxymds requested a review from overtrue November 22, 2026 03:30
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.
@cxymds

cxymds commented Nov 22, 2026

Copy link
Copy Markdown
Member Author

The source-audit migration is now extended beyond the 158 canonical scenarios.

  • Added the complete source inventory for all 18 workflows, 243 test files, 1,081 test functions, and 872 benchmarks.
  • Added 105 compatibility procedures, 110 security/tier/storage/key-management procedures, 7 table procedures, and 18 upgrade procedures. The local catalog now has 260 individually selectable procedures.
  • Added selectors, shared validation arguments, reuse-candidate checks, endpoint admission, and assertion-preserving dry-runs. The table and upgrade selectors cover all 25 newly indexed procedures.
  • Updated the migration map and review manifest. Canonical source-case implementation review remains 145 implemented, 13 environment-gated, and 0 partial.
  • Local validation passed 1314 tests with 12 skips. Catalog and implementation-review checks pass.

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.

@cxymds

cxymds commented Nov 22, 2026

Copy link
Copy Markdown
Member Author

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.
@cxymds

cxymds commented Nov 22, 2026

Copy link
Copy Markdown
Member Author

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.

@cxymds

cxymds commented Nov 22, 2026

Copy link
Copy Markdown
Member Author

@copilot review

Copilot AI commented Nov 22, 2026

Copy link
Copy Markdown

@copilot review

Review found one issue in docs/source-test-migration-inventory.md:70-72: the three benchmark-only files (0 test entries) are labeled source-idea-mapped and described as mapped behavior, while the scope section says benchmarks are performance references. This overstates behavior-migration coverage; classify those rows as performance references or identify specific mapped performance coverage.

Document the product criteria for absorbing source test behavior, native test ideas, serialization coverage, performance gates, and CI automation into the target collection.
@cxymds

cxymds commented Nov 22, 2026

Copy link
Copy Markdown
Member Author

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.

@cxymds
cxymds merged commit ca87509 into main Nov 22, 2026
7 checks passed
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