Skip to content

Enable Lean consistency trace validation for remaining e2e tests - #8927

Merged
Amaury Chamayou (achamayou) merged 4 commits into
mainfrom
achamayou-turbo-waddle
Dec 3, 2026
Merged

Amaury Chamayou (achamayou) merged 4 commits into
mainfrom
achamayou-turbo-waddle

Conversation

@achamayou

Copy link
Copy Markdown
Member

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 in src/node/rpc/frontend.h:

  • e2e_forwarding_smoke (tests/forwarding.py, bucket_c)
  • governance_test (tests/governance.py and 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.py and tests/fuzzing.py, bucket_c)
  • schema_test (tests/schema.py, tests/e2e_tutorial.py, and the non-recovery networks in tests/e2e_operations.py — which is the bucket_b test running run_max_uncommitted_tx_count and accepted_endpoints)

Also restores args.observability when exiting consistency_trace.recording() so subsequent untraced disaster-recovery networks do not inherit a closed collector endpoint, builds and exports CCF_LEAN_CONSISTENCY_REPLAYER in VMSS Virtual B (bucket_b), merges these tests' .profraw files into consistency.json.gz in coverage.yml, and updates verification documentation.

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
@achamayou
Amaury Chamayou (achamayou) requested a review from a team as a code owner December 3, 2026 08:16
Copilot AI balanced review requested due to automatic review settings December 3, 2026 08:16

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

🟡 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

Comment thread .github/workflows/coverage.yml Resolved
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>
Copilot AI balanced review requested due to automatic review settings December 3, 2026 10:23

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

🟢 Approval recommended

No active review issues block the expansion of consistency-trace validation coverage.

No open issues 🎉

1 resolved since last review

Review effort: Balanced

Comment thread .github/workflows/ci.yml Resolved
Comment thread .github/workflows/coverage.yml Resolved
Comment thread doc/architecture/verification.rst Resolved
Comment thread tests/connections.py Resolved
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>
Copilot AI balanced review requested due to automatic review settings December 3, 2026 13:46

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

🟢 Approval recommended

No active review issues are reported for the expanded consistency tracing and replay changes.

No open issues 🎉

Review effort: Balanced

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Copilot-Session: 8b43b809b3a2495aa09bec1da1b087bc
Copilot AI balanced review requested due to automatic review settings December 3, 2026 15:51

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

🔵 Needs a closer look

Trace completeness and Lean replayer acceptance for the expanded failure, election, and recovery scenarios require runtime and CI evidence unavailable in this source-only review.

No open issues 🎉

Review effort: Balanced

@achamayou
Amaury Chamayou (achamayou) added this pull request to the merge queue Dec 3, 2026
Merged via the queue into main with commit 4dee55a Dec 3, 2026
34 checks passed
@achamayou
Amaury Chamayou (achamayou) deleted the achamayou-turbo-waddle branch December 3, 2026 16:36
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