Skip to content

Commit

Permalink
сhore: use upstream kurtosis package (#57)
Browse files Browse the repository at this point in the history
Uses ethpandaops/optimism-package#85 for now,
once merged can be replaced with upstream package.

This also switches to using images from
https://github.com/paradigmxyz/optimism cc @Rjected

---------

Co-authored-by: Oliver <[email protected]>
  • Loading branch information
klkvr and onbjerg authored Oct 19, 2024
1 parent 9bdd004 commit b2ed2b9
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 14 deletions.
10 changes: 3 additions & 7 deletions .github/workflows/e2e.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,21 +34,17 @@ jobs:
echo "deb [trusted=yes] https://apt.fury.io/kurtosis-tech/ /" | sudo tee /etc/apt/sources.list.d/kurtosis.list
sudo apt update
sudo apt install kurtosis-cli
- name: Clone optimism-package
run: |
git clone https://github.com/klkvr/optimism-package
cd optimism-package
git switch odyssey
- name: Build Odyssey
run: docker buildx build . --load -t ghcr.io/ithacaxyz/odyssey:latest
- name: Run enclave
id: kurtosis
run: |
git clone https://github.com/klkvr/optimism-package
kurtosis engine start
kurtosis run --enclave op-devnet ./optimism-package --args-file ./etc/kurtosis.yaml
ENCLAVE_ID=$(curl http://127.0.0.1:9779/api/enclaves | jq --raw-output 'keys[0]')
SEQUENCER_EL_PORT=$(curl "http://127.0.0.1:9779/api/enclaves/$ENCLAVE_ID/services" | jq '."op-el-1-op-reth-op-node".public_ports.rpc.number')
REPLICA_EL_PORT=$(curl "http://127.0.0.1:9779/api/enclaves/$ENCLAVE_ID/services" | jq '."op-el-2-op-reth-op-node".public_ports.rpc.number')
SEQUENCER_EL_PORT=$(curl "http://127.0.0.1:9779/api/enclaves/$ENCLAVE_ID/services" | jq '."op-el-1-op-reth-op-node-op-kurtosis".public_ports.rpc.number')
REPLICA_EL_PORT=$(curl "http://127.0.0.1:9779/api/enclaves/$ENCLAVE_ID/services" | jq '."op-el-2-op-reth-op-node-op-kurtosis".public_ports.rpc.number')
echo "SEQUENCER_RPC=http://127.0.0.1:$SEQUENCER_EL_PORT" >> $GITHUB_ENV
echo "REPLICA_RPC=http://127.0.0.1:$REPLICA_EL_PORT" >> $GITHUB_ENV
- name: Run E2E tests
Expand Down
29 changes: 22 additions & 7 deletions etc/kurtosis.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,25 @@ ethereum_package:
- el_type: reth
cl_type: lighthouse
optimism_package:
participants:
- el_type: op-reth
el_image: ghcr.io/ithacaxyz/odyssey:latest
count: 2
network_params:
network_id: "41144114"
seconds_per_slot: 1
chains:
- participants:
- el_type: op-reth
el_image: ghcr.io/ithacaxyz/odyssey:latest
cl_image: ghcr.io/paradigmxyz/op-node:latest
el_extra_env_vars:
EXP1_SK: "0x8b3a350cf5c34c9194ca85829a2df0ec3153be0318b5e2d3348e872092edffba"
EXP1_WHITELIST: "0x0116686E2291dbd5e317F47faDBFb43B599786Ef"
el_extra_params:
- "--rollup.discovery.v4"
- el_type: op-reth
el_image: ghcr.io/ithacaxyz/odyssey:latest
cl_image: ghcr.io/paradigmxyz/op-node:latest
el_extra_env_vars:
EXP1_SK: "0x8b3a350cf5c34c9194ca85829a2df0ec3153be0318b5e2d3348e872092edffba"
EXP1_WHITELIST: "0x0116686E2291dbd5e317F47faDBFb43B599786Ef"
el_extra_params:
- "--rollup.discovery.v4"
network_params:
network_id: "41144114"
seconds_per_slot: 1
batcher_image: ghcr.io/paradigmxyz/op-batcher:latest

0 comments on commit b2ed2b9

Please sign in to comment.