Skip to content

Fix Kurtosis doppelganger CI #7343

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Apr 22, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
66 changes: 42 additions & 24 deletions scripts/tests/doppelganger_protection.sh
Original file line number Diff line number Diff line change
Expand Up @@ -74,18 +74,27 @@ if [[ "$BEHAVIOR" == "failure" ]]; then
vc_1_keys_artifact_id="1-lighthouse-geth-$vc_1_range_start-$vc_1_range_end"
service_name=vc-1-doppelganger

kurtosis service add \
--files /validator_keys:$vc_1_keys_artifact_id,/testnet:el_cl_genesis_data \
$ENCLAVE_NAME $service_name $LH_IMAGE_NAME -- lighthouse \
vc \
--debug-level info \
--testnet-dir=/testnet \
--validators-dir=/validator_keys/keys \
--secrets-dir=/validator_keys/secrets \
--init-slashing-protection \
--beacon-nodes=http://$bn_2_url:$bn_2_port \
--enable-doppelganger-protection \
--suggested-fee-recipient 0x690B9A9E9aa1C9dB991C7721a92d351Db4FaC990
kurtosis service add $ENCLAVE_NAME $service_name --json-service-config - << EOF
{
"image": "$LH_IMAGE_NAME",
"files": {
"/validator_keys": ["$vc_1_keys_artifact_id"],
"/testnet": ["el_cl_genesis_data"]
},
"cmd": [
"lighthouse",
"vc",
"--debug-level", "info",
"--testnet-dir=/testnet",
"--validators-dir=/validator_keys/keys",
"--secrets-dir=/validator_keys/secrets",
"--init-slashing-protection",
"--beacon-nodes=http://$bn_2_url:$bn_2_port",
"--enable-doppelganger-protection",
"--suggested-fee-recipient", "0x690B9A9E9aa1C9dB991C7721a92d351Db4FaC990"
]
}
EOF

# Check if doppelganger VC has stopped and exited. Exit code 1 means the check timed out and VC is still running.
check_exit_cmd="until [ \$(get_service_status $service_name) != 'RUNNING' ]; do sleep 1; done"
Expand All @@ -110,18 +119,27 @@ if [[ "$BEHAVIOR" == "success" ]]; then
vc_4_keys_artifact_id="4-lighthouse-geth-$vc_4_range_start-$vc_4_range_end"
service_name=vc-4

kurtosis service add \
--files /validator_keys:$vc_4_keys_artifact_id,/testnet:el_cl_genesis_data \
$ENCLAVE_NAME $service_name $LH_IMAGE_NAME -- lighthouse \
vc \
--debug-level debug \
--testnet-dir=/testnet \
--validators-dir=/validator_keys/keys \
--secrets-dir=/validator_keys/secrets \
--init-slashing-protection \
--beacon-nodes=http://$bn_2_url:$bn_2_port \
--enable-doppelganger-protection \
--suggested-fee-recipient 0x690B9A9E9aa1C9dB991C7721a92d351Db4FaC990
kurtosis service add $ENCLAVE_NAME $service_name --json-service-config - << EOF
{
"image": "$LH_IMAGE_NAME",
"files": {
"/validator_keys": ["$vc_4_keys_artifact_id"],
"/testnet": ["el_cl_genesis_data"]
},
"cmd": [
"lighthouse",
"vc",
"--debug-level", "info",
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just noting this changed to info. That's probably fine for CI, as we will usually debug locally if there are issues.

"--testnet-dir=/testnet",
"--validators-dir=/validator_keys/keys",
"--secrets-dir=/validator_keys/secrets",
"--init-slashing-protection",
"--beacon-nodes=http://$bn_2_url:$bn_2_port",
"--enable-doppelganger-protection",
"--suggested-fee-recipient", "0x690B9A9E9aa1C9dB991C7721a92d351Db4FaC990"
]
}
EOF

doppelganger_failure=0

Expand Down
Loading