Skip to content
Merged
Show file tree
Hide file tree
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
27 changes: 24 additions & 3 deletions .github/workflows/checks.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ jobs:
- name: Download builder playground
uses: flashbots/flashbots-toolchain@v0.1
with:
builder-playground: v0.1.3-reth-1.4.8
builder-playground: v0.3.1

# https://github.com/swatinem/rust-cache
- name: Run Swatinem/rust-cache@v2
Expand All @@ -111,7 +111,28 @@ jobs:
run: cargo build --features="${{ matrix.features }}"

- name: Run the playground
run: builder-playground &
run: |
builder-playground start l1 --use-native-reth > /tmp/playground.log 2>&1 &
PLAYGROUND_PID=$!
echo "Waiting for all services to be healthy..."
timeout=60 # 1 minutes timeout
elapsed=0
while [ $elapsed -lt $timeout ]; do
if grep -q "All services are healthy" /tmp/playground.log 2>/dev/null; then
echo "All services are healthy!"
break
fi
sleep 2
elapsed=$((elapsed + 2))
done
if [ $elapsed -ge $timeout ]; then
echo "Timeout waiting for services to be healthy"
echo "Last 50 lines of playground output:"
tail -n 50 /tmp/playground.log || true
kill $PLAYGROUND_PID 2>/dev/null || true
exit 1
fi
echo "Playground is running (PID: $PLAYGROUND_PID)"

- name: Run integration tests with flags
run: cargo test --features="${{ matrix.features }}" --package rbuilder --lib -- integration --test-threads=1
Expand All @@ -123,7 +144,7 @@ jobs:
if: ${{ failure() }}
run: |
mkdir /tmp/playground-logs
mv $HOME/.playground/devnet/logs /tmp/playground-logs
mv $HOME/.local/state/builder-playground/devnet/logs /tmp/playground-logs
mv integration_logs /tmp/playground-logs

- name: Archive playground logs
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@

chain = "$HOME/.playground/devnet/genesis.json"
reth_datadir = "$HOME/.playground/devnet/data_reth"
chain = "$HOME/.local/state/builder-playground/devnet/genesis.json"
reth_datadir = "$HOME/.local/state/builder-playground/devnet/volume-el-data"
relay_secret_key = "5eae315483f028b5cdd5d1090ff0c7618b18737ea9bf3c35047189db22835c48"
el_node_ipc_path = "$HOME/.playground/devnet/reth.ipc"
el_node_ipc_path = "$HOME/.local/state/builder-playground/devnet/volume-el-data/reth.ipc"
live_builders = ["mgp-ordering"]
enabled_relays = ["playground"]
log_level = "info,rbuilder=debug"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@

chain = "$HOME/.playground/devnet/genesis.json"
reth_datadir = "$HOME/.playground/devnet/data_reth"
chain = "$HOME/.local/state/builder-playground/devnet/genesis.json"
reth_datadir = "$HOME/.local/state/builder-playground/devnet/volume-el-data"
relay_secret_key = "5eae315483f028b5cdd5d1090ff0c7618b18737ea9bf3c35047189db22835c48"
el_node_ipc_path = "$HOME/.playground/devnet/reth.ipc"
el_node_ipc_path = "$HOME/.local/state/builder-playground/devnet/volume-el-data/reth.ipc"
live_builders = ["mgp-ordering"]
enabled_relays = ["playground"]
log_level = "info,rbuilder=debug"
Expand Down
Loading