-
Notifications
You must be signed in to change notification settings - Fork 144
fix(static_tests): adjusted gasLimit to only allow gasLimit of up to 30mil as enforced in eip-7825 #1587
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
base: main
Are you sure you want to change the base?
Conversation
does test filling work without errors? |
Shouldn't this just mark the tests which have a gas limit higher than 30M invalid/not available from the fork which includes EIP-7825? Merging this would also require explicit checks that the test itself does not depend on having more than 30M gas (one use case for this "huge" gas limit would be benchmarks/stress tests, especially for precompiles) |
I think most of the test have high gas limit just in case and copied from template. if the test filling works we can cap it. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Here some fixes
felix314159#1
Need to fix all the failures. Basically some tests require 1 trillion gas because they test the memory alloc limits or call depths. or simply have too many combinations.
- fix all the issues
- stShift/ shift combinations needs to be reworked. it consumes more 30M gas for all the combinations
- lets merge test scenarios it converts all stBadOpcode/opcDiffPlaces (PR feat(test): test opcode programs in different scenarios #808)
@winsvega @felix314159 #808 is merged, please rebase and |
69d0985
to
09630a1
Compare
After rebase I filled again with
|
I optimised 1 more test: Review:
here I open a tracker issue: #1594 |
optimise createLargeResult test
As these are yml files, I'm wondering if we could set the gas limit as an env var that is set during fill time. That way it can be dynamic and we don't need to change it again if the gas limit changes etc. Something like: gasLimit: ${GAS_LIMIT} |
🗒️ Description
For now this is only for static_tests we have. Currently filling and executing to see if it all still works. Please thoroughly review this PR. These changes were done via a Python script that has no notion of what any of this means, next thing we should do is within our framework at fill check whether gasLimit is in allowed range
🔗 Related Issues
✅ Checklist
mkdocs serve
locally and verified the auto-generated docs for new tests in the Test Case Reference are correctly formatted.