don't run flaky CI in Windows (#4935)

* don't run flaky CI in Windows

* reduce stack size in `test_light_client`

* regen tests

* re-enable maybe non-problematic test module on Windows

---------

Co-authored-by: Etan Kissling <etan@status.im>
This commit is contained in:
tersec 2023-05-15 02:14:58 +00:00 committed by GitHub
parent 98c30f600b
commit 10a7281349
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 23 additions and 17 deletions

View File

@ -56,7 +56,9 @@ when not defined(i386):
import import
./test_blockchain_dag, ./test_blockchain_dag,
./test_keystore, ./test_keystore,
./test_keystore_management, ./test_keystore_management
./test_keymanager_api
when not defined(windows):
import ./test_keymanager_api
summarizeLongTests("AllTests") summarizeLongTests("AllTests")

View File

@ -191,12 +191,15 @@ suite "Light client" & preset():
store.migrateToDataFork(lcDataFork) store.migrateToDataFork(lcDataFork)
withForkyStore(store): withForkyStore(store):
when lcDataFork > LightClientDataFork.None: when lcDataFork > LightClientDataFork.None:
# Reduce stack size by making this a `proc`
proc syncToPeriod() =
bootstrap.migrateToDataFork(lcDataFork) bootstrap.migrateToDataFork(lcDataFork)
template forkyBootstrap: untyped = bootstrap.forky(lcDataFork) template forkyBootstrap: untyped = bootstrap.forky(lcDataFork)
let upgradedUpdate = update.migratingToDataFork(lcDataFork) let upgradedUpdate = update.migratingToDataFork(lcDataFork)
template forkyUpdate: untyped = upgradedUpdate.forky(lcDataFork) template forkyUpdate: untyped = upgradedUpdate.forky(lcDataFork)
let res = process_light_client_update( let res = process_light_client_update(
forkyStore, forkyUpdate, currentSlot, cfg, genesis_validators_root) forkyStore, forkyUpdate, currentSlot, cfg,
genesis_validators_root)
check: check:
forkyUpdate.finalized_header.beacon.slot.sync_committee_period == forkyUpdate.finalized_header.beacon.slot.sync_committee_period ==
period period
@ -206,6 +209,7 @@ suite "Light client" & preset():
forkyStore.finalized_header == forkyUpdate.finalized_header forkyStore.finalized_header == forkyUpdate.finalized_header
else: else:
forkyStore.finalized_header == forkyBootstrap.header forkyStore.finalized_header == forkyBootstrap.header
syncToPeriod()
inc numIterations inc numIterations
if numIterations > 20: doAssert false # Avoid endless loop on test failure if numIterations > 20: doAssert false # Avoid endless loop on test failure