From 48bd76cdf923015e1a80a75f5cded4b7c705c24d Mon Sep 17 00:00:00 2001 From: aceforeverd Date: Thu, 21 Sep 2023 18:31:55 +0800 Subject: [PATCH] fix tests --- .github/workflows/docker-compose.yml | 21 ++++++++++++++++----- 1 file changed, 16 insertions(+), 5 deletions(-) diff --git a/.github/workflows/docker-compose.yml b/.github/workflows/docker-compose.yml index 07db64b..821c1cd 100644 --- a/.github/workflows/docker-compose.yml +++ b/.github/workflows/docker-compose.yml @@ -45,16 +45,15 @@ jobs: - name: ns internal log run: | - docker compose --file docker-compose.yml exec openmldb-ns1 cp /opt/openmldb/logs log-ns1/ - docker compose --file docker-compose.yml logs openmldb-ns2 cp /opt/openmldb/logs log-ns2/ + docker compose --file docker-compose.yml exec openmldb-ns1 cp -r /opt/openmldb/logs log-ns1-src/ + docker compose --file docker-compose.yml logs openmldb-ns2 cp -r /opt/openmldb/logs log-ns2-src/ - uses: actions/upload-artifact@v3 with: name: ns-logs path: | - log-ns1/ - log-ns2/ - + log-ns1-src/ + log-ns2-src/ - name: verbose exporter log run: | @@ -89,6 +88,18 @@ jobs: run: | docker compose --file docker-compose.yml --env-file prod.env up -d grafana + - name: ns internal log + run: | + docker compose --file docker-compose.yml exec openmldb-ns1 cp -r /opt/openmldb/logs log-ns1-prod/ + docker compose --file docker-compose.yml logs openmldb-ns2 cp -r /opt/openmldb/logs log-ns2-prod/ + + - uses: actions/upload-artifact@v3 + with: + name: ns-logs + path: | + log-ns1-prod/ + log-ns2-prod/ + - name: run tests run: | docker compose --file docker-compose.yml --env-file prod.env up --no-recreate --exit-code-from testing testing