From 6b9f7aa2e3c3de6903015a63f8ef9b5ebf58fff3 Mon Sep 17 00:00:00 2001 From: MaximilianSoerenPollak Date: Fri, 23 Jan 2026 12:02:18 +0100 Subject: [PATCH 1/3] Fixing consumer test pipe The pipe into 'tee' has made it so only the exit code of the 'tee' action was recorded / interpreted by github. This meant that any fail inside the consumer test was ignored and it only failed if the 'tee' action would fail. --- .github/workflows/consumer_test.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/consumer_test.yml b/.github/workflows/consumer_test.yml index c190b581..09ab4f0c 100644 --- a/.github/workflows/consumer_test.yml +++ b/.github/workflows/consumer_test.yml @@ -41,6 +41,7 @@ jobs: - name: Run Consumer tests run: | + set -o pipefail .venv_docs/bin/python -m pytest -s -v src/tests/ --repo="$CONSUMER" --junitxml="reports/${{ matrix.consumer }}.xml" | tee "reports/${{ matrix.consumer }}.log" env: From 0aecc41d2629d198d3b17274d683f1bb66e32473 Mon Sep 17 00:00:00 2001 From: MaximilianSoerenPollak Date: Fri, 23 Jan 2026 12:09:24 +0100 Subject: [PATCH 2/3] Fix formatting --- .github/workflows/consumer_test.yml | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/.github/workflows/consumer_test.yml b/.github/workflows/consumer_test.yml index 09ab4f0c..c0df4c6c 100644 --- a/.github/workflows/consumer_test.yml +++ b/.github/workflows/consumer_test.yml @@ -40,10 +40,7 @@ jobs: mkdir -p reports - name: Run Consumer tests - run: | - set -o pipefail - .venv_docs/bin/python -m pytest -s -v src/tests/ --repo="$CONSUMER" --junitxml="reports/${{ matrix.consumer }}.xml" | tee "reports/${{ matrix.consumer }}.log" - + run: "set -o pipefail \n.venv_docs/bin/python -m pytest -s -v src/tests/ --repo=\"$CONSUMER\" --junitxml=\"reports/${{ matrix.consumer }}.xml\" | tee \"reports/${{ matrix.consumer }}.log\"\n#magic___^_^___line\n" env: FORCE_COLOR: "1" TERM: xterm-256color From c975e73479c7825e61f16f4697cfb9a595f16220 Mon Sep 17 00:00:00 2001 From: MaximilianSoerenPollak Date: Fri, 23 Jan 2026 13:15:50 +0100 Subject: [PATCH 3/3] Fix formating --- .github/workflows/consumer_test.yml | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/.github/workflows/consumer_test.yml b/.github/workflows/consumer_test.yml index c0df4c6c..f3f41c99 100644 --- a/.github/workflows/consumer_test.yml +++ b/.github/workflows/consumer_test.yml @@ -39,8 +39,13 @@ jobs: run: | mkdir -p reports + # The pipefail ensures that non 0 exit codes inside the pytest execution get carried into the pipe + # & make the tests red in the end. Without this we only would check the exit code of the 'tee' command. - name: Run Consumer tests - run: "set -o pipefail \n.venv_docs/bin/python -m pytest -s -v src/tests/ --repo=\"$CONSUMER\" --junitxml=\"reports/${{ matrix.consumer }}.xml\" | tee \"reports/${{ matrix.consumer }}.log\"\n#magic___^_^___line\n" + + run: | + set -o pipefail + .venv_docs/bin/python -m pytest -s -v src/tests/ --repo="$CONSUMER" --junitxml="reports/${{ matrix.consumer }}.xml" | tee "reports/${{ matrix.consumer }}.log" env: FORCE_COLOR: "1" TERM: xterm-256color