This is an automated email from the ASF dual-hosted git repository.
fresh-borzoni pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/fluss-rust.git
The following commit(s) were added to refs/heads/main by this push:
new e6e19af9 capture cluster container logs as CI artifact (#542)
e6e19af9 is described below
commit e6e19af97955f4e2a1954e8792cd9f497ccb7d7d
Author: Kaiqi Dong <[email protected]>
AuthorDate: Sun May 10 21:13:52 2026 +0200
capture cluster container logs as CI artifact (#542)
---
.github/workflows/build_and_test_python.yml | 17 +++++++++++++++++
bindings/python/test/conftest.py | 2 ++
2 files changed, 19 insertions(+)
diff --git a/.github/workflows/build_and_test_python.yml
b/.github/workflows/build_and_test_python.yml
index 93f2eedb..a8d3f05b 100644
--- a/.github/workflows/build_and_test_python.yml
+++ b/.github/workflows/build_and_test_python.yml
@@ -81,3 +81,20 @@ jobs:
env:
RUST_LOG: DEBUG
RUST_BACKTRACE: full
+ FLUSS_SKIP_CLUSTER_TEARDOWN: "1"
+
+ - name: Dump fluss cluster container logs
+ if: always()
+ run: |
+ mkdir -p cluster-logs
+ for c in $(docker ps -a --filter "name=shared-test" --format
'{{.Names}}'); do
+ docker logs "$c" > "cluster-logs/$c.log" 2>&1 || true
+ done
+
+ - uses: actions/upload-artifact@v4
+ if: always()
+ with:
+ name: cluster-logs-${{ matrix.python }}
+ path: cluster-logs/
+ if-no-files-found: ignore
+ retention-days: 3
diff --git a/bindings/python/test/conftest.py b/bindings/python/test/conftest.py
index 52773c9e..8b2bc732 100644
--- a/bindings/python/test/conftest.py
+++ b/bindings/python/test/conftest.py
@@ -109,6 +109,8 @@ def pytest_unconfigure(config):
return
if hasattr(config, "workerinput"):
return
+ if os.environ.get("FLUSS_SKIP_CLUSTER_TEARDOWN"):
+ return
_stop_cluster()