Skip to content

test(scanner): cover signed progress across local epochs - #188

Merged
overtrue merged 1 commit into
mainfrom
houseme/scanner-receipt-9827
Dec 1, 2026
Merged

overtrue merged 1 commit into
mainfrom
houseme/scanner-receipt-9827

Conversation

@houseme

@houseme houseme commented Dec 1, 2026

Copy link
Copy Markdown
Contributor

Summary

Register USAGE-23 for rustfs/rustfs#9827. The candidate-native regression exercises the production scanner receiver with signed durable progress receipts from a worker and leader with different local publication epochs. It verifies that a valid companion keeps the worker identity and that a companion with a mismatched epoch is rejected.

Verification

  • The USAGE-23 adapter returned PASS on Linux arm64 Docker against the native scanner test from RustFS commit 3a36b09562313fd7dda0fc2f62284b65a973f59b. Exact test execution, USAGE-23-A01 evidence, and cleanup passed.
  • The 57 scanner-usage runner tests, shell scanner-usage checks, catalog validation, migration review validation, and USAGE-23 dry-run selector passed.

The case uses an in-memory scanner stream fixture. It requires a native binding from the RustFS fix or a later candidate that contains that binding.

Register USAGE-23 using the exact scanner receipt regression and preserve the migration review checks.

Co-Authored-By: heihutu <[email protected]>
Co-Authored-By: zhi22915 <[email protected]>
Co-Authored-By: qunjiazhu <[email protected]>

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

Review Summary

  • scripts/validation_scanner_usage/contracts.py & validation-cases.json:
    • Registers USAGE-23 (scanner.usage-23-remote-progress-local-epoch) cleanly on the native-test channel with P1 priority and clear assertion criteria matching scripts/validation_scanner_usage/native.py.
  • docs/scanner-usage-validation.md:
    • Documents USAGE-23 and its USAGE-23-A01 binding to remote_scanner::stream::tests::durable_progress::durable_progress_requires_negotiation_exact_scope_mac_and_eof, matching the Rust test in rustfs/rustfs#9830.
  • test_validation_scanner_usage.py & validation-migration-review.json:
    • Updates expected case counts from 22 to 23 across native-mode, catalog, and dry-run tests, and refreshes reviewed_files SHA-256 digests and evidence_basis consistently so validation_migration_review.py --require-complete passes.
  • unit-and-governance and contract-tests both passed (local-smoke-profile is workflow_dispatch-only).

@overtrue
overtrue merged commit f9c82dd into main Dec 1, 2026
3 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.

2 participants