forked from ethereumproject/go-ethereum
-
Notifications
You must be signed in to change notification settings - Fork 1
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
ECIP1045 + ethereum/tests #21
Open
whilei
wants to merge
167
commits into
master
Choose a base branch
from
ecip1045-with-tests
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Owner
whilei
commented
Sep 10, 2018
- [] This is a "hybrid" branch, merging ECIP1045 feature branch + ethereum/tests inclusion branch. TODO: reference those PRs/+branches.
Instead of 'tests/files/'
This will be utilized by incoming state test marshaling revisions
solution: workaround for skipping tests by name without regexp
solution: check the proper error Some but not all blockchain tests are failing now, too, in addition to state tests. These are either because of parsing problems (like 'invalid 'x' cases, probably), or because of configuration mismatched (perhaps like the tests failing because of Difficulty and gas used...).
problem: want to skip all tests for a fork by name
solution: trim 0x prefix
solution: create dedicated ChainConfigs for use by these tests - compiles core/config/assets
This is because there is a valid block header that is assumed to exist but doesn't. This commit includes a debugging attempt to check 0x- prefix, which does not resolve the problem.
solution: add prefix and debugging lines
solution: use regex to match tests by name
solution: remove declaration :floppy_disk:
solution: refactor
solution: since STATICCALL functions equivalently to CALL, use congruent behavior to CALL during gas decision log switch statement
solution: ECIP1045Block->ECIP1045BBlock
solution: add deferred chain.Stop call
This is a problem because the function will only respond to anything, eg. quitting, at 5 second intervals. solution: refactor to use alternate ticker range syntax, allowing the loop to exit immediately when bc.quit closes
solution: return any error if non nil
…loop" This reverts commit b2c2064.
Causing test timeouts. These tests are run natively, and don't need to be run thru BlockchainTests. This also refactors the test-skip matching to a not-very-pretty solution. This also _enables_ Byzantium _and_ Constantinople tests by removing them from the skip list.
solution: remove it
solution: uncomment tests
So it's less distracting from finding the actual tests.
solution: use new pointer for contract gas
solution: implement missing exported fn for ethtest testrunner
whilei
commented
Sep 17, 2018
if !ok { | ||
return fmt.Errorf("key=%s fork=%s not supported", key, st.Fork) | ||
} | ||
_, err := test.Run(test, st, rs) |
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.
This will also return state
, so if desired you can add some extra debug-y log.Println
s or even a return value to the function for handling in the cmd/ethtest package.
solution: trimspace and use only existing clean skip string
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.