Repository navigation
Enable Lean consistency trace validation for remaining e2e tests - #8927
Merged
Merged
Conversation
Enable infra.consistency_trace.recording() on the 6 remaining e2e tests covering the e2e-reachable masked lines in src/node/rpc/frontend.h: - e2e_forwarding_smoke (tests/forwarding.py, bucket_c) - governance_test (tests/governance.py + helper modules, excluding disaster recovery networks, bucket_c) - e2e_limits (tests/limits.py, bucket_c) - js_batched_stress_test (tests/e2e_batched.py, bucket_c) - tls_stress_test (tests/connections.py + tests/fuzzing.py, bucket_c) - schema_test (tests/schema.py + tests/e2e_tutorial.py + non-recovery networks in tests/e2e_operations.py, bucket_b) Also restore args.observability on exit from consistency_trace.recording(), build and export CCF_LEAN_CONSISTENCY_REPLAYER in VMSS Virtual B (bucket_b), merge these tests' profraw files into consistency.json.gz in coverage.yml, and update verification documentation. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> Copilot-Session: b566778a2c5341e3bdd169398fc15eb7
Contributor
There was a problem hiding this comment.
🟡 Changes recommended
The coverage profile glob includes untraced governance recovery and schema lifecycle processes, incorrectly reporting unvalidated execution as consistency-validated coverage.
1 open issue
What changed in this PR
Extends Lean consistency trace validation to six additional CCF end-to-end suites, building on the logging coverage added in #8920.
Changes:
- Records additional test networks while keeping disaster recovery outside the consistency model.
- Restores observability settings after recording.
- Adds the bucket B replayer build, expands coverage inputs, and updates documentation.
Custom instructions used: .github/skills/testing/SKILL.md.
| File | Description |
|---|---|
| tests/schema.py | Traces schema test networks. |
| tests/membership.py | Traces membership scenarios. |
| tests/memberclient.py | Traces member-client tests. |
| tests/limits.py | Traces transaction-size checks. |
| tests/js_compaction_conflict.py | Traces compaction-conflict tests. |
| tests/infra/consistency_trace.py | Restores prior observability settings. |
| tests/governance.py | Adds tracing and separates recovery networks. |
| tests/governance_history.py | Traces governance-history tests. |
| tests/governance_api.py | Traces governance API tests. |
| tests/fuzzing.py | Traces fuzzing networks. |
| tests/forwarding.py | Traces forwarding tests. |
| tests/e2e_tutorial.py | Traces tutorial networks. |
| tests/e2e_operations.py | Traces non-recovery operations networks. |
| tests/e2e_batched.py | Traces batched transaction tests. |
| tests/connections.py | Traces connection test networks. |
| lean/consistency/README.md | Documents expanded tracing and commands. |
| doc/architecture/verification.rst | Updates verification coverage documentation. |
| .github/workflows/coverage.yml | Expands consistency coverage profile selection. |
| .github/workflows/ci.yml | Builds and exports the bucket B replayer. |
Review effort: Balanced
Tag args.llvm_profile_file with a consistency- filename prefix inside infra.consistency_trace.recording() and forward it to CCFRemote so consistency.json.gz only merges profiles from nodes started inside recording(), excluding untraced recovery and lifecycle processes while keeping them in baseline coverage.json.gz. Update scripts/coverage_cft_profiles.py to strip the optional consistency- prefix when matching e2e test names for consensus coverage. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
cjen1-msft
reviewed
Dec 3, 2026
cjen1-msft
reviewed
Dec 3, 2026
cjen1-msft
reviewed
Dec 3, 2026
cjen1-msft
reviewed
Dec 3, 2026
cjen1-msft
approved these changes
Dec 3, 2026
Decouple consistency trace recording (CCF_CONSISTENCY_TRACE=1, writing <workspace>/<label>_consistency_trace/<n>.ndjson) from inline replay so VMSS Virtual B and C upload traces and Replay e2e traces caches and runs consistency-replay via tests/consistency_trace_replay.py, matching consensus and disaster-recovery trace validation. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
cjen1-msft
approved these changes
Dec 3, 2026
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> Copilot-Session: 8b43b809b3a2495aa09bec1da1b087bc
cjen1-msft
approved these changes
Dec 3, 2026
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.

Builds on #8920 to enable Lean consistency trace validation (
infra.consistency_trace.recording) for the 6 remaining e2e tests that exercise the e2e-reachable spec-masked lines insrc/node/rpc/frontend.h:e2e_forwarding_smoke(tests/forwarding.py,bucket_c)governance_test(tests/governance.pyand its helper modules, excluding disaster-recovery networks,bucket_c)e2e_limits(tests/limits.py,bucket_c)js_batched_stress_test(tests/e2e_batched.py,bucket_c)tls_stress_test(tests/connections.pyandtests/fuzzing.py,bucket_c)schema_test(tests/schema.py,tests/e2e_tutorial.py, and the non-recovery networks intests/e2e_operations.py— which is thebucket_btest runningrun_max_uncommitted_tx_countandaccepted_endpoints)Also restores
args.observabilitywhen exitingconsistency_trace.recording()so subsequent untraced disaster-recovery networks do not inherit a closed collector endpoint, builds and exportsCCF_LEAN_CONSISTENCY_REPLAYERinVMSS Virtual B(bucket_b), merges these tests'.profrawfiles intoconsistency.json.gzincoverage.yml, and updates verification documentation.