-
Notifications
You must be signed in to change notification settings - Fork 9
State tests #112
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
Merged
Merged
State tests #112
Changes from all commits
Commits
Show all changes
31 commits
Select commit
Hold shift + click to select a range
fac3d28
Merge branch 'feature/testrunners' into feature/state-tests
zilm13 67d21bc
Merge branch 'develop' into feature/state-tests
zilm13 5a15a23
Merge branch 'spec/v0.5.0' into feature/state-tests
zilm13 b06b609
test: State tests implementation start. Tests are read but not executed.
zilm13 56fc554
test: bump tests repository to 0.5.1 specd
zilm13 56d3562
Merge branch 'spec/v0.5.1' into feature/state-tests
zilm13 2cd9acc
test: in the middle of state tests: not all validations performed, re…
zilm13 1c93c9a
test: state comparators for all fields added
zilm13 e179417
Merge branch 'spec/v0.5.1' into feature/state-tests
zilm13 9edcca3
test: finish merging spec v0.5.1
zilm13 3e29113
types: fix Eth fractional toString output
zilm13 905f6a0
test: improve exception logging in state test
zilm13 d1dad23
test: fix attestations comparison in state tests
zilm13 794458f
test: quick fix plusSat, do it correct after fix in spec/v0.5.1
zilm13 0e34966
core: add simple toString to ValidatorRecord
zilm13 e595606
test: state test runner cleanup
zilm13 97cb608
Merge branch 'spec/v0.5.1' into feature/state-tests
zilm13 6c31212
Merge branch 'spec/v0.5.1' into feature/state-tests
zilm13 51b5e22
test: use EmptySlotTransition in state tests runner
zilm13 93285eb
Merge branch 'develop' into feature/state-tests
mkalinin c3f0936
Build a spec inside of StateRunner
mkalinin b81d118
Initialize state tests with initial transition data
mkalinin f5c9759
Support exists and attester slashings in state tests
mkalinin 019fa4f
Improve test suite output
mkalinin 2ab7882
Count hit ratio in LRUCache
mkalinin e7c8bae
Set INFO log level for TCK tests
mkalinin 875a175
Exclude state tests failed because of hashing
mkalinin edabab8
Add Exclusion class to tests for the sake of UX
mkalinin 8c0d317
Indicate in the output if test is excluded
mkalinin 4da1623
Rename Exclusion class to Ignored in test utils
mkalinin 5b35e5b
Reword TODO in StateTests
mkalinin File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -13,3 +13,4 @@ work | |
|
|
||
| # logs | ||
| /logs | ||
| test/logs | ||
This file contains hidden or 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
This file contains hidden or 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
27 changes: 27 additions & 0 deletions
27
consensus/src/main/java/org/ethereum/beacon/consensus/StateTransitions.java
This file contains hidden or 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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,27 @@ | ||
| package org.ethereum.beacon.consensus; | ||
|
|
||
| import org.ethereum.beacon.consensus.transition.EmptySlotTransition; | ||
| import org.ethereum.beacon.consensus.transition.ExtendedSlotTransition; | ||
| import org.ethereum.beacon.consensus.transition.PerBlockTransition; | ||
| import org.ethereum.beacon.consensus.transition.PerEpochTransition; | ||
| import org.ethereum.beacon.consensus.transition.PerSlotTransition; | ||
| import org.ethereum.beacon.consensus.transition.StateCachingTransition; | ||
|
|
||
| /** Instantiates high level state transitions. */ | ||
| public abstract class StateTransitions { | ||
| public StateTransitions() {} | ||
|
|
||
| public static EmptySlotTransition preBlockTransition(BeaconChainSpec spec) { | ||
| PerSlotTransition perSlotTransition = new PerSlotTransition(spec); | ||
| PerEpochTransition perEpochTransition = new PerEpochTransition(spec); | ||
| StateCachingTransition stateCachingTransition = new StateCachingTransition(spec); | ||
| ExtendedSlotTransition extendedSlotTransition = | ||
| new ExtendedSlotTransition( | ||
| stateCachingTransition, perEpochTransition, perSlotTransition, spec); | ||
| return new EmptySlotTransition(extendedSlotTransition); | ||
| } | ||
|
|
||
| public static PerBlockTransition blockTransition(BeaconChainSpec spec) { | ||
| return new PerBlockTransition(spec); | ||
| } | ||
| } |
This file contains hidden or 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
This file contains hidden or 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
This file contains hidden or 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
This file contains hidden or 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
This file contains hidden or 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
This file contains hidden or 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
This file contains hidden or 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
This file contains hidden or 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
Oops, something went wrong.
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.
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.
Let's not forget this thing
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.
I'd better create an issue and point this out in the issue.