mirror of
https://github.com/status-im/nimbus-eth2.git
synced 2025-02-17 00:47:03 +00:00
add light client capella CI tests (#4311)
This commit is contained in:
parent
1691d89695
commit
a63ec842bc
@ -290,9 +290,9 @@ ConsensusSpecPreset-mainnet
|
|||||||
+ Light client - Single merkle proof - mainnet/bellatrix/light_client/single_merkle_proof/py OK
|
+ Light client - Single merkle proof - mainnet/bellatrix/light_client/single_merkle_proof/py OK
|
||||||
+ Light client - Single merkle proof - mainnet/bellatrix/light_client/single_merkle_proof/py OK
|
+ Light client - Single merkle proof - mainnet/bellatrix/light_client/single_merkle_proof/py OK
|
||||||
+ Light client - Single merkle proof - mainnet/bellatrix/light_client/single_merkle_proof/py OK
|
+ Light client - Single merkle proof - mainnet/bellatrix/light_client/single_merkle_proof/py OK
|
||||||
Light client - Single merkle proof - mainnet/capella/light_client/single_merkle_proof/pysp Skip
|
+ Light client - Single merkle proof - mainnet/capella/light_client/single_merkle_proof/pysp OK
|
||||||
Light client - Single merkle proof - mainnet/capella/light_client/single_merkle_proof/pysp Skip
|
+ Light client - Single merkle proof - mainnet/capella/light_client/single_merkle_proof/pysp OK
|
||||||
Light client - Single merkle proof - mainnet/capella/light_client/single_merkle_proof/pysp Skip
|
+ Light client - Single merkle proof - mainnet/capella/light_client/single_merkle_proof/pysp OK
|
||||||
+ Slots - double_empty_epoch OK
|
+ Slots - double_empty_epoch OK
|
||||||
+ Slots - empty_epoch OK
|
+ Slots - empty_epoch OK
|
||||||
+ Slots - over_epoch_boundary OK
|
+ Slots - over_epoch_boundary OK
|
||||||
@ -589,7 +589,7 @@ ConsensusSpecPreset-mainnet
|
|||||||
+ fork_random_low_balances OK
|
+ fork_random_low_balances OK
|
||||||
+ fork_random_misc_balances OK
|
+ fork_random_misc_balances OK
|
||||||
```
|
```
|
||||||
OK: 575/586 Fail: 0/586 Skip: 11/586
|
OK: 578/586 Fail: 0/586 Skip: 8/586
|
||||||
## Attestation
|
## Attestation
|
||||||
```diff
|
```diff
|
||||||
+ [Invalid] EF - Altair - Operations - Attestation - after_epoch_slots OK
|
+ [Invalid] EF - Altair - Operations - Attestation - after_epoch_slots OK
|
||||||
@ -1921,4 +1921,4 @@ OK: 48/48 Fail: 0/48 Skip: 0/48
|
|||||||
OK: 14/14 Fail: 0/14 Skip: 0/14
|
OK: 14/14 Fail: 0/14 Skip: 0/14
|
||||||
|
|
||||||
---TOTAL---
|
---TOTAL---
|
||||||
OK: 1664/1675 Fail: 0/1675 Skip: 11/1675
|
OK: 1667/1675 Fail: 0/1675 Skip: 8/1675
|
||||||
|
@ -334,15 +334,18 @@ ConsensusSpecPreset-minimal
|
|||||||
+ Light client - Single merkle proof - minimal/bellatrix/light_client/single_merkle_proof/py OK
|
+ Light client - Single merkle proof - minimal/bellatrix/light_client/single_merkle_proof/py OK
|
||||||
+ Light client - Single merkle proof - minimal/bellatrix/light_client/single_merkle_proof/py OK
|
+ Light client - Single merkle proof - minimal/bellatrix/light_client/single_merkle_proof/py OK
|
||||||
+ Light client - Single merkle proof - minimal/bellatrix/light_client/single_merkle_proof/py OK
|
+ Light client - Single merkle proof - minimal/bellatrix/light_client/single_merkle_proof/py OK
|
||||||
Light client - Single merkle proof - minimal/capella/light_client/single_merkle_proof/pysp Skip
|
+ Light client - Single merkle proof - minimal/capella/light_client/single_merkle_proof/pysp OK
|
||||||
Light client - Single merkle proof - minimal/capella/light_client/single_merkle_proof/pysp Skip
|
+ Light client - Single merkle proof - minimal/capella/light_client/single_merkle_proof/pysp OK
|
||||||
Light client - Single merkle proof - minimal/capella/light_client/single_merkle_proof/pysp Skip
|
+ Light client - Single merkle proof - minimal/capella/light_client/single_merkle_proof/pysp OK
|
||||||
+ Light client - Sync - minimal/altair/light_client/sync/pyspec_tests/advance_finality_witho OK
|
+ Light client - Sync - minimal/altair/light_client/sync/pyspec_tests/advance_finality_witho OK
|
||||||
+ Light client - Sync - minimal/altair/light_client/sync/pyspec_tests/light_client_sync OK
|
+ Light client - Sync - minimal/altair/light_client/sync/pyspec_tests/light_client_sync OK
|
||||||
+ Light client - Sync - minimal/altair/light_client/sync/pyspec_tests/supply_sync_committee_ OK
|
+ Light client - Sync - minimal/altair/light_client/sync/pyspec_tests/supply_sync_committee_ OK
|
||||||
+ Light client - Sync - minimal/bellatrix/light_client/sync/pyspec_tests/advance_finality_wi OK
|
+ Light client - Sync - minimal/bellatrix/light_client/sync/pyspec_tests/advance_finality_wi OK
|
||||||
+ Light client - Sync - minimal/bellatrix/light_client/sync/pyspec_tests/light_client_sync OK
|
+ Light client - Sync - minimal/bellatrix/light_client/sync/pyspec_tests/light_client_sync OK
|
||||||
+ Light client - Sync - minimal/bellatrix/light_client/sync/pyspec_tests/supply_sync_committ OK
|
+ Light client - Sync - minimal/bellatrix/light_client/sync/pyspec_tests/supply_sync_committ OK
|
||||||
|
+ Light client - Sync - minimal/capella/light_client/sync/pyspec_tests/advance_finality_with OK
|
||||||
|
+ Light client - Sync - minimal/capella/light_client/sync/pyspec_tests/light_client_sync OK
|
||||||
|
+ Light client - Sync - minimal/capella/light_client/sync/pyspec_tests/supply_sync_committee OK
|
||||||
+ Light client - Update ranking - minimal/altair/light_client/update_ranking/pyspec_tests/up OK
|
+ Light client - Update ranking - minimal/altair/light_client/update_ranking/pyspec_tests/up OK
|
||||||
+ Light client - Update ranking - minimal/bellatrix/light_client/update_ranking/pyspec_tests OK
|
+ Light client - Update ranking - minimal/bellatrix/light_client/update_ranking/pyspec_tests OK
|
||||||
+ Light client - Update ranking - minimal/capella/light_client/update_ranking/pyspec_tests/u OK
|
+ Light client - Update ranking - minimal/capella/light_client/update_ranking/pyspec_tests/u OK
|
||||||
@ -665,7 +668,7 @@ ConsensusSpecPreset-minimal
|
|||||||
+ fork_random_low_balances OK
|
+ fork_random_low_balances OK
|
||||||
+ fork_random_misc_balances OK
|
+ fork_random_misc_balances OK
|
||||||
```
|
```
|
||||||
OK: 651/662 Fail: 0/662 Skip: 11/662
|
OK: 657/665 Fail: 0/665 Skip: 8/665
|
||||||
## Attestation
|
## Attestation
|
||||||
```diff
|
```diff
|
||||||
+ [Invalid] EF - Altair - Operations - Attestation - after_epoch_slots OK
|
+ [Invalid] EF - Altair - Operations - Attestation - after_epoch_slots OK
|
||||||
@ -2057,4 +2060,4 @@ OK: 52/52 Fail: 0/52 Skip: 0/52
|
|||||||
OK: 14/14 Fail: 0/14 Skip: 0/14
|
OK: 14/14 Fail: 0/14 Skip: 0/14
|
||||||
|
|
||||||
---TOTAL---
|
---TOTAL---
|
||||||
OK: 1788/1799 Fail: 0/1799 Skip: 11/1799
|
OK: 1794/1802 Fail: 0/1802 Skip: 8/1802
|
||||||
|
@ -23,10 +23,6 @@ import
|
|||||||
|
|
||||||
proc runTest(path: string, fork: BeaconStateFork) =
|
proc runTest(path: string, fork: BeaconStateFork) =
|
||||||
test "Light client - Single merkle proof - " & path.relativePath(SszTestsDir):
|
test "Light client - Single merkle proof - " & path.relativePath(SszTestsDir):
|
||||||
if capellaImplementationMissing or fork == BeaconStateFork.Capella:
|
|
||||||
skip()
|
|
||||||
return
|
|
||||||
|
|
||||||
type
|
type
|
||||||
TestProof = object
|
TestProof = object
|
||||||
leaf: string
|
leaf: string
|
||||||
|
@ -116,8 +116,6 @@ proc runTest(path: string) =
|
|||||||
store.optimistic_header.slot == step.checks.optimistic_slot
|
store.optimistic_header.slot == step.checks.optimistic_slot
|
||||||
hash_tree_root(store.optimistic_header) == step.checks.optimistic_root
|
hash_tree_root(store.optimistic_header) == step.checks.optimistic_root
|
||||||
|
|
||||||
from strutils import contains
|
|
||||||
|
|
||||||
suite "EF - Light client - Sync" & preset():
|
suite "EF - Light client - Sync" & preset():
|
||||||
const presetPath = SszTestsDir/const_preset
|
const presetPath = SszTestsDir/const_preset
|
||||||
for kind, path in walkDir(presetPath, relative = true, checkDir = true):
|
for kind, path in walkDir(presetPath, relative = true, checkDir = true):
|
||||||
@ -127,7 +125,4 @@ suite "EF - Light client - Sync" & preset():
|
|||||||
continue
|
continue
|
||||||
for kind, path in walkDir(basePath, relative = true, checkDir = true):
|
for kind, path in walkDir(basePath, relative = true, checkDir = true):
|
||||||
let combinedPath = basePath/path
|
let combinedPath = basePath/path
|
||||||
if combinedPath.contains("capella"):
|
|
||||||
# TODO
|
|
||||||
continue
|
|
||||||
runTest(basePath/path)
|
runTest(basePath/path)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user