Skip to content

edr 0.26.0 (Hardhat 3) - #8879

Merged
kanej merged 6 commits into
mainfrom
build/edr-0.26.0
Nov 26, 2026
Merged

kanej merged 6 commits into
mainfrom
build/edr-0.26.0

Conversation

@kanej

@kanej kanej commented Nov 23, 2026 •

Copy link
Copy Markdown
Member

Bump EDR to 0.26.0.

This includes two changes in Hardhat:

  1. The failurePersistFile config option in fuzz tests has been removed, and will now show an error if a user attempts to include it.
  2. The fuzz tests of Solidity test now run in parallel. You can control the number of workers with the new workers config option.

Docs

@kanej kanej changed the title Build/edr 0.26.0 edr 0.26.0 (Hardhat 3) Nov 23, 2026
@kanej kanej added no docs needed This PR doesn't require links to documentation no peer bump needed labels Nov 23, 2026

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

Thanks for implementing the bump, @kanej !

One question on failurePersistFile being removed from EDR: is the plan for Hardhat to ignore the field but keep allowing it in the config?

EDR v0.26.0 removed `failurePersistFile`: fuzz failures are now
persisted as one JSON counterexample per test under `failures` in
`failurePersistDir`, so the option has nothing left to name. We drop it
from the user and resolved config types.

The fuzz config schema isn't strict, so a config that still set it
would have validated and been silently ignored. Setting it is now a
config error that points to `failurePersistDir`, in the flat config and
in every test profile.
EDR v0.26.0 runs each fuzz test on parallel workers and takes a
`workers` option, which already reached it untyped through the spread
in `resolveFuzzConfig`. We add it to the schema and to the user and
resolved fuzz config types. It must be a positive integer, and when it
isn't set nothing is passed, so EDR's default (the available threads)
applies.
@kanej kanej removed the no docs needed This PR doesn't require links to documentation label Nov 25, 2026
@NomicFoundation NomicFoundation deleted a comment from github-actions Bot Nov 25, 2026
@NomicFoundation NomicFoundation deleted a comment from changeset-bot Bot Nov 25, 2026
@changeset-bot

changeset-bot Bot commented Nov 25, 2026

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: fe387d7

The changes in this PR will be included in the next version bump.

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@github-actions

Copy link
Copy Markdown
Contributor

hardhat

Total size of the bundle: 42M
Total number of dependencies (including transitive): 38

List of dependencies (sorted by size)
33M	total
7.3M	@sentry/core
5.2M	zod
3.8M	micro-eth-signer
2.2M	undici
2.2M	@noble/curves
1.8M	@noble/hashes
1.5M	@nomicfoundation/hardhat-utils
1.1M	@noble/ciphers
884K	@nomicfoundation/hardhat-vendored
792K	@streamparser/json
700K	@nomicfoundation/hardhat-errors
536K	@scure/bip39
508K	ethereum-cryptography
504K	tsx
468K	micro-packed
408K	json-stream-stringify
320K	enquirer
320K	@nomicfoundation/hardhat-zod-utils
312K	semver
216K	adm-zip
208K	@scure/base
204K	ws
188K	@streamparser/json-node
168K	fast-equals
168K	esbuild
156K	@nomicfoundation/edr
108K	@scure/bip32
100K	chokidar
80K	p-map
72K	@nomicfoundation/solidity-analyzer
56K	rfdc
48K	ansi-colors
44K	resolve.exports
44K	readdirp
24K	strip-ansi
24K	is-safe-filename
24K	env-paths
24K	ansi-regex

Copilot AI 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.

🟡 Changes recommended

The worker-count validator accepts values above EDR’s u32 limit and forwards them unchanged, so it needs a 0xffff_ffff cap to reject them with INVALID_CONFIG before reaching the native API.

1 open issue
1 file not reviewed
  • pnpm-lock.yaml: Generated file
What changed in this PR

Upgrades Hardhat 3 to EDR 0.26.0 and adapts Solidity fuzz-test configuration to its parallel execution and failure-persistence changes.

Changes:

  • Adds optional fuzz.workers configuration and rejects the removed failurePersistFile option.
  • Adds validation and resolution tests, including profile-specific configuration.
  • Records upstream fuzzing, coverage, and fork-related changes in release notes.
File Description
pnpm-lock.yaml Locks EDR and platform binaries to 0.26.0.
packages/​hardhat/​test/​internal/​builtin-plugins/​solidity-test/​config-validation.ts Tests worker validation and removed-option errors.
packages/​hardhat/​test/​internal/​builtin-plugins/​solidity-test/​config-resolution.ts Tests worker forwarding, defaults, and profiles.
packages/​hardhat/​src/​internal/​builtin-plugins/​solidity-test/​type-extensions.ts Updates public fuzz configuration types.
packages/​hardhat/​src/​internal/​builtin-plugins/​solidity-test/​config.ts Validates workers and rejects the removed persistence option.
packages/​hardhat/​package.json Pins EDR to 0.26.0.
.changeset/​edr-solidity-0.8.38-coverage.md Notes coverage support for newer Solidity versions.
.changeset/​edr-fuzz-vm-random-seed.md Notes fixed random cheatcode sequences.
.changeset/​edr-fuzz-parallel-workers.md Announces parallel fuzz workers.
.changeset/​edr-fuzz-max-test-rejects-zero.md Documents changed zero reject-limit behavior.
.changeset/​edr-fuzz-failure-persistence.md Describes per-test counterexample persistence.
.changeset/​edr-fuzz-failure-persist-file-removed.md Documents removal of failurePersistFile.
.changeset/​edr-fuzz-failing-run-logs.md Notes automatic failing-run log reporting.
.changeset/​edr-fuzz-assume-rejects-not-runs.md Notes corrected counting of rejected fuzz inputs.
.changeset/​edr-fork-chain-id-fee-params.md Notes corrected fee parameters on forks.
.changeset/​edr-estimate-gas-fork-hardfork.md Notes corrected historical fork gas estimation.
.changeset/​edr-0.26.0.md Records the EDR upgrade.

Review effort: Balanced

@kanej
kanej added this pull request to the merge queue Nov 26, 2026
Merged via the queue into main with commit 8a43842 Nov 26, 2026
479 of 480 checks passed
@kanej
kanej deleted the build/edr-0.26.0 branch November 26, 2026 10:32
@github-actions github-actions Bot mentioned this pull request Nov 26, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants