Browse Source

update test scripts to explicitly define joystream-node image

Mokhtar Naamani 3 years ago
parent
commit
c4a4090d41
2 changed files with 9 additions and 5 deletions
  1. 3 1
      .github/workflows/run-integration-tests.yml
  2. 6 4
      query-node/run-tests.sh

+ 3 - 1
.github/workflows/run-integration-tests.yml

@@ -109,4 +109,6 @@ jobs:
         run: yarn workspace integration-tests build
       # Bring up hydra query-node development instance, then run integration tests
       - name: Execute Tests
-        run: query-node/run-tests.sh
+        run: |
+          export JOYSTREAM_NODE_TAG=latest
+          query-node/run-tests.sh

+ 6 - 4
query-node/run-tests.sh

@@ -8,13 +8,15 @@ set -a
 . ../.env
 set +a
 
+export JOYSTREAM_NODE_TAG=${JOYSTREAM_NODE_TAG:=$(../scripts/runtime-code-shasum.sh)}
+
 function cleanup() {
     # Show tail end of logs for the processor and indexer containers to
     # see any possible errors
-    (echo "\n\n## Processor Logs ##" && docker logs joystream_processor_1 --tail 50) || :
-    (echo "\n\n## Indexer Logs ##" && docker logs joystream_indexer_1 --tail 50) || :
-    (echo "\n\n## Indexer API Gateway Logs ##" && docker logs joystream_hydra-indexer-gateway_1 --tail 50) || :
-    (echo "\n\n## Graphql Server Logs ##" && docker logs joystream_graphql-server_1 --tail 50) || :
+    (echo "\n\n## Processor Logs ##" && docker logs processor --tail 50) || :
+    (echo "\n\n## Indexer Logs ##" && docker logs indexer --tail 50) || :
+    (echo "\n\n## Indexer API Gateway Logs ##" && docker logs hydra-indexer-gateway --tail 50) || :
+    (echo "\n\n## Graphql Server Logs ##" && docker logs graphql-server --tail 50) || :
     docker-compose down -v
 }