Skip to content

Commit 6f868cc

Browse files
authored
fix: built in validator lifecycle test for assertoor (#763)
update the built int validator-lifecycle-test for assertoor
1 parent ba91174 commit 6f868cc

File tree

1 file changed

+71
-30
lines changed

1 file changed

+71
-30
lines changed

static_files/assertoor-config/tests/validator-lifecycle-test.yaml

Lines changed: 71 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,10 @@
1+
id: validator-lifecycle-test
12
name: "Validator Lifecycle Test"
23
timeout: 72h
34
config:
4-
#walletPrivkey: ""
5+
walletPrivkey: ""
56
validatorMnemonic: "trial jeans seat abstract runway cupboard please elevator club file arrow lounge crash sun thumb clock duty priority key fence funny trick diary album"
6-
#validatorPairNames: []
7+
validatorPairNames: []
78
tasks:
89
- name: check_clients_are_healthy
910
title: "Check if at least one client is ready"
@@ -20,31 +21,51 @@ tasks:
2021
config:
2122
limitTotal: 300
2223
limitPerSlot: 20
24+
limitPending: 50
2325
depositContract: "0x4242424242424242424242424242424242424242"
26+
awaitReceipt: true
2427
configVars:
2528
walletPrivkey: "walletPrivkey"
2629
mnemonic: "validatorMnemonic"
2730

28-
- name: run_task_options
29-
title: "Check deposit inclusion"
31+
- name: run_task_background
32+
title: "Check deposit inclusion with all client pairs"
3033
config:
31-
ignoreFailure: true
32-
task:
33-
name: run_task_matrix
34-
title: "Check deposit inclusion with all client pairs"
35-
timeout: 48h
36-
configVars:
37-
matrixValues: "validatorPairNames"
34+
onBackgroundComplete: succeed
35+
backgroundTask:
36+
name: run_tasks
37+
title: "Await end of next deposit voting period"
38+
config:
39+
tasks:
40+
- name: check_consensus_validator_status
41+
title: "Wait for inclusion of the last deposit"
42+
config:
43+
validatorPubKey: 0xa4a6121cb76eaf63e520615368a21d504c6f7363b5045f965e3587f623a6f7f1ce32af63ce3c535e75cd831db27c5abd
44+
validatorStatus:
45+
- pending_initialized
46+
- pending_queued
47+
- active_ongoing
48+
foregroundTask:
49+
name: run_task_options
50+
title: "Check deposit inclusion"
3851
config:
39-
runConcurrent: true
40-
matrixVar: "validatorPairName"
52+
ignoreFailure: true
4153
task:
42-
name: check_consensus_block_proposals
43-
title: "Wait for block proposal with deposits from ${validatorPairName}"
54+
name: run_task_matrix
55+
title: "Check deposit inclusion with all client pairs"
56+
timeout: 48h
4457
configVars:
45-
validatorNamePattern: "validatorPairName"
58+
matrixValues: "validatorPairNames"
4659
config:
47-
minDepositCount: 1
60+
runConcurrent: true
61+
matrixVar: "validatorPairName"
62+
task:
63+
name: check_consensus_block_proposals
64+
title: "Wait for block proposal with deposits from ${validatorPairName}"
65+
configVars:
66+
validatorNamePattern: "validatorPairName"
67+
config:
68+
minDepositCount: 1
4869

4970
# due to the deposits we should reach un-finality soon.
5071
- name: check_consensus_validator_status
@@ -196,12 +217,16 @@ tasks:
196217
minProposerSlashingCount: 1
197218

198219
# exit 150 validators and wait for finality
199-
- name: generate_exits
200-
title: "Exit 150 Validators"
220+
- name: run_task_options
221+
title: "Exit 150 validators"
201222
config:
202-
indexCount: 150
203-
configVars:
204-
mnemonic: "validatorMnemonic"
223+
task:
224+
name: generate_exits
225+
title: "Exit 150 Validators"
226+
config:
227+
indexCount: 150
228+
configVars:
229+
mnemonic: "validatorMnemonic"
205230
- name: check_consensus_finality
206231
title: "Wait for consensus chain finality"
207232
timeout: 18h
@@ -236,7 +261,7 @@ tasks:
236261
matrixVar: "validatorPairName"
237262
task:
238263
name: check_consensus_block_proposals
239-
title: "Wait for block proposal with deposits from ${validatorPairName}"
264+
title: "Wait for block proposal with BLS changes from ${validatorPairName}"
240265
configVars:
241266
validatorNamePattern: "validatorPairName"
242267
config:
@@ -269,7 +294,7 @@ tasks:
269294
matrixVar: "validatorPairName"
270295
task:
271296
name: check_consensus_block_proposals
272-
title: "Wait for block proposal with deposits from ${validatorPairName}"
297+
title: "Wait for block proposal with exits from ${validatorPairName}"
273298
configVars:
274299
validatorNamePattern: "validatorPairName"
275300
config:
@@ -344,10 +369,26 @@ tasks:
344369
minProposerSlashingCount: 1
345370

346371
cleanupTasks:
347-
- name: generate_exits
348-
title: "Exit all test validators"
372+
- name: run_task_options
373+
title: "Exit all validators"
374+
config:
375+
task:
376+
name: generate_exits
377+
title: "Exit all test validators"
378+
config:
379+
limitTotal: 300
380+
indexCount: 300
381+
configVars:
382+
mnemonic: "validatorMnemonic"
383+
- name: run_task_options
384+
title: "Withdraw all funds"
349385
config:
350-
limitTotal: 300
351-
indexCount: 300
352-
configVars:
353-
mnemonic: "validatorMnemonic"
386+
task:
387+
name: generate_bls_changes
388+
title: "Generate BLS changes for all validators"
389+
config:
390+
limitTotal: 300
391+
indexCount: 300
392+
targetAddress: 0x65D08a056c17Ae13370565B04cF77D2AfA1cB9FA
393+
configVars:
394+
mnemonic: "validatorMnemonic"

0 commit comments

Comments
 (0)