Commit Graph

380 Commits

Author SHA1 Message Date
Hsiao-Wei Wang
20bd00cef0 Add make lint_generators linter check for test generators 2020-09-15 11:19:50 +08:00
Hsiao-Wei Wang
c0c2461d2f Remove redundant keys and use Dict for phase_0_mods, phase_1_mods instead of List 2020-09-15 11:13:33 +08: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
916ae9e309 Enable more rewards and finality tests 2020-09-04 21:50:27 +08:00
Hsiao-Wei Wang
a0d646e1e0 Add decorators to diable testing with mainnet config 2020-09-04 21:50:21 +08:00
Hsiao-Wei Wang
74a2a1c0d4 Enable all tests 2020-09-04 02:40:36 +08:00
Hsiao-Wei Wang
dc888178be Merge branch 'testgenphase1' into reveal_deadlines_setting 2020-09-02 00:07:19 +08:00
Hsiao-Wei Wang
b4583aba5d Add skipping messages to some old test cases 2020-08-28 14:52:41 +08:00
Hsiao-Wei Wang
458166af83 Update the pytest version to >=4.4 as eth2spec 2020-08-27 16:12:31 +08:00
Hsiao-Wei Wang
42f368c45c Disable process_reveal_deadlines in the custody tests that have EPOCHS_PER_CUSTODY_PERIOD-long transition 2020-08-25 13:46:29 +08:00
Hsiao-Wei Wang
7eeb754f7d Add disable_process_reveal_deadlines decorator 2020-08-13 18:06:36 +08:00
Hsiao-Wei Wang
6289664260 Update testing context
1. Add `with_configs` decorator to assign available configs
2. Add `only_full_crosslink` decorator to detect if the configuation can
do full crosslinking
3. Add `context.is_pytest` flag: True if calling via pytest. False if
calling from test generator.
2020-08-12 21:50:14 +08:00
Hsiao-Wei Wang
83760b15ac Use v-guide's get_custody_secret 2020-08-12 17:39:44 +08:00
Hsiao-Wei Wang
643611aa6d Merge pull request #2010 from ethereum/fix-shard-count
Fix active shard count issues
2020-08-12 03:05:16 +08:00
Hsiao-Wei Wang
52ba90d719 Skip the testcases that don't support the fork or the config 2020-08-11 16:19:20 +08:00
Hsiao-Wei Wang
3e5cada5de Merge branch 'dev' into testgenphase1 2020-08-11 15:24:43 +08:00
Hsiao-Wei Wang
7ce10dd210 Remove unused get_attestation_custody_signature 2020-08-11 12:48:13 +08:00
Danny Ryan
b02c2e1c49 fix randao mix in sanity tests 2020-08-10 21:00:23 -06:00
Danny Ryan
8b39d41145 PR feedback 2020-08-10 13:06:20 -06:00
Danny Ryan
76c96782e2 fix disable-bls default value 2020-08-10 12:58:57 -06:00
Danny Ryan
c3ae85387c add larger validator set test for regression test for active_shard_count issue 2020-08-05 13:26:21 -06:00
Danny Ryan
56dbc17793 fix active shard count bugs 2020-08-05 12:44:31 -06:00
Hsiao-Wei Wang
6a9dd1647c Merge branch 'dev' into shard-fork-choice-fix 2020-07-30 01:13:50 +08:00
Hsiao-Wei Wang
60e9eacf4b Disable these 2 tests in phase 1 due to #1974 Issue 3 2020-07-30 00:22:27 +08:00
Hsiao-Wei Wang
e3bbf3c702 Merge branch 'dev' into shard-fork-choice-fix 2020-07-29 23:55:30 +08:00
Hsiao-Wei Wang
bd5346b624 Merge pull request #1989 from ethereum/enable-bls-citest
Enable Milagro BLS in CI
2020-07-29 23:54:53 +08:00
Hsiao-Wei Wang
b58633ce5d Quick fix the phase 1 configurations and tests (#1990)
* Quick fix the configurations

* Remove the unused `CUSTODY_RESPONSE_DEADLINE`
2020-07-29 02:06:25 +08:00
Hsiao-Wei Wang
5d388f7b9b Fix the conflict of #1971 2020-07-29 02:03:52 +08:00
Hsiao-Wei Wang
f6fd151872 Merge branch 'dev' into shard-fork-choice-fix 2020-07-29 00:15:41 +08:00
Hsiao-Wei Wang
b1eb157539 Merge branch 'dev' into hwwhww/phase-1-fork-slot 2020-07-28 23:59:19 +08:00
Hsiao-Wei Wang
a8370f7448 Apply refactoring suggestions from Danny 2020-07-28 21:51:00 +08:00
Danny Ryan
cf1a9e815d Merge pull request #1991 from ethereum/reorg-tests
Reorg tests and add finality test suite
2020-07-24 08:13:54 -06:00
protolambda
fbb8401d03 sanity test: proposer slashes themselves 2020-07-24 15:09:20 +02:00
protolambda
951c552ecc remove second hash cache, type as Bytes32 2020-07-24 02:11:48 +02:00
protolambda
e9d887be4d Enable BLS in finality tests, use Milagro 2020-07-24 01:19:14 +02:00
Hsiao-Wei Wang
64aed78d6a Only one test format for finality tests. No extra finality.md here 2020-07-24 05:25:17 +08:00
Hsiao-Wei Wang
b4c91efdbc Add __init__.py 2020-07-24 04:25:53 +08:00
Hsiao-Wei Wang
de15960185 Add finality tests to test vectors 2020-07-24 04:23:26 +08:00
Hsiao-Wei Wang
bdde2e5889 Reorg test dir 2020-07-24 03:54:45 +08:00
Hsiao-Wei Wang
e7f070d525 Use hash_tree_root to generate ShardBlockHeader.body_root
Include the mix-in length to the proof.
2020-07-24 02:09:25 +08:00
Danny Ryan
0692ac0172 bump VERSION.txt to 0.12.2 2020-07-23 10:28:02 -06:00
Hsiao-Wei Wang
33e56b5742 Apply Terence's suggestion: refactor on_shard_block interface 2020-07-22 22:48:52 +08:00
Danny Ryan
4c1a28e547 Merge pull request #1976 from ethereum/fix-bls-test-name
Rename `aggregate_na_pubkeys` to `aggregate_na_signatures` and add comments
2020-07-21 10:18:23 -06:00
Hsiao-Wei Wang
302607eac5 Rename aggregate_na_pubkeys to aggregate_na_signatures and add comments 2020-07-21 21:10:27 +08:00
Hsiao-Wei Wang
4dcf5e2498 Add test case of different shards 2020-07-17 14:24:11 +08:00
Hsiao-Wei Wang
0b81c967fa Add notes 2020-07-17 00:46:25 +08:00
Hsiao-Wei Wang
8fb96f1860 Enable more phase 0 tests to be compatible with phase 1 2020-07-17 00:10:04 +08:00
Hsiao-Wei Wang
cf42fd4828 Rename PHASE_1_GENESIS_SLOT to PHASE_1_FORK_SLOT and set it to Slot(0) for testing. 2020-07-16 23:58:47 +08:00
Hsiao-Wei Wang
8e82ca5d1a Merge branch 'dev' into hwwhww/new_int_to_bytes_dev 2020-07-16 01:36:19 +08:00