Skip to content

Run the X_COMMITTEE_COUNTS rotation test in its own process - #1010

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

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

Conversation

@tcoratger

Copy link
Copy Markdown

Description / Motivation

process_stark_checks_the_attesters_signatures failed about half the time on an unchanged tree: its committee had one member, not two.
The cause is rotating_committee_geometry_rotates_every_eight_epochs_and_validates_genesis.
It installs X_COMMITTEE_COUNTS = [2, 1] for the whole process.
While it runs, every PQ committee that other tests of the binary compute on other threads uses two committees per slot at epoch 0.
With 64 validators on mainnet, each committee then has one member.
the_aggregation_committee_window_holds_a_sample_of_each_committee and a_pq_aggregate_needs_an_aggregator_its_signature_and_its_proof failed the same way, less often.

What Changed

  • The rotation test runs alone in a child process of the test binary, 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

  • Before: the pq:: tests of the lib binary failed in 4 of 10 runs, and in 0 of 20 with the rotation test skipped.
  • After: the whole lib binary passed 50 runs in a row, each with process_stark_checks_the_attesters_signatures and the rotation test passing.
  • An assertion broken on purpose in the rotation test makes the parent fail.
  • cargo test --profile release-fast -p ethlambda-state-transition --lib: 798 passed, 18 ignored.
  • cargo fmt --all --check and cargo clippy --profile release-fast -p ethlambda-state-transition --all-targets -- -D warnings: clean.

🤖 Generated with Claude Code

The test installs the PQ committee configuration for the whole process.
The other PQ tests of the binary read it from other threads while it runs, so their committees change under them.
process_stark_checks_the_attesters_signatures then found a one-member committee and failed about half the time.
Two other PQ committee tests failed the same way, less often.

The test now runs alone in a child process of the test binary.

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