Skip to content

Commit

Permalink
fix job
Browse files Browse the repository at this point in the history
  • Loading branch information
dkijania committed Dec 12, 2023
1 parent 10b4d16 commit ba618dc
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
9 changes: 5 additions & 4 deletions buildkite/scripts/replayer-test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ apt-get update
# Don't prompt for answers during apt-get install
export DEBIAN_FRONTEND=noninteractive

# time zone = US Pacific
apt-get install -y git apt-transport-https ca-certificates curl wget

git config --global --add safe.directory $BUILDKITE_BUILD_CHECKOUT_PATH
Expand Down Expand Up @@ -55,12 +54,14 @@ trap "cleanup; exit 1" SIGINT
sleep 5

echo "Populating archive database"
docker exec replayer-postgres psql $PG_CONN -f $TEST_DIR/test/archive_db.sql

NETWORK_GATEWAY=$(docker network inspect -f "{{(index .IPAM.Config 0).Gateway}}" replayer)

PG_CONN=postgres://postgres:$PG_PASSWORD@$NETWORK_GATEWAY:$PG_PORT/$DB
PG_CONN="postgres://postgres:$PG_PASSWORD@$NETWORK_GATEWAY:$PG_PORT/$DB"


docker exec replayer-postgres psql $PG_CONN -f $TEST_DIR/test/archive_db.sql

docker run --network replayer --volume $BUILDKITE_BUILD_CHECKOUT_PATH:/workdir gcr.io/o1labs-192920/mina-archive:$MINA_DOCKER_TAG /workdir/scripts/replayer-test.sh -d $TEST_DIR -a mina-replayer -p $PG_CONN

cleanup
cleanup
2 changes: 1 addition & 1 deletion buildkite/src/Command/ReplayerTest.dhall
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ let Cmd = ../Lib/Cmds.dhall in
],
label = "Replayer test",
key = "replayer-test",
target = Size.QA,
target = Size.Large,
depends_on = dependsOn
}
}

0 comments on commit ba618dc

Please sign in to comment.