-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[e2e] Add verification runner (#443)
- Loading branch information
1 parent
adb64d9
commit 2492321
Showing
1 changed file
with
43 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
#!/usr/bin/env bash | ||
|
||
|
||
export RESTATE_CONTAINER_IMAGE=${RESTATE_CONTAINER_IMAGE:-"ghcr.io/restatedev/restate:main"} | ||
export SERVICES_CONTAINER_IMAGE=${SERVICES_CONTAINER_IMAGE:-"localhost/restatedev/test-services:latest"} | ||
|
||
export SERVICES=InterpreterDriverJob | ||
export NODE_ENV=production | ||
export NODE_OPTIONS="--max-old-space-size=4096" | ||
export AWS_LAMBDA_FUNCTION_NAME=1 | ||
export DEBUG=testcontainers:containers | ||
|
||
SEED=$(date --iso-8601=seconds) | ||
|
||
export INTERPRETER_DRIVER_CONF=$(cat <<-EOF | ||
{ | ||
"seed" : "${SEED}", | ||
"keys" : 100000, | ||
"tests" : 1000000, | ||
"maxProgramSize" : 20, | ||
"crashInterval" : 900000, | ||
"bootstrap" : true | ||
} | ||
EOF | ||
) | ||
|
||
echo $RESTATE_CONTAINER_IMAGE | ||
|
||
docker pull ghcr.io/restatedev/e2e-verification-runner:main | ||
|
||
docker run \ | ||
--net host\ | ||
-v /var/run/docker.sock:/var/run/docker.sock \ | ||
--env RESTATE_CONTAINER_IMAGE \ | ||
--env SERVICES_CONTAINER_IMAGE \ | ||
--env SERVICES \ | ||
--env NODE_ENV \ | ||
--env NODE_OPTIONS \ | ||
--env AWS_LAMBDA_FUNCTION_NAME \ | ||
--env DEBUG \ | ||
--env INTERPRETER_DRIVER_CONF \ | ||
ghcr.io/restatedev/e2e-verification-runner:main 2>&1 | grep -v "undefined is not a number, but it still has feelings" | ||
|