Skip to content
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

test: upgrade geth version in the sim tests #6540

Merged
merged 6 commits into from
Mar 13, 2024
Merged
Show file tree
Hide file tree
Changes from 3 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
11 changes: 7 additions & 4 deletions .env.test
Original file line number Diff line number Diff line change
@@ -1,13 +1,16 @@
# We use these images during sim and e2e tests
# TODO: Upgrade Geth once the Nethermind issue is resolved else it's causing following error
# Rejected peer id=134e2c1a76745626 addr=192.168.0.3:9052 conn=staticdial err="useless peer"
GETH_DOCKER_IMAGE=ethereum/client-go:v1.11.6
# This is the last version which supports pre/post merge chains in the same network
# All newer versions only work with post merge chains
GETH_DOCKER_IMAGE=ethereum/client-go:v1.13.14
# Use either image or local binary for the testing
GETH_BINARY_DIR=
LIGHTHOUSE_DOCKER_IMAGE=sigp/lighthouse:v4.6.0-amd64-modern-dev

# We can't upgrade nethermind further due to genesis hash mismatch with the geth
# https://github.com/NethermindEth/nethermind/issues/6683
NETHERMIND_DOCKER_IMAGE=nethermind/nethermind:1.18.2
# Disabling Nethermind from sim tests until the above issue is resolved
# NETHERMIND_DOCKER_IMAGE=nethermind/nethermind:1.18.2

# We mostly use mainnet for unit testing
# Changing this value may impact the tests which are written with mainnet in mind
LODESTAR_PRESET=mainnet
2 changes: 1 addition & 1 deletion packages/cli/test/scripts/e2e_test_env.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ const env = await SimulationEnvironment.initWithDefaults(
},
[
{id: "node-1", beacon: BeaconClient.Lodestar, execution: ExecutionClient.Geth, keysCount: 32, mining: true},
{id: "node-2", beacon: BeaconClient.Lodestar, execution: ExecutionClient.Nethermind, keysCount: 32},
{id: "node-2", beacon: BeaconClient.Lodestar, execution: ExecutionClient.Geth, keysCount: 32},
]
);

Expand Down
6 changes: 3 additions & 3 deletions packages/cli/test/sim/multi_fork.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ const env = await SimulationEnvironment.initWithDefaults(
},
},
},
execution: ExecutionClient.Nethermind,
execution: ExecutionClient.Geth,
keysCount: 32,
remote: true,
},
Expand All @@ -93,7 +93,7 @@ const env = await SimulationEnvironment.initWithDefaults(
},
},
},
execution: ExecutionClient.Nethermind,
execution: ExecutionClient.Geth,
keysCount: 32,
},
{
Expand All @@ -110,7 +110,7 @@ const env = await SimulationEnvironment.initWithDefaults(
},
},
},
execution: ExecutionClient.Nethermind,
execution: ExecutionClient.Geth,
keysCount: 32,
},
{id: "node-5", beacon: BeaconClient.Lighthouse, execution: ExecutionClient.Geth, keysCount: 32},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -130,6 +130,7 @@ export const generateGethNode: ExecutionNodeGenerator<ExecutionClient.Geth> = (o
`extip:${address}`,
"--authrpc.jwtsecret",
jwtsecretFilePathMounted,
"--nodiscover",
jeluard marked this conversation as resolved.
Show resolved Hide resolved
"--datadir",
rootDirMounted,
"--allow-insecure-unlock",
Expand Down