diff --git a/.github/workflows/PBM-FULL.yml b/.github/workflows/PBM-FULL.yml index 1c60a108..0a87b285 100644 --- a/.github/workflows/PBM-FULL.yml +++ b/.github/workflows/PBM-FULL.yml @@ -39,6 +39,10 @@ jobs: run: | docker compose run --rm test pytest -s --junitxml=junit.xml -k ${{ matrix.test }} working-directory: ./pbm-functional/pytest + - name: Print Azurite logs + if: failure() + run: | + docker logs azurite - name: Publish Test Report uses: mikepenz/action-junit-report@v4 if: success() || failure() diff --git a/pbm-functional/pytest/cluster.py b/pbm-functional/pytest/cluster.py index 4e664a29..59486c22 100644 --- a/pbm-functional/pytest/cluster.py +++ b/pbm-functional/pytest/cluster.py @@ -389,7 +389,8 @@ def make_backup(self, type): elif "resync" in start.stdout: Cluster.log("Resync in progress, retrying: " + start.stdout) else: - assert False, "Backup failed" + start.stdout + start.stderr + logs = n.check_output("pbm logs -sD -t0") + assert False, "Backup failed" + start.stdout + start.stderr + '\n' + logs if time.time() > timeout: assert False, "Timeout for backup start exceeded" time.sleep(1) diff --git a/pbm-functional/pytest/docker-compose.yaml b/pbm-functional/pytest/docker-compose.yaml index 42aa0d85..f2269bb9 100644 --- a/pbm-functional/pytest/docker-compose.yaml +++ b/pbm-functional/pytest/docker-compose.yaml @@ -26,7 +26,7 @@ services: - "10000:10000" networks: - test - command: azurite-blob --blobHost 0.0.0.0 + command: azurite-blob --blobHost 0.0.0.0 -d /dev/stdout minio: image: minio/minio