Skip to content

fix(bench): regenerate anvil state dump and pin anvil version in CI#348

Merged
0xNeshi merged 4 commits into
mainfrom
fix-bench-dump
May 13, 2026
Merged

fix(bench): regenerate anvil state dump and pin anvil version in CI#348
0xNeshi merged 4 commits into
mainfrom
fix-bench-dump

Conversation

@0xNeshi
Copy link
Copy Markdown
Collaborator

@0xNeshi 0xNeshi commented May 4, 2026

See [failing CIs]:

The committed state_100000.json.gz dump was unloadable by every current anvil release (v1.5.1 errors on missing index in receipts, v1.7.0 and nightly error on SerializableTransactionType), breaking the PR and base benchmark workflows. Regenerate the dump with anvil v1.7.0 and pin the foundry-toolchain action to v1.7.0 in both workflows so the loader and the dump stay in lockstep — bumping anvil now requires regenerating the dump.

Also add alloy/provider-ws to the bench-utils feature so cargo run --bin generate_dump --features bench-utils can connect over websockets (dev-dependencies don't apply to cargo run --bin).

The committed state_100000.json.gz dump was unloadable by every current
anvil release (v1.5.1 errors on missing `index` in receipts, v1.7.0 and
nightly error on SerializableTransactionType), breaking the PR and base
benchmark workflows. Regenerate the dump with anvil v1.7.0 and pin the
foundry-toolchain action to v1.7.0 in both workflows so the loader and
the dump stay in lockstep — bumping anvil now requires regenerating the
dump.

Also add `alloy/provider-ws` to the `bench-utils` feature so
`cargo run --bin generate_dump --features bench-utils` can connect over
websockets (dev-dependencies don't apply to `cargo run --bin`).
@0xNeshi 0xNeshi self-assigned this May 4, 2026
@0xNeshi 0xNeshi requested review from Copilot and pepebndc May 4, 2026 16:03
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR restores benchmark CI reliability by regenerating the committed Anvil state dump using a compatible Anvil release and ensuring CI installs a matching Foundry/Anvil toolchain version. It also updates the bench-utils feature set so the dump generator binary can connect to Anvil over WebSockets when run via cargo run.

Changes:

  • Regenerate and update metadata for the state_100000 benchmark dump using a newer Anvil version.
  • Pin the Foundry/Anvil toolchain version used in benchmark workflows to v1.7.0 to match the dump format.
  • Add alloy/provider-ws to the bench-utils feature to support cargo run --bin generate_dump --features bench-utils.

Reviewed changes

Copilot reviewed 4 out of 5 changed files in this pull request and generated 3 comments.

File Description
Cargo.toml Extends bench-utils to enable Alloy WebSocket provider support for the dump generator.
benches/dumps/state_100000.metadata.json Updates dump metadata (block number, generation time, and Anvil version) to reflect the regenerated dump.
.github/workflows/pr_benchmarks.yml Pins installed Foundry/Anvil toolchain version used by PR benchmark CI runs.
.github/workflows/base_benchmarks.yml Pins installed Foundry/Anvil toolchain version used by base benchmark CI runs.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread Cargo.toml Outdated
Comment thread .github/workflows/pr_benchmarks.yml
Comment thread .github/workflows/base_benchmarks.yml
@github-actions
Copy link
Copy Markdown

github-actions Bot commented May 4, 2026

0xNeshi and others added 3 commits May 4, 2026 18:37
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
@0xNeshi 0xNeshi merged commit 8ee112c into main May 13, 2026
17 checks passed
@0xNeshi 0xNeshi deleted the fix-bench-dump branch May 13, 2026 14:50
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.

3 participants