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

chore(protocol): fix issues in test:coverage #18582

Merged
merged 7 commits into from
Dec 16, 2024

Conversation

xiaodino
Copy link
Contributor

No description provided.

Copy link

openzeppelin-code bot commented Dec 14, 2024

chore(protocol): fix issues in test:coverage

Generated at commit: 49e61eb319f68285c82547b9d4b8c4482dce29f5

🚨 Report Summary

Severity Level Results
Contracts Critical
High
Medium
Low
Note
Total
3
3
0
9
40
55
Dependencies Critical
High
Medium
Low
Note
Total
0
0
0
0
0
0

For more details view the full report in OpenZeppelin Code Inspector

@@ -67,6 +64,7 @@ test = "test/layer2"
script = "script/layer2"
out = "out/layer2"
evm_version = "shanghai"
fuzz.runs = 200
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

should we also add this config to other prifiles?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Updated to

[profile.default]
fuzz_runs = 200

@@ -98,23 +98,23 @@ contract TestLibEIP1559 is Layer2Test {
assertEq(baselineBasefee, basefee);
}

/// forge-config: layer2.fuzz.runs = 1000
/// forge-config: layer2.fuzz.show-logs = true
/// forge-config: layer_2.fuzz.runs = 1000
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why change to "layer_2"?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

forge-config will convert layer2 to layer_2 in *.t.sol files when fuzz.runs is used.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Updated to forge-config: default.fuzz_runs = 2000

@@ -98,23 +98,23 @@ contract TestLibEIP1559 is Layer2Test {
assertEq(baselineBasefee, basefee);
}

/// forge-config: layer2.fuzz.runs = 1000
/// forge-config: layer2.fuzz.show-logs = true
/// forge-config: default.fuzz_runs = 1000
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think we should also change layer_2.fuzz_runs to default.fuzz_runs, no?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good point. Rename both layer2.fuzz.runs and layer2.fuzz.show-logs to default.fuzz_runs and default.fuzz_runs_show_logs

@dantaik dantaik self-requested a review December 16, 2024 12:34
@xiaodino xiaodino merged commit 29682b7 into pacaya_fork Dec 16, 2024
@xiaodino xiaodino deleted the xiaodino/run-test-coverage branch December 16, 2024 15:03
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