Repository navigation
edr 0.26.0 (Hardhat 3) - #8879
Conversation
popescuoctavian
left a comment
There was a problem hiding this comment.
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.
c0a003c to
f3aa9ab
Compare
🦋 Changeset detectedLatest 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 |
hardhatTotal size of the bundle: List of dependencies (sorted by size) |
There was a problem hiding this comment.
🟡 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.workersconfiguration and rejects the removedfailurePersistFileoption. - 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

Bump EDR to 0.26.0.
This includes two changes in Hardhat:
failurePersistFileconfig option in fuzz tests has been removed, and will now show an error if a user attempts to include it.workersconfig option.Docs