Skip to content

Commit e281c81

Browse files
committed
more verbosity
1 parent ba5e271 commit e281c81

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

.github/workflows/e2e-nitro-celestia.yml

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -128,22 +128,26 @@ jobs:
128128
set -e
129129
tries=120
130130
echo "Waiting for L2 RPC to become available..."
131-
until response=$(curl -sf -H 'Content-Type: application/json' \
131+
until response=$(curl --connect-timeout 5 --max-time 10 -H 'Content-Type: application/json' \
132132
--data '{"jsonrpc":"2.0","method":"eth_blockNumber","params":[],"id":1}' \
133-
http://localhost:8547 2>&1); do
133+
http://localhost:8547 2>&1) && echo "$response" | grep -q "result"; do
134134
((tries--)) || {
135135
echo "L2 RPC not up after 120 attempts (10 minutes)"
136136
echo "Last response: $response"
137137
echo "Checking if port 8547 is listening:"
138138
netstat -tuln | grep :8547 || echo "Port 8547 not found"
139139
echo "Docker container status:"
140140
docker ps | grep -E "(nitro|sequencer|geth)" || echo "No nitro containers found"
141+
echo "Checking testnode directory:"
142+
ls -la "$WORKDIR/nitro-testnode/" 2>/dev/null || echo "Testnode directory not found"
141143
exit 1
142144
}
143-
echo "Attempt $((120 - tries + 1))/120: $response"
145+
if [ $((tries % 10)) -eq 0 ] || [ $tries -lt 5 ]; then
146+
echo "Attempt $((120 - tries + 1))/120: $response"
147+
fi
144148
sleep 5
145149
done
146-
echo "L2 RPC is now responding"
150+
echo "L2 RPC is now responding: $response"
147151
148152
- name: Assert L2 progresses
149153
run: |

0 commit comments

Comments
 (0)