Skip to content

Add all networking reference tests. Some are ignored because test fixtures are broken - #10677

Merged
zilm13 merged 2 commits into
Consensys-Incorporated:masterfrom
zilm13:devnet-2-networking-tests
May 7, 2026
Merged

zilm13 merged 2 commits into
Consensys-Incorporated:masterfrom
zilm13:devnet-2-networking-tests

Conversation

@zilm13

@zilm13 zilm13 commented May 6, 2026

Copy link
Copy Markdown
Contributor

PR Description

Added executors for:

  • "networking/gossip_beacon_aggregate_and_proof", IGNORED, see below
  • "networking/gossip_sync_committee_contribution_and_proof"
  • "networking/gossip_sync_committee_message"
  • "networking/gossip_bls_to_execution_change", IGNORED, see below

Ignored tests are relied on ethereum/consensus-specs#5201, they will work after it's resolved, merged and released (alpha.8, probably)

Also SyncCommitteeMessageValidator was fixed, check current spec for confirmation.

Fixed Issue(s)

Documentation

  • I thought about documentation and added the doc-change-required label to this PR if updates are required.

Changelog

  • I thought about adding a changelog entry, and added one if I deemed necessary.

Note

Medium Risk
Adds multiple new reference-test executors and changes SyncCommitteeMessageValidator duplicate-detection semantics, which can affect gossip acceptance/ignore behavior and test coverage across forks.

Overview
Adds new networking reference-test executors for gossip_sync_committee_message, gossip_sync_committee_contribution_and_proof, and gossip_bls_to_execution_change, plus a dedicated executor for gossip_beacon_aggregate_and_proof (still wired as ignored due to broken fixtures). Updates GossipTests to enable the sync-committee executors while leaving other gossip types ignored.

Introduces TestDataUtils.createAnchorFromState and switches gossip executors to use it, avoiding AnchorPoint genesis body-root checks that break for some forks (e.g. Gloas). Adjusts fork-choice reference tests to skip only the known-bad on_execution_payload_envelope__valid case and relaxes Gloas test filtering in ReferenceTestFinder.

Updates SyncCommitteeMessageValidator to treat duplicates as unique per (slot, validator_index, subnet) (removing the prior “replace if matches local head” behavior based on beacon_block_root). Also adds infrastructure:time test fixtures to the reference-test Gradle dependencies.

Reviewed by Cursor Bugbot for commit 569b98a. Bugbot is set up for automated code reviews on this repo. Configure here.

// fixed; the block in the fixture is not correctly built over the payload.
.put(
"fork_choice/on_execution_payload_envelope",
new ForkChoiceTestExecutor("on_execution_payload_envelope__valid"))

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.

I like this, skip, didn't know we can do that, can we change comment to TODO-GLOAS just to be consistent

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

updated in cb402b8
networking tests are all milestones broken so it's not related to them but i grouped all ignored, because it all applies to the same issue

@zilm13
zilm13 changed the base branch from glamsterdam-devnet-2 to master May 7, 2026 17:37
@zilm13
zilm13 force-pushed the devnet-2-networking-tests branch from cb402b8 to f6dd69a Compare May 7, 2026 17:46

@cursor cursor Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Cursor Bugbot has reviewed your changes and found 1 potential issue.

Fix All in Cursor

Reviewed by Cursor Bugbot for commit f6dd69a. Configure here.

// block being signed (beacon_block_root) matches the local head as selected by fork
// choice (this requires maintaining a cache of size `SYNC_COMMITTEE_SIZE //
// SYNC_COMMITTEE_SUBNET_COUNT` for each subnet that can be flushed after each slot).
// [IGNORE] There has been no other valid sync committee message for the declared slot for

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.

Specs changed for this check specifically?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

@StefanBratanov StefanBratanov 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.

LGTM with one question

@zilm13
zilm13 merged commit 6d57aba into Consensys-Incorporated:master May 7, 2026
66 checks passed
@zilm13
zilm13 deleted the devnet-2-networking-tests branch May 7, 2026 18:53
@github-actions github-actions Bot locked and limited conversation to collaborators May 7, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants