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

Ci fix #50

Merged
merged 3 commits into from
Apr 19, 2024
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
10 changes: 4 additions & 6 deletions .github/workflows/testnode.bash
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,9 @@
# until send-l2 succeeds.

# Start the test node and get PID, to terminate it once send-l2 is done.
${GITHUB_WORKSPACE}/test-node.bash --init > output.log 2>&1 &
PID=$!
cd ${GITHUB_WORKSPACE}

sleep 5m
./test-node.bash --init-force --detach

START=$(date +%s)
SUCCEDED=0
Expand All @@ -29,11 +28,10 @@ while true; do
sleep 10
done

# Shut down the test node and wait for it to terminate.
kill $PID
wait $PID
docker-compose stop

if [ "$SUCCEDED" -eq 0 ]; then
docker-compose logs
exit 1
fi

Expand Down
6 changes: 5 additions & 1 deletion test-node.bash
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

set -e

NITRO_NODE_VERSION=offchainlabs/nitro-node:v2.2.2-8f33fea-dev
NITRO_NODE_VERSION=offchainlabs/nitro-node:v2.3.3-6a1c1a7-dev
BLOCKSCOUT_VERSION=offchainlabs/blockscout:v1.0.0-c8db5b1

mydir=`dirname $0`
Expand Down Expand Up @@ -54,6 +54,10 @@ while [[ $# -gt 0 ]]; do
fi
shift
;;
--init-force)
force_init=true
shift
;;
--dev)
simple=false
shift
Expand Down
Loading