Skip to content

Reintroduce networking spec tests#719

Open
Tumas wants to merge 1 commit into
glamsterdam-devnet-6from
feature/reintroduce-networking-tests
Open

Reintroduce networking spec tests#719
Tumas wants to merge 1 commit into
glamsterdam-devnet-6from
feature/reintroduce-networking-tests

Conversation

@Tumas

@Tumas Tumas commented Jun 1, 2026

Copy link
Copy Markdown
Member
  • Re-enable gossip spec tests
  • Add AnchorBlock and AnchorState enums for test-specific behaviour
  • Fix combined Attestation SSZ deserialization

@SifraiTeam SifraiTeam force-pushed the feature/reintroduce-networking-tests branch from 4116845 to 91ba5ab Compare June 5, 2026 08:30
@Tumas Tumas changed the base branch from glamsterdam-devnet-4 to glamsterdam-devnet-5 June 5, 2026 08:30
@Tumas Tumas marked this pull request as draft June 5, 2026 08:31
@Tumas Tumas force-pushed the feature/reintroduce-networking-tests branch 2 times, most recently from 8b06b00 to 91a75dd Compare June 5, 2026 12:07
@Tumas Tumas marked this pull request as ready for review June 5, 2026 12:08
@Tumas Tumas force-pushed the feature/reintroduce-networking-tests branch from 91a75dd to 50329e2 Compare June 5, 2026 14:04
Own,
Persisted,
Api(Option<Sender<Result<ValidationOutcome>>>),
Test(GossipId, BlsSetting, StateRootPolicy),

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.

Is there a reason why cannot this be under #[cfg(test)]? Then there would be no need to load BlsSetting to prod code and move spec_test_utils from dev-dependencies to dependencies

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Networking tests need a context initialized with pools, the controller, and validator services to mirror the real application, so they live in the validator crate. Running them compiles validator with cfg(test), but workspace dependencies like fork_choice_store (where this message is defined) are compiled without it, so #[cfg(test)] items here are inactive during those tests — see rust-lang/rust#59168. This could likely be worked around with a feature flag, but unclear if it's worth it.

@SifraiTeam SifraiTeam force-pushed the feature/reintroduce-networking-tests branch from 50329e2 to 798075f Compare June 9, 2026 14:09
- Re-enable gossip spec tests
- Add `AnchorBlock` and `AnchorState` enums for test-specific behaviour
- Fix combined Attestation SSZ deserialization
@Tumas Tumas force-pushed the feature/reintroduce-networking-tests branch from 798075f to 4ee2268 Compare June 19, 2026 13:06
@Tumas Tumas changed the base branch from glamsterdam-devnet-5 to glamsterdam-devnet-6 June 19, 2026 13:06
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