Skip to content

ctb: Add echidna tests#3944

Closed
maurelian wants to merge 19 commits intodevelopfrom
tob2-sol-fuzzing
Closed

ctb: Add echidna tests#3944
maurelian wants to merge 19 commits intodevelopfrom
tob2-sol-fuzzing

Conversation

@maurelian
Copy link
Contributor

@maurelian maurelian commented Nov 9, 2022

Description

Adds an Echidna Fuzz testing harness written by Trail of Bits during our latest engagement.

Changes:

  1. Echidna added to the CI builder image. I've tested the build locally.
  2. Adds new solidity files to packages/contracts-bedrock/contracts/echidna. These files implement the test harness itself.
  3. Adds ./scripts/echidna_fuzz.sh which runs the fuzzer with a significantly reduced number of fuzzing runs from the default.

The script can be run with ECHIDNA_TESTLIMIT=99 ECHIDNA_SEQLEN=9 ./scripts/echidna-fuzz.sh.

This PR does not yet change the CCI config to actually run the fuzzing. That should come in a separate PR so that we can properly evaluate how to minimize the run time before imposing it on our dev process.

Metadata:
ENG-2956

@changeset-bot
Copy link

changeset-bot bot commented Nov 9, 2022

🦋 Changeset detected

Latest commit: 5299f0d

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

This PR includes changesets to release 6 packages
Name Type
@eth-optimism/ci-builder Patch
@eth-optimism/contracts-bedrock Patch
@eth-optimism/actor-tests Patch
@eth-optimism/sdk Patch
@eth-optimism/drippie-mon Patch
@eth-optimism/message-relayer Patch

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 github-actions bot added 2-reviewers A-pkg-contracts-bedrock Area: packages/contracts-bedrock A-ops Area: ops labels Nov 9, 2022
@maurelian maurelian force-pushed the tob2-sol-fuzzing branch 4 times, most recently from d347a21 to 84b00a8 Compare November 10, 2022 02:31
@maurelian maurelian force-pushed the tob2-sol-fuzzing branch 9 times, most recently from d240258 to aa18632 Compare November 15, 2022 12:53
@maurelian maurelian force-pushed the tob2-sol-fuzzing branch 3 times, most recently from 9e10aaf to 369995a Compare November 22, 2022 21:10
@maurelian maurelian marked this pull request as draft November 22, 2022 21:11
@maurelian maurelian force-pushed the tob2-sol-fuzzing branch 2 times, most recently from e920fb6 to ef6b785 Compare November 23, 2022 21:06
@maurelian maurelian force-pushed the tob2-sol-fuzzing branch 2 times, most recently from ca33a4c to 10e43be Compare November 24, 2022 17:47
@mergify mergify bot removed the conflict label Nov 28, 2022
@maurelian maurelian marked this pull request as ready for review November 28, 2022 16:52
@mergify
Copy link
Contributor

mergify bot commented Nov 29, 2022

Hey @maurelian! This PR has merge conflicts. Please fix them before continuing review.

@mergify mergify bot added the conflict label Nov 29, 2022
@maurelian
Copy link
Contributor Author

Closing for now, will re-open with smaller PRs

@maurelian
Copy link
Contributor Author

closing will break up into smaller prs

@maurelian maurelian closed this Nov 30, 2022
@mergify mergify bot removed the conflict label Nov 30, 2022
@maurelian maurelian deleted the tob2-sol-fuzzing branch December 6, 2022 20:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

A-ops Area: ops A-pkg-contracts-bedrock Area: packages/contracts-bedrock

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants