Skip to content

Run the X_COMMITTEE_COUNTS scoring test in its own process - #1012

Open
tcoratger wants to merge 1 commit into
lambdaclass:pq-devnet-2from
tcoratger:fix/pq-p2p-test-isolation
Open

tcoratger wants to merge 1 commit into
lambdaclass:pq-devnet-2from
tcoratger:fix/pq-p2p-test-isolation

Conversation

@tcoratger

Copy link
Copy Markdown

Description / Motivation

pq_expected_aggregators_rotate_with_x_committee_counts installs X_COMMITTEE_COUNTS = [16, 8, 4, 2, 1] for the whole process and never restores it.
Every PQ committee count that another test of the ethlambda-p2p lib binary computes, on another thread or later, then reads that list.
No test fails from it today, but the next one that reads a PQ committee count can fail on some runs only.
#1010 found the same pattern in ethlambda-state-transition, where it did fail.

What Changed

  • The test runs alone in a child process of the test binary, as Run the X_COMMITTEE_COUNTS rotation test in its own process #1010 does, so the configuration it installs never reaches another test.
  • The parent fails unless the child exits cleanly and reports one test passed, so a failure, or a filter that matches nothing, is not taken for a pass.
  • No assertion changes.

Tests Added / Run

  • The whole lib binary passed 30 runs in a row, each with the rotation test passing.
  • An assertion broken on purpose in the rotation test makes the parent fail.
  • cargo test --locked --profile release-fast -p ethlambda-p2p: 536 passed, 1 ignored.
  • cargo fmt --all -- --check and cargo clippy --locked --profile release-fast -p ethlambda-p2p --all-targets -- -D warnings: clean.

🤖 Generated with Claude Code

`pq_expected_aggregators_rotate_with_x_committee_counts` installs `X_COMMITTEE_COUNTS = [16, 8, 4, 2, 1]` for the whole process and never restores it.
Every PQ committee count that another test of the binary computes, on another thread or later, then reads that list.
The test now runs alone in a child process of the test binary, as the state-transition rotation test does.
The parent fails unless the child exits cleanly and reports one test passed.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

This branch has not been deployed

No deployments
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.

1 participant