Skip to content

ci(forge): fix failing workflow#387

Open
sambacha wants to merge 1 commit into
transmissions11:mainfrom
sambacha:patch-1
Open

ci(forge): fix failing workflow#387
sambacha wants to merge 1 commit into
transmissions11:mainfrom
sambacha:patch-1

Conversation

@sambacha

@sambacha sambacha commented Sep 3, 2023

Copy link
Copy Markdown
Contributor

The previous commit saw a CI failure due to not having --tolerance specified. I took the difference and rounded up (~2.64% difference in gas snapshot to the value of 3).

Also updated the foundry tool chain to the appropriate repo, and updated checkout to use v3.

Description

Describe the changes made in your pull request here.

Checklist

Ensure you completed all of the steps below before submitting your pull request:

  • Ran forge snapshot?
  • Ran npm run lint?
  • Ran forge test?

Pull requests with an incomplete checklist will be thrown out.

The previous commit saw a CI failure due to not having `--tolerance` specified. I took the difference and rounded up (~2.64% difference in gas snapshot to the value of 3). 

Also updated the foundry tool chain to the appropriate repo, and updated checkout to use v3.
@transmissions11

Copy link
Copy Markdown
Owner

thanks! but what happened to having a deterministic seed?

@sambacha

sambacha commented Sep 5, 2023

Copy link
Copy Markdown
Contributor Author

thanks! but what happened to having a deterministic seed?

You want to create a secondary check with tolerance if the original check fails then?

@transmissions11

Copy link
Copy Markdown
Owner

hm? forge used to use a deterministic random seed such that re-running would always give the same result and we wouldn't need tolerance at all

@sambacha

Copy link
Copy Markdown
Contributor Author

hm? forge used to use a deterministic random seed such that re-running would always give the same result and we wouldn't need tolerance at all

https://book.getfoundry.sh/reference/config/testing?highlight=seed#seed

  • Type: string (hexadecimal)
  • Default: none
  • Environment: FOUNDRY_FUZZ_SEED

Optional seed for the fuzzing RNG algorithm.

I think this changed with the revm switchover, not sure tbh.

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