Remove tty flag from docker commands
Some checks failed
Lint Checks / Run linter (pull_request) Successful in 40s
Deploy Test / Run deploy test suite (pull_request) Successful in 5m44s
Webapp Test / Run webapp test suite (pull_request) Successful in 5m24s
Fixturenet-Laconicd-Test / Run Laconicd fixturenet and Laconic CLI tests (pull_request) Failing after 13m34s
K8s Deploy Test / Run deploy test suite on kind/k8s (pull_request) Successful in 10m53s
Smoke Test / Run basic test suite (pull_request) Successful in 5m42s

This commit is contained in:
Prathamesh Musale 2024-04-02 11:13:35 +05:30
parent 2ba72d180f
commit 5326308521

View File

@ -5,11 +5,12 @@ if [ -n "$CERC_SCRIPT_DEBUG" ]; then
set -x set -x
fi fi
echo "$(date +"%Y-%m-%d %T"): Running stack-orchestrator Laconicd fixturenet test" echo "$(date +"%Y-%m-%d %T"): Running stack-orchestrator Laconic registry CLI tests"
env env
cat /etc/hosts cat /etc/hosts
# Bit of a hack, test the most recent package # Bit of a hack, test the most recent package
TEST_TARGET_SO=$( ls -t1 ./package/laconic-so* | head -1 ) # TEST_TARGET_SO=$( ls -t1 ./package/laconic-so* | head -1 )
TEST_TARGET_SO=laconic-so
echo "$(date +"%Y-%m-%d %T"): Starting stack" echo "$(date +"%Y-%m-%d %T"): Starting stack"
TEST_AUCTION_ENABLED=true $TEST_TARGET_SO --stack fixturenet-laconicd deploy --cluster laconicd up TEST_AUCTION_ENABLED=true $TEST_TARGET_SO --stack fixturenet-laconicd deploy --cluster laconicd up
@ -22,13 +23,15 @@ $TEST_TARGET_SO --stack fixturenet-laconicd deploy --cluster laconicd ps
laconicd_account_address=$(docker exec laconicd-laconicd-1 laconicd keys list | awk '/- address:/ {print $3}') laconicd_account_address=$(docker exec laconicd-laconicd-1 laconicd keys list | awk '/- address:/ {print $3}')
# Copy over config # Copy over config
docker exec -it laconicd-cli-1 cp config.yml laconic-registry-cli/ docker exec laconicd-cli-1 cp config.yml laconic-registry-cli/
# Wait for the laconid endpoint to come up # Wait for the laconid endpoint to come up
echo "Waiting for the RPC endpoint to come up"
docker exec laconicd-laconicd-1 sh -c "curl --retry 10 --retry-delay 3 --retry-connrefused http://127.0.0.1:9473/api" docker exec laconicd-laconicd-1 sh -c "curl --retry 10 --retry-delay 3 --retry-connrefused http://127.0.0.1:9473/api"
# Run the tests # Run the tests
docker exec -it -e TEST_ACCOUNT=$laconicd_account_address laconicd-cli-1 sh -c 'cd laconic-registry-cli && yarn test' echo "Running the tests"
docker exec -e TEST_ACCOUNT=$laconicd_account_address laconicd-cli-1 sh -c 'cd laconic-registry-cli && yarn test'
# Clean up # Clean up
$TEST_TARGET_SO --stack fixturenet-laconicd deploy --cluster laconicd down --delete-volumes $TEST_TARGET_SO --stack fixturenet-laconicd deploy --cluster laconicd down --delete-volumes