Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ignore fuzz tests in gas snapshot #10580

Merged
merged 3 commits into from
Sep 12, 2023
Merged

Ignore fuzz tests in gas snapshot #10580

merged 3 commits into from
Sep 12, 2023

Conversation

matYang
Copy link
Contributor

@matYang matYang commented Sep 11, 2023

make snapshot should skip fuzz tests named according to best practices: testFuzz_\w{1,}?

Although forge uses a static fuzz seed by default, flaky gas results per platform are still observed:
foundry-rs/foundry#5689

Until they fix the issue, including fuzz tests in snapshot results will result in flaky CI.
At this moment, this repo doesn't have fuzz tests. Tested the regex pattern in other repo, and in this repo by adding a test_MockTest() to verify it is included in snapshot, and testFuzz_MockTest() to verify it is not included in snapshot.

@matYang matYang requested a review from RensR September 11, 2023 16:22
@matYang matYang marked this pull request as ready for review September 11, 2023 16:22
@github-actions
Copy link
Contributor

I see that you haven't updated any CHANGELOG files. Would it make sense to do so?

@github-actions
Copy link
Contributor

I see that you haven't updated any README files. Would it make sense to do so?

@github-actions
Copy link
Contributor

@github-actions
Copy link
Contributor

@github-actions
Copy link
Contributor

@cl-sonarqube-production
Copy link

SonarQube Quality Gate

Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
No Duplication information No Duplication information

@RensR RensR added this pull request to the merge queue Sep 12, 2023
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks Sep 12, 2023
@RensR RensR added this pull request to the merge queue Sep 12, 2023
Merged via the queue into develop with commit 3ac616a Sep 12, 2023
122 checks passed
@RensR RensR deleted the ignore-fuzz-in-gas-snapshot branch September 12, 2023 12:35
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