You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@skywalking.apache.org by wu...@apache.org on 2026/03/27 07:03:56 UTC
(skywalking) branch fix/e2e-banyandb-data-collection created (now ed4dc9500e)
This is an automated email from the ASF dual-hosted git repository.
wusheng pushed a change to branch fix/e2e-banyandb-data-collection
in repository https://gitbox.apache.org/repos/asf/skywalking.git
at ed4dc9500e Collect BanyanDB data files on e2e test failure
This branch includes the following new commits:
new ed4dc9500e Collect BanyanDB data files on e2e test failure
The 1 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails. The revisions
listed as "add" were already present in the repository and have only
been added to this reference.
(skywalking) 01/01: Collect BanyanDB data files on e2e test failure
Posted by wu...@apache.org.
This is an automated email from the ASF dual-hosted git repository.
wusheng pushed a commit to branch fix/e2e-banyandb-data-collection
in repository https://gitbox.apache.org/repos/asf/skywalking.git
commit ed4dc9500e190fe964d4ff7098c490326d511ff2
Author: Wu Sheng <wu...@foxmail.com>
AuthorDate: Fri Mar 27 15:03:43 2026 +0800
Collect BanyanDB data files on e2e test failure
- Update infra-e2e to 36221fa (adds collect-on-failure feature)
- Add cleanup.collect to all 18 BanyanDB e2e YAMLs
- Compose tests: collect by service name
- Kind tests: collect by label-selector app=banyandb
- Data dirs: trace, stream, measure, property, schema-property
- Output to $SW_INFRA_E2E_LOG_DIR/banyandb-data (included in existing upload)
TESTING: intentional failure in storage/banyandb to verify data collection
---
.github/workflows/skywalking.yaml | 10 ++++-----
test/e2e-v2/cases/alarm/banyandb/e2e.yaml | 14 ++++++++++++
test/e2e-v2/cases/banyandb/e2e.yaml | 14 ++++++++++++
test/e2e-v2/cases/baseline/banyandb/e2e.yaml | 14 ++++++++++++
test/e2e-v2/cases/cluster/zk/banyandb/e2e.yaml | 14 ++++++++++++
test/e2e-v2/cases/event/banyandb/e2e.yaml | 14 ++++++++++++
test/e2e-v2/cases/log/banyandb/e2e.yaml | 15 ++++++++++++-
test/e2e-v2/cases/menu/banyandb/e2e.yaml | 15 ++++++++++++-
.../profiling/async-profiler/banyandb/e2e.yaml | 14 ++++++++++++
.../profiling/ebpf/access_log/banyandb/e2e.yaml | 14 ++++++++++++
.../profiling/ebpf/continuous/banyandb/e2e.yaml | 14 ++++++++++++
.../cases/profiling/ebpf/network/banyandb/e2e.yaml | 15 ++++++++++++-
.../cases/profiling/ebpf/oncpu/banyandb/e2e.yaml | 14 ++++++++++++
.../e2e-v2/cases/profiling/pprof/banyandb/e2e.yaml | 14 ++++++++++++
.../e2e-v2/cases/profiling/trace/banyandb/e2e.yaml | 14 ++++++++++++
test/e2e-v2/cases/storage/banyandb/e2e.yaml | 18 +++++++++++++++-
test/e2e-v2/cases/storage/banyandb/stages/e2e.yaml | 15 ++++++++++++-
test/e2e-v2/cases/storage/banyandb/tls/e2e.yaml | 14 ++++++++++++
.../expected/intentional-fail.yml} | 25 +++-------------------
test/e2e-v2/cases/zipkin/banyandb/e2e.yaml | 14 ++++++++++++
20 files changed, 263 insertions(+), 32 deletions(-)
diff --git a/.github/workflows/skywalking.yaml b/.github/workflows/skywalking.yaml
index 3f4340ba33..53d0d4958a 100644
--- a/.github/workflows/skywalking.yaml
+++ b/.github/workflows/skywalking.yaml
@@ -758,7 +758,7 @@ jobs:
if: matrix.test.docker != null
run: docker build -t ${{ matrix.test.docker.name }} -f ${{ matrix.test.docker.base }}/${{ matrix.test.docker.file }} ${{ matrix.test.docker.base }}
- name: ${{ matrix.test.name }}
- uses: apache/skywalking-infra-e2e@8c21e43e241a32a54bdf8eeceb9099eb27e5e9b4
+ uses: apache/skywalking-infra-e2e@36221fa3e395c63fa68f1fc58efdd2c5e5d10c0f
with:
e2e-file: $GITHUB_WORKSPACE/${{ matrix.test.config }}
- if: ${{ failure() }}
@@ -831,7 +831,7 @@ jobs:
username: ${{ github.repository_owner }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: ${{ matrix.test.name }}
- uses: apache/skywalking-infra-e2e@8c21e43e241a32a54bdf8eeceb9099eb27e5e9b4
+ uses: apache/skywalking-infra-e2e@36221fa3e395c63fa68f1fc58efdd2c5e5d10c0f
env:
ISTIO_VERSION: ${{ matrix.versions.istio }}
KUBERNETES_VERSION: ${{ matrix.versions.kubernetes }}
@@ -903,7 +903,7 @@ jobs:
username: ${{ github.repository_owner }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: ${{ matrix.test.name }}
- uses: apache/skywalking-infra-e2e@8c21e43e241a32a54bdf8eeceb9099eb27e5e9b4
+ uses: apache/skywalking-infra-e2e@36221fa3e395c63fa68f1fc58efdd2c5e5d10c0f
env:
ISTIO_VERSION: ${{ matrix.versions.istio }}
KUBERNETES_VERSION: ${{ matrix.versions.kubernetes }}
@@ -967,7 +967,7 @@ jobs:
shell: bash
run: ./mvnw -B -q -f test/e2e-v2/java-test-service/pom.xml clean package
- name: Java version ${{ matrix.java-version }}
- uses: apache/skywalking-infra-e2e@8c21e43e241a32a54bdf8eeceb9099eb27e5e9b4
+ uses: apache/skywalking-infra-e2e@36221fa3e395c63fa68f1fc58efdd2c5e5d10c0f
env:
SW_AGENT_JDK_VERSION: ${{ matrix.java-version }}
with:
@@ -1063,7 +1063,7 @@ jobs:
fi
docker compose -f ${BANYANDB_DATA_GENERATE_ROOT}/docker-compose.yml down -v
- name: ${{ matrix.test.name }}
- uses: apache/skywalking-infra-e2e@8c21e43e241a32a54bdf8eeceb9099eb27e5e9b4
+ uses: apache/skywalking-infra-e2e@36221fa3e395c63fa68f1fc58efdd2c5e5d10c0f
with:
e2e-file: $GITHUB_WORKSPACE/${{ matrix.test.config }}
- if: ${{ failure() }}
diff --git a/test/e2e-v2/cases/alarm/banyandb/e2e.yaml b/test/e2e-v2/cases/alarm/banyandb/e2e.yaml
index 338976fb3f..043786a77b 100644
--- a/test/e2e-v2/cases/alarm/banyandb/e2e.yaml
+++ b/test/e2e-v2/cases/alarm/banyandb/e2e.yaml
@@ -45,3 +45,17 @@ verify:
cases:
- includes:
- ../alarm-cases.yaml
+
+cleanup:
+ on: always
+ collect:
+ on: failure
+ output-dir: $SW_INFRA_E2E_LOG_DIR/banyandb-data
+ items:
+ - service: banyandb
+ paths:
+ - /tmp/trace/
+ - /tmp/stream/
+ - /tmp/measure/
+ - /tmp/property/
+ - /tmp/schema-property/
diff --git a/test/e2e-v2/cases/banyandb/e2e.yaml b/test/e2e-v2/cases/banyandb/e2e.yaml
index ce742441ce..b94b965fd4 100644
--- a/test/e2e-v2/cases/banyandb/e2e.yaml
+++ b/test/e2e-v2/cases/banyandb/e2e.yaml
@@ -37,3 +37,17 @@ verify:
- ./banyandb-cases.yaml
+
+cleanup:
+ on: always
+ collect:
+ on: failure
+ output-dir: $SW_INFRA_E2E_LOG_DIR/banyandb-data
+ items:
+ - service: banyandb
+ paths:
+ - /tmp/trace/
+ - /tmp/stream/
+ - /tmp/measure/
+ - /tmp/property/
+ - /tmp/schema-property/
diff --git a/test/e2e-v2/cases/baseline/banyandb/e2e.yaml b/test/e2e-v2/cases/baseline/banyandb/e2e.yaml
index da9bbc39e2..cb476c2cf7 100644
--- a/test/e2e-v2/cases/baseline/banyandb/e2e.yaml
+++ b/test/e2e-v2/cases/baseline/banyandb/e2e.yaml
@@ -45,3 +45,17 @@ verify:
cases:
- includes:
- ../alarm-cases.yaml
+
+cleanup:
+ on: always
+ collect:
+ on: failure
+ output-dir: $SW_INFRA_E2E_LOG_DIR/banyandb-data
+ items:
+ - service: banyandb
+ paths:
+ - /tmp/trace/
+ - /tmp/stream/
+ - /tmp/measure/
+ - /tmp/property/
+ - /tmp/schema-property/
diff --git a/test/e2e-v2/cases/cluster/zk/banyandb/e2e.yaml b/test/e2e-v2/cases/cluster/zk/banyandb/e2e.yaml
index 4ac22598c7..1468382e81 100644
--- a/test/e2e-v2/cases/cluster/zk/banyandb/e2e.yaml
+++ b/test/e2e-v2/cases/cluster/zk/banyandb/e2e.yaml
@@ -38,3 +38,17 @@ verify:
cases:
- includes:
- ../../cluster-cases.yaml
+
+cleanup:
+ on: always
+ collect:
+ on: failure
+ output-dir: $SW_INFRA_E2E_LOG_DIR/banyandb-data
+ items:
+ - service: banyandb
+ paths:
+ - /tmp/trace/
+ - /tmp/stream/
+ - /tmp/measure/
+ - /tmp/property/
+ - /tmp/schema-property/
diff --git a/test/e2e-v2/cases/event/banyandb/e2e.yaml b/test/e2e-v2/cases/event/banyandb/e2e.yaml
index c957da2316..4c168ed64e 100644
--- a/test/e2e-v2/cases/event/banyandb/e2e.yaml
+++ b/test/e2e-v2/cases/event/banyandb/e2e.yaml
@@ -35,3 +35,17 @@ verify:
cases:
- includes:
- ../event-cases.yaml
+
+cleanup:
+ on: always
+ collect:
+ on: failure
+ output-dir: $SW_INFRA_E2E_LOG_DIR/banyandb-data
+ items:
+ - service: banyandb
+ paths:
+ - /tmp/trace/
+ - /tmp/stream/
+ - /tmp/measure/
+ - /tmp/property/
+ - /tmp/schema-property/
diff --git a/test/e2e-v2/cases/log/banyandb/e2e.yaml b/test/e2e-v2/cases/log/banyandb/e2e.yaml
index bc8437238c..8c56903686 100644
--- a/test/e2e-v2/cases/log/banyandb/e2e.yaml
+++ b/test/e2e-v2/cases/log/banyandb/e2e.yaml
@@ -56,4 +56,17 @@ verify:
swctl --display yaml --base-url=http://${oap_host}:${oap_12800}/graphql logs list --service-name=e2e-service-provider --tags level=INFO --trace-id=$( \
swctl --display yaml --base-url=http://${oap_host}:${oap_12800}/graphql tv2 ls | yq e '.traces | map(select(.spans[0].endpointname == "GET:/logs/trigger")) | .[0].spans[0].traceid' -
)
- expected: ../expected/logs.yml
\ No newline at end of file
+ expected: ../expected/logs.yml
+cleanup:
+ on: always
+ collect:
+ on: failure
+ output-dir: $SW_INFRA_E2E_LOG_DIR/banyandb-data
+ items:
+ - service: banyandb
+ paths:
+ - /tmp/trace/
+ - /tmp/stream/
+ - /tmp/measure/
+ - /tmp/property/
+ - /tmp/schema-property/
diff --git a/test/e2e-v2/cases/menu/banyandb/e2e.yaml b/test/e2e-v2/cases/menu/banyandb/e2e.yaml
index 74b8b82d44..236dd1a7cb 100644
--- a/test/e2e-v2/cases/menu/banyandb/e2e.yaml
+++ b/test/e2e-v2/cases/menu/banyandb/e2e.yaml
@@ -44,4 +44,17 @@ verify:
interval: 10s
cases:
- includes:
- - ../menu-cases.yaml
\ No newline at end of file
+ - ../menu-cases.yaml
+cleanup:
+ on: always
+ collect:
+ on: failure
+ output-dir: $SW_INFRA_E2E_LOG_DIR/banyandb-data
+ items:
+ - service: banyandb
+ paths:
+ - /tmp/trace/
+ - /tmp/stream/
+ - /tmp/measure/
+ - /tmp/property/
+ - /tmp/schema-property/
diff --git a/test/e2e-v2/cases/profiling/async-profiler/banyandb/e2e.yaml b/test/e2e-v2/cases/profiling/async-profiler/banyandb/e2e.yaml
index 956e87c282..9495e3306c 100644
--- a/test/e2e-v2/cases/profiling/async-profiler/banyandb/e2e.yaml
+++ b/test/e2e-v2/cases/profiling/async-profiler/banyandb/e2e.yaml
@@ -35,3 +35,17 @@ verify:
cases:
- includes:
- ../profiling-cases.yaml
+
+cleanup:
+ on: always
+ collect:
+ on: failure
+ output-dir: $SW_INFRA_E2E_LOG_DIR/banyandb-data
+ items:
+ - service: banyandb
+ paths:
+ - /tmp/trace/
+ - /tmp/stream/
+ - /tmp/measure/
+ - /tmp/property/
+ - /tmp/schema-property/
diff --git a/test/e2e-v2/cases/profiling/ebpf/access_log/banyandb/e2e.yaml b/test/e2e-v2/cases/profiling/ebpf/access_log/banyandb/e2e.yaml
index a4d7e8dee9..2b060d6e59 100644
--- a/test/e2e-v2/cases/profiling/ebpf/access_log/banyandb/e2e.yaml
+++ b/test/e2e-v2/cases/profiling/ebpf/access_log/banyandb/e2e.yaml
@@ -86,3 +86,17 @@ verify:
cases:
- includes:
- ../accesslog-cases.yaml
+
+cleanup:
+ on: always
+ collect:
+ on: failure
+ output-dir: $SW_INFRA_E2E_LOG_DIR/banyandb-data
+ items:
+ - label-selector: app=banyandb
+ paths:
+ - /tmp/trace/
+ - /tmp/stream/
+ - /tmp/measure/
+ - /tmp/property/
+ - /tmp/schema-property/
diff --git a/test/e2e-v2/cases/profiling/ebpf/continuous/banyandb/e2e.yaml b/test/e2e-v2/cases/profiling/ebpf/continuous/banyandb/e2e.yaml
index 8742c915e4..2e405ca75f 100644
--- a/test/e2e-v2/cases/profiling/ebpf/continuous/banyandb/e2e.yaml
+++ b/test/e2e-v2/cases/profiling/ebpf/continuous/banyandb/e2e.yaml
@@ -84,3 +84,17 @@ verify:
cases:
- includes:
- ../profiling-cases.yaml
+
+cleanup:
+ on: always
+ collect:
+ on: failure
+ output-dir: $SW_INFRA_E2E_LOG_DIR/banyandb-data
+ items:
+ - label-selector: app=banyandb
+ paths:
+ - /tmp/trace/
+ - /tmp/stream/
+ - /tmp/measure/
+ - /tmp/property/
+ - /tmp/schema-property/
diff --git a/test/e2e-v2/cases/profiling/ebpf/network/banyandb/e2e.yaml b/test/e2e-v2/cases/profiling/ebpf/network/banyandb/e2e.yaml
index 9f9befaa8e..6f5e701414 100644
--- a/test/e2e-v2/cases/profiling/ebpf/network/banyandb/e2e.yaml
+++ b/test/e2e-v2/cases/profiling/ebpf/network/banyandb/e2e.yaml
@@ -93,4 +93,17 @@ verify:
interval: 10s
cases:
- includes:
- - ../network-cases.yaml
\ No newline at end of file
+ - ../network-cases.yaml
+cleanup:
+ on: always
+ collect:
+ on: failure
+ output-dir: $SW_INFRA_E2E_LOG_DIR/banyandb-data
+ items:
+ - label-selector: app=banyandb
+ paths:
+ - /tmp/trace/
+ - /tmp/stream/
+ - /tmp/measure/
+ - /tmp/property/
+ - /tmp/schema-property/
diff --git a/test/e2e-v2/cases/profiling/ebpf/oncpu/banyandb/e2e.yaml b/test/e2e-v2/cases/profiling/ebpf/oncpu/banyandb/e2e.yaml
index 5ab6c5d9f0..250e0558d5 100644
--- a/test/e2e-v2/cases/profiling/ebpf/oncpu/banyandb/e2e.yaml
+++ b/test/e2e-v2/cases/profiling/ebpf/oncpu/banyandb/e2e.yaml
@@ -84,3 +84,17 @@ verify:
cases:
- includes:
- ../profiling-cases.yaml
+
+cleanup:
+ on: always
+ collect:
+ on: failure
+ output-dir: $SW_INFRA_E2E_LOG_DIR/banyandb-data
+ items:
+ - label-selector: app=banyandb
+ paths:
+ - /tmp/trace/
+ - /tmp/stream/
+ - /tmp/measure/
+ - /tmp/property/
+ - /tmp/schema-property/
diff --git a/test/e2e-v2/cases/profiling/pprof/banyandb/e2e.yaml b/test/e2e-v2/cases/profiling/pprof/banyandb/e2e.yaml
index 956e87c282..9495e3306c 100644
--- a/test/e2e-v2/cases/profiling/pprof/banyandb/e2e.yaml
+++ b/test/e2e-v2/cases/profiling/pprof/banyandb/e2e.yaml
@@ -35,3 +35,17 @@ verify:
cases:
- includes:
- ../profiling-cases.yaml
+
+cleanup:
+ on: always
+ collect:
+ on: failure
+ output-dir: $SW_INFRA_E2E_LOG_DIR/banyandb-data
+ items:
+ - service: banyandb
+ paths:
+ - /tmp/trace/
+ - /tmp/stream/
+ - /tmp/measure/
+ - /tmp/property/
+ - /tmp/schema-property/
diff --git a/test/e2e-v2/cases/profiling/trace/banyandb/e2e.yaml b/test/e2e-v2/cases/profiling/trace/banyandb/e2e.yaml
index 76ded1735d..0f108f149b 100644
--- a/test/e2e-v2/cases/profiling/trace/banyandb/e2e.yaml
+++ b/test/e2e-v2/cases/profiling/trace/banyandb/e2e.yaml
@@ -36,3 +36,17 @@ verify:
- includes:
- ../profiling-cases-trace-v2.yaml
- ../profiling-cases.yaml
+
+cleanup:
+ on: always
+ collect:
+ on: failure
+ output-dir: $SW_INFRA_E2E_LOG_DIR/banyandb-data
+ items:
+ - service: banyandb
+ paths:
+ - /tmp/trace/
+ - /tmp/stream/
+ - /tmp/measure/
+ - /tmp/property/
+ - /tmp/schema-property/
diff --git a/test/e2e-v2/cases/storage/banyandb/e2e.yaml b/test/e2e-v2/cases/storage/banyandb/e2e.yaml
index a6d4d8489b..2f59496910 100644
--- a/test/e2e-v2/cases/storage/banyandb/e2e.yaml
+++ b/test/e2e-v2/cases/storage/banyandb/e2e.yaml
@@ -46,6 +46,9 @@ verify:
# the interval between two retries, in millisecond.
interval: 10s
cases:
+ # INTENTIONAL FAILURE: verify BanyanDB data collection on failure
+ - query: echo "INTENTIONAL_FAIL_FOR_DATA_COLLECTION_TEST"
+ expected: ../expected/intentional-fail.yml
- includes:
- ../storage-cases.yaml
- query: swctl --display yaml --base-url=http://${oap_host}:${oap_12800}/graphql metrics exec --expression="top_n(service_resp_time,3,des,attr0='GENERAL',attr1!='Not_exist')/100"
@@ -62,4 +65,17 @@ verify:
- query: swctl --display yaml --base-url=http://${oap_host}:${oap_12800}/graphql tv2 ls --tags http.method=POST
expected: ../expected/traces-v2-list.yml
- query: swctl --display yaml --base-url=http://${oap_host}:${oap_12800}/graphql tv2 ls --tags http.method=POST,http.status_code=201
- expected: ../expected/empty-traces-v2-list.yml
\ No newline at end of file
+ expected: ../expected/empty-traces-v2-list.yml
+cleanup:
+ on: always
+ collect:
+ on: failure
+ output-dir: $SW_INFRA_E2E_LOG_DIR/banyandb-data
+ items:
+ - service: banyandb
+ paths:
+ - /tmp/trace/
+ - /tmp/stream/
+ - /tmp/measure/
+ - /tmp/property/
+ - /tmp/schema-property/
diff --git a/test/e2e-v2/cases/storage/banyandb/stages/e2e.yaml b/test/e2e-v2/cases/storage/banyandb/stages/e2e.yaml
index 22d2548b01..25fc0482fd 100644
--- a/test/e2e-v2/cases/storage/banyandb/stages/e2e.yaml
+++ b/test/e2e-v2/cases/storage/banyandb/stages/e2e.yaml
@@ -67,4 +67,17 @@ verify:
- query: swctl --display yaml --base-url=http://${oap_host}:${oap_12800}/graphql metrics exec --expression="top_n(service_resp_time,3,des,attr0='GENERAL')" --start="-96h" --end="-48h" --cold=true --step=DAY
expected: ../../expected/cold/topN-OP-service.yml
- query: swctl --display yaml --base-url=http://${oap_host}:${oap_12800}/graphql metrics exec --expression="top_n(endpoint_resp_time,3,des)" --start="-96h" --end="-48h" --cold=true --step=DAY
- expected: ../../expected/cold/topN-OP-endpoint.yml
\ No newline at end of file
+ expected: ../../expected/cold/topN-OP-endpoint.yml
+cleanup:
+ on: always
+ collect:
+ on: failure
+ output-dir: $SW_INFRA_E2E_LOG_DIR/banyandb-data
+ items:
+ - service: banyandb
+ paths:
+ - /tmp/trace/
+ - /tmp/stream/
+ - /tmp/measure/
+ - /tmp/property/
+ - /tmp/schema-property/
diff --git a/test/e2e-v2/cases/storage/banyandb/tls/e2e.yaml b/test/e2e-v2/cases/storage/banyandb/tls/e2e.yaml
index c93bbedceb..5c2eee5728 100644
--- a/test/e2e-v2/cases/storage/banyandb/tls/e2e.yaml
+++ b/test/e2e-v2/cases/storage/banyandb/tls/e2e.yaml
@@ -48,3 +48,17 @@ verify:
cases:
- includes:
- ../../storage-cases.yaml
+
+cleanup:
+ on: always
+ collect:
+ on: failure
+ output-dir: $SW_INFRA_E2E_LOG_DIR/banyandb-data
+ items:
+ - service: banyandb
+ paths:
+ - /tmp/trace/
+ - /tmp/stream/
+ - /tmp/measure/
+ - /tmp/property/
+ - /tmp/schema-property/
diff --git a/test/e2e-v2/cases/event/banyandb/e2e.yaml b/test/e2e-v2/cases/storage/expected/intentional-fail.yml
similarity index 56%
copy from test/e2e-v2/cases/event/banyandb/e2e.yaml
copy to test/e2e-v2/cases/storage/expected/intentional-fail.yml
index c957da2316..5b0d2772b5 100644
--- a/test/e2e-v2/cases/event/banyandb/e2e.yaml
+++ b/test/e2e-v2/cases/storage/expected/intentional-fail.yml
@@ -13,25 +13,6 @@
# See the License for the specific language governing permissions and
# limitations under the License.
-# This file is used to show how to write configuration files and can be used to test.
-
-setup:
- env: compose
- file: docker-compose.yml
- timeout: 20m
- init-system-environment: ../../../script/env
- steps:
- - name: set PATH
- command: export PATH=/tmp/skywalking-infra-e2e/bin:$PATH
- - name: install yq
- command: bash test/e2e-v2/script/prepare/setup-e2e-shell/install.sh yq
- - name: install swctl
- command: bash test/e2e-v2/script/prepare/setup-e2e-shell/install.sh swctl
-
-verify:
- retry:
- count: 20
- interval: 3s
- cases:
- - includes:
- - ../event-cases.yaml
+# This file intentionally does not match the query output.
+# Used to verify BanyanDB data collection on e2e failure.
+this_will_never_match: true
diff --git a/test/e2e-v2/cases/zipkin/banyandb/e2e.yaml b/test/e2e-v2/cases/zipkin/banyandb/e2e.yaml
index b77ab08e18..2e2f9dad8b 100644
--- a/test/e2e-v2/cases/zipkin/banyandb/e2e.yaml
+++ b/test/e2e-v2/cases/zipkin/banyandb/e2e.yaml
@@ -45,3 +45,17 @@ verify:
cases:
- includes:
- ../zipkin-cases.yaml
+
+cleanup:
+ on: always
+ collect:
+ on: failure
+ output-dir: $SW_INFRA_E2E_LOG_DIR/banyandb-data
+ items:
+ - service: banyandb
+ paths:
+ - /tmp/trace/
+ - /tmp/stream/
+ - /tmp/measure/
+ - /tmp/property/
+ - /tmp/schema-property/