Commit Graph

73 Commits

Author SHA1 Message Date
Hsiao-Wei Wang
63c9e5ea56 Minor refactoring and add comments 2021-11-16 00:32:29 +08:00
Hsiao-Wei Wang
49d96f92ef Add a sample altair-to-merge-only transition 2021-11-12 17:06:10 +08:00
Hsiao-Wei Wang
0641d1c184 ALL_FORKS sounds like a list of fork names. Rename it to ALL_FORK_UPGRADES 2021-11-02 19:01:32 +08:00
Hsiao-Wei Wang
fa4dc0c168 Apply suggestions from code review
Co-authored-by: Alex Stokes <r.alex.stokes@gmail.com>
2021-11-02 18:38:24 +08:00
Hsiao-Wei Wang
0b0fe15c75 Make altair transition tests support merge forks 2021-11-02 14:47:24 +08:00
Hsiao-Wei Wang
afb62eebf0 Add pytest CLI option --fork so that we can just run with specific phase (fork) 2021-10-18 17:59:55 +08:00
Etan Kissling
939e6c7e8e run tests against future forks by default
Some tests are currently restricted to a single phase using @with_phases
even though they could likely run unchanged in later phases. This patch
changes the default for such tests to also run in later phases. If the
beacon chain changes enough in later phases to break these tests, this
highlights that the tests need to be adjusted or extended accordingly.
2021-09-30 10:28:02 +02:00
Danny Ryan
43e79a7ee0 add process_registry_updates tests for scaled churn limit 2021-09-07 20:34:28 -06:00
Alex Stokes
f7c0dc36be skip running heavy randomized tests in CI 2021-08-24 15:05:07 -07:00
Alex Stokes
820affd2aa extend validator set so randomized helpers have more room for operation 2021-08-22 09:58:54 -07:00
Alex Stokes
6da2c7a916 ensure all validators in randomized test are active 2021-08-21 16:59:54 -07:00
protolambda
17fad2dea2 rebase The Merge onto Altair base functionality 2021-07-22 16:36:41 +02:00
protolambda
fb82472b46 update test generators 2021-05-18 18:48:58 +02:00
protolambda
a57ff5fc01 select preset with cli arg 2021-05-18 16:17:02 +02:00
protolambda
f5c647b47b switch configuration to named tuple for reliable hashing, add test for config override functionality 2021-05-18 16:08:30 +02:00
protolambda
0894125bf7 update test util 2021-05-18 13:59:26 +02:00
protolambda
d0fef3bf3f update tests with new config util 2021-05-18 09:58:50 +02:00
Alex Stokes
b71aa3fb56 add transition spec test format 2021-05-11 10:14:23 -07:00
protolambda
76b5974d11 is_execution_enabled function + misc review fixes
Co-Authored-By: Danny Ryan <dannyjryan@gmail.com>
2021-05-06 02:23:13 +02:00
protolambda
865d7db5ca update altair tests to not collide with Merge + fix merge test triggers 2021-05-05 16:03:52 +02:00
protolambda
470c6dcc6f update test runner to handle merge phase 2021-05-05 15:35:52 +02:00
protolambda
25d0d673a9 start testing of merge functionality 2021-05-05 00:18:01 +02:00
Hsiao-Wei Wang
bb63af53c9 Refactor genesis.py 2021-04-15 15:40:38 +08:00
Hsiao-Wei Wang
62c828bd4b Merge branch 'dev' into prepare_state 2021-04-13 20:50:13 +08:00
Hsiao-Wei Wang
cd43d64809 Move constants to eth2spec.test.helpers.constants 2021-04-12 22:34:00 +08:00
Hsiao-Wei Wang
a8160f1634 Try to initialize state with pure Altair spec in tests 2021-04-10 00:53:37 +08:00
Hsiao-Wei Wang
6e8b4b3ea9 Add eth2spec.merge.spec 2021-04-08 05:57:16 +08:00
protolambda
2bc3e814b0 rename to custody game 2021-03-27 01:58:39 +01:00
protolambda
0c94be4204 clean up more phase1 test references 2021-03-27 00:14:32 +01:00
protolambda
a6c01f8212 no phase1 in tests, per-feature testing now, executable specs will be re-enabled per feature 2021-03-26 23:21:36 +01:00
protolambda
906cde0610 preserve proof of custody tests 2021-03-26 23:10:56 +01:00
protolambda
14cb996613 split phase1 tests into proof-of-custody and sharding tests, drop old shard-transition specific tests 2021-03-26 23:01:24 +01:00
protolambda
4a82a375ae avoid altair fork version collision, update test prep, fix genesis state creator bug 2021-03-21 22:07:28 +01:00
Hsiao-Wei Wang
d590eebd36 SpecLightclient -> SpecAltair 2021-03-16 00:00:08 +08:00
Hsiao-Wei Wang
b44e576e95 LIGHTCLIENT_PATCH/HF1 -> ALTAIR 2021-03-11 21:32:00 +08:00
Danny Ryan
1f3e73703c use 'other_phases' for fork tests 2021-03-10 12:52:35 -07:00
Danny Ryan
f9b54ea03b remove fork_test 2021-03-09 16:18:30 -07:00
Danny Ryan
956a7a2ef1 Update tests/core/pyspec/eth2spec/test/context.py 2021-03-09 16:09:08 -07:00
Hsiao-Wei Wang
50fb3da072 Make test_fork.py truly pass 2021-03-09 20:54:48 +08:00
Danny Ryan
6c406753f1 working through test gens 2021-03-08 19:11:31 -07:00
Danny Ryan
d6961f636d add base hf1 fork function tests 2021-03-08 17:21:01 -07:00
Danny Ryan
6df3de8506 Merge pull request #2199 from ethereum/turn_off_phase1_testgen
[testgen] turn off phase 1, turn on HF1, and refactoring
2021-02-22 13:28:19 -06:00
Hsiao-Wei Wang
600a4daddf Turn off phase1 testgen and turn on lightclient_patch testgen 2021-02-15 22:29:27 +08:00
Hsiao-Wei Wang
252c331255 Fix existing tests on #2176 (accounting reform) (#2180)
* Fixing tests

* Add `is_post_lightclient_patch` helper to determine the fork version condition
2021-01-13 14:29:18 +08:00
Hsiao-Wei Wang
acfe49e3f3 executable light client patch: beacon-chain.md (#2141)
* Bump remerkleable to 0.1.18

* Disable `sync-protocol.md` for now. Make linter pass

* Enable lightclient tests

* Use *new* `optional_fast_aggregate_verify`

* Fix ToC and codespell

* Do not run phase1 tests with Lightclient patch

* Fix the Eth1Data casting bug. Add a workaround.

* Fix `run_on_attestation` testing helper

* Revert

* Rename `optional_fast_aggregate_verify` to `eth2_fast_aggregate_verify`

* Apply Proto's suggestion

* Apply Danny's suggestion

* Fixing tests

* Fix after rebasing

* Rename `LIGHTCLIENT` -> `LIGHTCLIENT_PATCH`

* New doctoc

* Add lightclient patch configs

* fix gitignore light client patch generator output

* Upgrade state for light client patch

* Add `lightclient-fork.md` to deal the fork boundary and fix
`process_block_header`

* Misc cleanups

1) Add a summary note for every function that is changed.
2) Avoid changing `process_block` (instead only change `process_block_header`).
3) Rename `G2_INFINITY_POINT_SIG` to `G2_POINT_AT_INFINITY` to avoid `SIG` contraction.
4) Misc cleanups

* Update block.py

* Update beacon-chain.md

* Fix typo "minimal" -> "mainnet"

Co-authored-by: Marin Petrunić <mpetrunic@users.noreply.github.com>

* Use the new `BeaconBlockHeader` instead of phase 0 version

* Update config files

* Move `sync_committee_bits` and `sync_committee_signature` back to `BeaconBlockBody`

Co-authored-by: protolambda <proto@protolambda.com>
Co-authored-by: Justin <drakefjustin@gmail.com>
Co-authored-by: Marin Petrunić <mpetrunic@users.noreply.github.com>
2020-12-15 13:18:20 +08:00
Danny Ryan
d257926e3a remove kludge to skip large_validator_set on mainnet config 2020-09-18 07:59:25 -06:00
Danny Ryan
0c1784b8b5 skip large_validator_set tests if too large 2020-09-17 16:50:59 -06:00
protolambda
28137a6176 Merge branch 'dev' into testgenphase1 2020-09-09 23:43:26 +02:00
Hsiao-Wei Wang
fd4e7dde94 Fix disable_process_reveal_deadlines decorator: should have set it back to the spec function for other test cases afterwards 2020-09-07 13:44:12 +08:00
Hsiao-Wei Wang
a0d646e1e0 Add decorators to diable testing with mainnet config 2020-09-04 21:50:21 +08:00