Skip to content

chore(deps): align Anchor with Lighthouse v8.4.0-rc.1 and libp2p 0.58 - #1368

Merged
shane-moore merged 3 commits into
sigp:unstablefrom
shane-moore:fix/libp2p-derive-rust-1.100
Dec 2, 2026
Merged

shane-moore merged 3 commits into
sigp:unstablefrom
shane-moore:fix/libp2p-derive-rust-1.100

Conversation

@shane-moore

@shane-moore shane-moore commented Dec 2, 2026 •

Copy link
Copy Markdown
Member

Problem, Evidence, and Context

Anchor is pinned to Lighthouse v8.3.2 and a libp2p 0.57 fork. On clean unstable at 573088fb, Rust 1.100.1 rejects the NetworkBehaviour derive under CI’s warning flags. The macro emits calls that forward or wrap uninhabited handler events. This blocks #1364 before its registration tests can run. Original failure

Change Overview

  • Move the Lighthouse crates to the tagged Hoodi release candidate, v8.4.0-rc.1 (a7de6b0a), and align the root SSZ patch with it. Lighthouse release
  • Move Anchor’s network stack, peer store and swarm test helper to the RC’s upstream libp2p 0.58 revision (9eb8691c). Its derive 0.37.0 scopes the lint allowance to generated code. Lighthouse’s libp2p upgrade
  • Align the SQLite driver and connection pool with Lighthouse slashing protection. The compatible refinery migration library requires Rust 1.92. Source builders on 1.91 must update. The Docker build already uses Rust 1.93.1.
  • Update the lockfile to patched Hickory 0.26.3, Snow 0.10.2, curve25519-dalek 5.1.0, OpenSSL 0.10.80 and url 2.5.9. Snow’s update removes the old curve25519-dalek 4.x dependency.

Risks, Trade-offs, and Mitigations

The RC schedules Gloas at epoch 143616 for built-in Hoodi. This upgrade brings in that schedule and changes the code used for peer handling and database access. Anchor’s configured gossip control-message budget remains 128 KiB. Upstream also caps each inbound control-message type at 500 entries per RPC. Existing network, database migration, and Gloas Go fixture tests cover the affected paths. Hoodi config

Validation

  • On clean unstable (573088fb), RUSTFLAGS='-D warnings -C debuginfo=0' cargo +1.100.1 check --locked -p network exited 101 at the derive. The identical command passed on 7a3c9700.

  • On Rust 1.100.1, make lint passed with RUSTFLAGS='-D warnings -C debuginfo=0' and CARGO_INCREMENTAL=1. Lockfile freshness, vendoring and make audit-CI also passed. The same audit policy reported 36 findings on the baseline. Ubuntu lint and audit

  • Ubuntu passed all 1,028 tests in each of make nextest-debug, make nextest-release and make coverage. Debug and release used the same warning flags as lint. Coverage used RUSTFLAGS='-D warnings' and uploaded the LCOV report. The tests include the built-in network epochs, database migrations, networking, and the Gloas Go fixture. Debug · Release · Coverage

  • RUSTFLAGS='-D warnings -C debuginfo=0' cargo +1.92.0 check --locked --workspace passed locally. The Rust 1.92.0 workspace check also passed on Ubuntu. MSRV

  • The hosted local testnet passed its Assertoor checks on the final head. Local testnet

Rollback

Revert the dependency and MSRV update together. A rollback across Hoodi activation needs review against the active network fork schedule.

@mergify

mergify Bot commented Dec 2, 2026 •

Copy link
Copy Markdown

Queue requested — the merge queue status continues in this comment ↓.

@codecov-commenter

codecov-commenter commented Dec 2, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 80.52%. Comparing base (573088f) to head (7a3c970).

Additional details and impacted files
@@             Coverage Diff              @@
##           unstable    #1368      +/-   ##
============================================
- Coverage     81.21%   80.52%   -0.70%     
============================================
  Files           180      180              
  Lines         41834    42373     +539     
============================================
+ Hits          33976    34119     +143     
- Misses         7858     8254     +396     
Flag Coverage Δ
rust 80.52% <100.00%> (-0.70%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@shane-moore
shane-moore force-pushed the fix/libp2p-derive-rust-1.100 branch from 818e49d to b3a187a Compare December 2, 2026 21:51
@shane-moore shane-moore changed the title fix(network): use the libp2p derive fix for Rust 1.100 chore(deps): align Anchor with Lighthouse v8.4.0-rc.1 and libp2p 0.58 Dec 2, 2026
@mergify

mergify Bot commented Dec 2, 2026

Copy link
Copy Markdown

⏳ Waiting for queue conditions

Queue rule default · 2 of 10 left

  • #approved-reviews-by >= 1
  • github-review-approved · required by GitHub repository ruleset rule unstable and release-v*
Queue rule default: 8 met
  • check-success=license/cla
  • check-success=target-branch-check
  • label!=do-not-merge
  • any of · required by GitHub repository ruleset rule unstable and release-v*:
    • check-success = license/cla
    • check-neutral = license/cla
    • check-skipped = license/cla
  • -closed
  • -conflict
  • -draft
  • any of:
    • -mergify-configuration-changed
    • check-success = @mergify/Configuration changed
    • check-success = @mergify/Configuration has been deleted

Times in UTC · dashboard · how the merge queue works

@shane-moore
shane-moore merged commit 270b39d into sigp:unstable Dec 2, 2026
25 of 26 checks passed
@mergify

mergify Bot commented Dec 2, 2026

Copy link
Copy Markdown

queue

☑️ This pull request is already merged

Details

Its changes are already in its base branch. To merge other changes, open a new pull request with them.

@shane-moore

Copy link
Copy Markdown
Member Author

Verified on Anchor d4bb09e8, Go #3142 74397840 and Lighthouse v8.4.0-rc.1. The built-in config test resolved Hoodi Gloas at 143616. In the local epoch-2 crossing, both beacon nodes finalized the same checkpoint and all ten managed aggregates published in round 1.

With one Anchor operator stopped, the other three published aggregates at slots 134 and 135. The same operator rejoined with its original identity and contributed to the slot-139 commit. Its retry of an already-submitted proposer preference timed out. The standalone config-crate test also needs the network crate’s ENR features on this revision. Combined-commit CI

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