Skip to content

Commit

Permalink
validator-lifecycle-test-v3 fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
pk910 committed Jan 13, 2025
1 parent 6c91c19 commit 5d76749
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions playbooks/pectra-dev/validator-lifecycle-test-v3.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -1177,32 +1177,32 @@ tasks:
exit 1
fi
# validator #7: 48 ETH (48 ETH EB), 0x02 withdrawal creds
# validator #7: 111.9 ETH (111 ETH EB), 0x02 withdrawal creds
- name: check_consensus_validator_status
title: "Get validator #7 info"
id: validator_info_7
timeout: 8h
config:
validatorStatus:
- active_ongoing
minValidatorBalance: 143800000000
minValidatorBalance: 111800000000
configVars:
validatorPubKey: "tasks.all_pubkeys.outputs.pubkeys[7]"
- name: run_shell
title: "Check validator #7 status: 144 ETH (143 ETH EB), 0x02 withdrawal creds"
title: "Check validator #7 status: 111.9 ETH (111 ETH EB), 0x02 withdrawal creds"
config:
envVars:
validator: "tasks.validator_info_7.outputs.validator"
command: |
balance=$(echo "$validator" | jq -r '.balance')
if [ "$balance" -lt 143800000000 ]; then
echo "Balance too low! expected: > 143.8 ETH, got: $balance Gwei"
if [ "$balance" -lt 111800000000 ]; then
echo "Balance too low! expected: > 111.8 ETH, got: $balance Gwei"
exit 1
fi
effective_balance=$(echo "$validator" | jq -r '.validator.effective_balance')
if [ "$effective_balance" != "143000000000" ]; then
echo "Effective balance too low! expected: 143 ETH, got: $effective_balance Gwei"
if [ "$effective_balance" != "111000000000" ]; then
echo "Effective balance too low! expected: 111 ETH, got: $effective_balance Gwei"
exit 1
fi
Expand All @@ -1220,7 +1220,7 @@ tasks:
# index 4: exited 0 ETH (0 ETH EB), 0x01 withdrawal creds (consolidated to 7)
# index 5: exited 0 ETH (0 ETH EB), 0x02 withdrawal creds (consolidated to 7)
# index 6: active 32 ETH (32 ETH EB), 0x01 withdrawal creds
# index 7: active 143.9 ETH (143 ETH EB), 0x02 withdrawal creds
# index 7: active 111.9 ETH (111 ETH EB), 0x02 withdrawal creds
# index 8: active 32 ETH (32 ETH EB), 0x02 withdrawal creds
# index 9: exited 0 ETH (0 ETH EB), 0x02 withdrawal creds

Expand Down Expand Up @@ -1268,7 +1268,7 @@ tasks:
# validator #6: 42 ETH (42 ETH EB), 0x02 withdrawal creds
- name: check_consensus_validator_status
title: "Get validator #6 info"
id: validator_info_6
id: validator_info_6_b
timeout: 1h
config:
validatorStatus:
Expand All @@ -1280,7 +1280,7 @@ tasks:
title: "Check validator #6 status: 42 ETH (41 ETH EB), 0x00 withdrawal creds"
config:
envVars:
validator: "tasks.validator_info_6.outputs.validator"
validator: "tasks.validator_info_6_b.outputs.validator"
command: |
balance=$(echo "$validator" | jq -r '.balance')
if [ "$balance" -lt 41900000000 ]; then
Expand Down

0 comments on commit 5d76749

Please sign in to comment.