This is an automated email from the ASF dual-hosted git repository.

wusheng pushed a commit to branch e2e-collect-logs-on-failure
in repository https://gitbox.apache.org/repos/asf/skywalking-banyandb.git

commit 0560936f6709ba3a08730a185b8de1cff577d5fc
Author: Wu Sheng <[email protected]>
AuthorDate: Sun Mar 29 17:06:04 2026 +0800

    Collect BanyanDB data and access logs on e2e test failure
    
    Enable ingestion and query access logs across all e2e tests and collect
    BanyanDB data directories on failure for debugging.
    
    Co-Authored-By: Claude Opus 4.6 (1M context) <[email protected]>
---
 .github/workflows/e2e.yml                          |  2 +-
 AGENTS.md                                          | 17 ----------
 CHANGES.md                                         |  1 +
 test/docker/base-compose.yml                       |  6 ++--
 test/e2e-v2/cases/cluster/docker-compose-etcd.yml  |  4 +--
 .../cases/cluster/docker-compose-property.yml      |  4 +--
 test/e2e-v2/cases/cluster/e2e-etcd.yaml            | 18 +++++++++++
 test/e2e-v2/cases/cluster/e2e-property.yaml        | 18 +++++++++++
 .../cases/event/banyandb/docker-compose-etcd.yml   |  2 +-
 .../event/banyandb/docker-compose-property.yml     |  2 +-
 test/e2e-v2/cases/event/banyandb/e2e-etcd.yaml     | 15 +++++++++
 test/e2e-v2/cases/event/banyandb/e2e-property.yaml | 15 +++++++++
 .../lifecycle/data-generator/docker-compose.yml    |  2 +-
 test/e2e-v2/cases/lifecycle/data-generator/gen.sh  |  4 +--
 test/e2e-v2/cases/lifecycle/docker-compose.yml     | 14 ++++-----
 test/e2e-v2/cases/lifecycle/e2e.yaml               | 36 +++++++++++++++++++++-
 .../trace/banyandb/docker-compose-etcd.yml         |  2 +-
 .../trace/banyandb/docker-compose-property.yml     |  2 +-
 .../cases/profiling/trace/banyandb/e2e-etcd.yaml   | 15 +++++++++
 .../profiling/trace/banyandb/e2e-property.yaml     | 15 +++++++++
 .../istio/banyandb/banyandb-deployment.yaml        |  4 +++
 .../rover/process/istio/banyandb/e2e-banyandb.yaml | 16 ++++++++++
 .../cases/storage/banyandb/docker-compose-etcd.yml |  2 +-
 .../storage/banyandb/docker-compose-property.yml   |  2 +-
 test/e2e-v2/cases/storage/banyandb/e2e-etcd.yaml   | 15 +++++++++
 .../cases/storage/banyandb/e2e-property.yaml       | 15 +++++++++
 test/e2e-v2/cases/zipkin/banyandb/e2e.yaml         | 15 +++++++++
 27 files changed, 221 insertions(+), 42 deletions(-)

diff --git a/.github/workflows/e2e.yml b/.github/workflows/e2e.yml
index 168533eed..a771067b6 100644
--- a/.github/workflows/e2e.yml
+++ b/.github/workflows/e2e.yml
@@ -117,7 +117,7 @@ jobs:
         run: |
           bash test/e2e-v2/cases/lifecycle/data-generator/gen.sh
       - name: ${{ matrix.test.name }}
-        uses: 
apache/skywalking-infra-e2e@8c21e43e241a32a54bdf8eeceb9099eb27e5e9b4
+        uses: 
apache/skywalking-infra-e2e@e26033e1faaf865899c486ffe17dabdf17b90aae
         with:
           e2e-file: $GITHUB_WORKSPACE/${{ matrix.test.config }}
       - name: Fix directory permissions
diff --git a/AGENTS.md b/AGENTS.md
index c83511260..93332e260 100644
--- a/AGENTS.md
+++ b/AGENTS.md
@@ -1,20 +1,3 @@
-# Licensed to Apache Software Foundation (ASF) under one or more contributor
-# license agreements. See the NOTICE file distributed with
-# this work for additional information regarding copyright
-# ownership. Apache Software Foundation (ASF) licenses this file to you under
-# the Apache License, Version 2.0 (the "License"); you may
-# not use this file except in compliance with the License.
-# You may obtain a copy of the License at
-#
-#     http://www.apache.org/licenses/LICENSE-2.0
-#
-# Unless required by applicable law or agreed to in writing,
-# software distributed under the License is distributed on an
-# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
-# KIND, either express or implied.  See the License for the
-# specific language governing permissions and limitations
-# under the License.
-
 # AI Assistant Rules for SkyWalking BanyanDB Go Project
 # This file provides coding standards and guidelines for AI assistants
 # Compatible with Claude, Cursor, GitHub Copilot, and other LLMs
diff --git a/CHANGES.md b/CHANGES.md
index f3b2df450..03a0082c5 100644
--- a/CHANGES.md
+++ b/CHANGES.md
@@ -7,6 +7,7 @@ Release Notes.
 ### Features
 
 - Organize access logs under a dedicated "accesslog" subdirectory to improve 
log organization and separation from other application data.
+- Collect BanyanDB data and access logs on e2e test failure for all Docker 
Compose and Kind tests.
 
 ## 0.10.0
 
diff --git a/test/docker/base-compose.yml b/test/docker/base-compose.yml
index d583fc0ff..618960122 100644
--- a/test/docker/base-compose.yml
+++ b/test/docker/base-compose.yml
@@ -19,7 +19,7 @@ services:
       - 17912
       - 2121
       - 6060
-    command: standalone
+    command: standalone --enable-ingestion-access-log 
--enable-query-access-log --access-log-root-path /tmp
     healthcheck:
       test: ["CMD", "./bydbctl", "health", "--config=-", 
"--addr=http://banyandb:17913";]
       interval: 5s
@@ -34,7 +34,7 @@ services:
       - 17912
       - 2121
       - 6060
-    command: liaison --etcd-endpoints=http://etcd:2379
+    command: liaison --etcd-endpoints=http://etcd:2379 
--enable-ingestion-access-log --enable-query-access-log --access-log-root-path 
/tmp
     healthcheck:
       test: ["CMD", "./bydbctl", "health", "--addr=http://liaison:17913";]
       interval: 5s
@@ -48,7 +48,7 @@ services:
       - 2121
       - 6060
       - 17932
-    command: data --etcd-endpoints=http://etcd:2379
+    command: data --etcd-endpoints=http://etcd:2379 
--enable-ingestion-access-log --enable-query-access-log --access-log-root-path 
/tmp
     healthcheck:
       test: ["CMD", "./bydbctl", "health", "--addr=http://127.0.0.1:17913";]
       interval: 5s
diff --git a/test/e2e-v2/cases/cluster/docker-compose-etcd.yml 
b/test/e2e-v2/cases/cluster/docker-compose-etcd.yml
index 935990746..7659dcf3f 100644
--- a/test/e2e-v2/cases/cluster/docker-compose-etcd.yml
+++ b/test/e2e-v2/cases/cluster/docker-compose-etcd.yml
@@ -27,7 +27,7 @@ services:
     extends:
       file: ../../script/docker-compose/base-compose.yml
       service: data
-    command: data --etcd-endpoints=http://etcd:2379 
--schema-registry-mode=etcd --node-discovery-mode=etcd
+    command: data --etcd-endpoints=http://etcd:2379 
--schema-registry-mode=etcd --node-discovery-mode=etcd 
--enable-ingestion-access-log --enable-query-access-log --access-log-root-path 
/tmp
     networks:
       - e2e
 
@@ -35,7 +35,7 @@ services:
     extends:
       file: ../../script/docker-compose/base-compose.yml
       service: liaison
-    command: liaison --etcd-endpoints=http://etcd:2379 
--schema-registry-mode=etcd --node-discovery-mode=etcd
+    command: liaison --etcd-endpoints=http://etcd:2379 
--schema-registry-mode=etcd --node-discovery-mode=etcd 
--enable-ingestion-access-log --enable-query-access-log --access-log-root-path 
/tmp
     networks:
       - e2e
 
diff --git a/test/e2e-v2/cases/cluster/docker-compose-property.yml 
b/test/e2e-v2/cases/cluster/docker-compose-property.yml
index 0fb0fd811..c803d77ed 100644
--- a/test/e2e-v2/cases/cluster/docker-compose-property.yml
+++ b/test/e2e-v2/cases/cluster/docker-compose-property.yml
@@ -27,7 +27,7 @@ services:
     extends:
       file: ../../script/docker-compose/base-compose.yml
       service: data
-    command: data --etcd-endpoints=http://etcd:2379 --node-discovery-mode=etcd
+    command: data --etcd-endpoints=http://etcd:2379 --node-discovery-mode=etcd 
--enable-ingestion-access-log --enable-query-access-log --access-log-root-path 
/tmp
     networks:
       - e2e
 
@@ -35,7 +35,7 @@ services:
     extends:
       file: ../../script/docker-compose/base-compose.yml
       service: liaison
-    command: liaison --etcd-endpoints=http://etcd:2379 
--node-discovery-mode=etcd
+    command: liaison --etcd-endpoints=http://etcd:2379 
--node-discovery-mode=etcd --enable-ingestion-access-log 
--enable-query-access-log --access-log-root-path /tmp
     networks:
       - e2e
 
diff --git a/test/e2e-v2/cases/cluster/e2e-etcd.yaml 
b/test/e2e-v2/cases/cluster/e2e-etcd.yaml
index 9cc96f83f..651133800 100644
--- a/test/e2e-v2/cases/cluster/e2e-etcd.yaml
+++ b/test/e2e-v2/cases/cluster/e2e-etcd.yaml
@@ -48,3 +48,21 @@ verify:
   cases:
   - includes:
     - ../storage/storage-cases.yaml
+
+cleanup:
+  on: always
+  collect:
+    on: failure
+    output-dir: $SW_INFRA_E2E_LOG_DIR/banyandb-data
+    items:
+      - service: data
+        paths:
+          - /tmp/trace/
+          - /tmp/stream/
+          - /tmp/measure/
+          - /tmp/property/
+          - /tmp/schema-property/
+          - /tmp/accesslog/
+      - service: liaison
+        paths:
+          - /tmp/accesslog/
diff --git a/test/e2e-v2/cases/cluster/e2e-property.yaml 
b/test/e2e-v2/cases/cluster/e2e-property.yaml
index ac234b896..cf39f607d 100644
--- a/test/e2e-v2/cases/cluster/e2e-property.yaml
+++ b/test/e2e-v2/cases/cluster/e2e-property.yaml
@@ -48,3 +48,21 @@ verify:
   cases:
   - includes:
     - ../storage/storage-cases.yaml
+
+cleanup:
+  on: always
+  collect:
+    on: failure
+    output-dir: $SW_INFRA_E2E_LOG_DIR/banyandb-data
+    items:
+      - service: data
+        paths:
+          - /tmp/trace/
+          - /tmp/stream/
+          - /tmp/measure/
+          - /tmp/property/
+          - /tmp/schema-property/
+          - /tmp/accesslog/
+      - service: liaison
+        paths:
+          - /tmp/accesslog/
diff --git a/test/e2e-v2/cases/event/banyandb/docker-compose-etcd.yml 
b/test/e2e-v2/cases/event/banyandb/docker-compose-etcd.yml
index 652078e61..83bc65dd1 100644
--- a/test/e2e-v2/cases/event/banyandb/docker-compose-etcd.yml
+++ b/test/e2e-v2/cases/event/banyandb/docker-compose-etcd.yml
@@ -18,7 +18,7 @@ services:
     extends:
       file: ../../../script/docker-compose/base-compose.yml
       service: banyandb
-    command: standalone --schema-registry-mode=etcd --node-discovery-mode=etcd
+    command: standalone --schema-registry-mode=etcd --node-discovery-mode=etcd 
--enable-ingestion-access-log --enable-query-access-log --access-log-root-path 
/tmp
     networks:
       - e2e
 
diff --git a/test/e2e-v2/cases/event/banyandb/docker-compose-property.yml 
b/test/e2e-v2/cases/event/banyandb/docker-compose-property.yml
index 62c9575bf..17e11fafb 100644
--- a/test/e2e-v2/cases/event/banyandb/docker-compose-property.yml
+++ b/test/e2e-v2/cases/event/banyandb/docker-compose-property.yml
@@ -18,7 +18,7 @@ services:
     extends:
       file: ../../../script/docker-compose/base-compose.yml
       service: banyandb
-    command: standalone
+    command: standalone --enable-ingestion-access-log 
--enable-query-access-log --access-log-root-path /tmp
     networks:
       - e2e
 
diff --git a/test/e2e-v2/cases/event/banyandb/e2e-etcd.yaml 
b/test/e2e-v2/cases/event/banyandb/e2e-etcd.yaml
index c44fae9db..4bcad5299 100644
--- a/test/e2e-v2/cases/event/banyandb/e2e-etcd.yaml
+++ b/test/e2e-v2/cases/event/banyandb/e2e-etcd.yaml
@@ -35,3 +35,18 @@ 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/
+          - /tmp/accesslog/
diff --git a/test/e2e-v2/cases/event/banyandb/e2e-property.yaml 
b/test/e2e-v2/cases/event/banyandb/e2e-property.yaml
index 979c98911..0def95169 100644
--- a/test/e2e-v2/cases/event/banyandb/e2e-property.yaml
+++ b/test/e2e-v2/cases/event/banyandb/e2e-property.yaml
@@ -35,3 +35,18 @@ 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/
+          - /tmp/accesslog/
diff --git a/test/e2e-v2/cases/lifecycle/data-generator/docker-compose.yml 
b/test/e2e-v2/cases/lifecycle/data-generator/docker-compose.yml
index b3f6f169e..8832f246b 100644
--- a/test/e2e-v2/cases/lifecycle/data-generator/docker-compose.yml
+++ b/test/e2e-v2/cases/lifecycle/data-generator/docker-compose.yml
@@ -21,7 +21,7 @@ services:
     ports:
       - 17912:17912
       - 17913:17913
-    command: standalone --stream-root-path /tmp/stream-data 
--measure-root-path /tmp/measure-data --measure-metadata-cache-wait-duration 1m 
--stream-metadata-cache-wait-duration 1m --schema-registry-mode=etcd
+    command: standalone --measure-metadata-cache-wait-duration 1m 
--stream-metadata-cache-wait-duration 1m --schema-registry-mode=etcd 
--enable-ingestion-access-log --enable-query-access-log --access-log-root-path 
/tmp
     networks:
       - e2e
   
diff --git a/test/e2e-v2/cases/lifecycle/data-generator/gen.sh 
b/test/e2e-v2/cases/lifecycle/data-generator/gen.sh
index 826ba6a90..fd7f046d9 100644
--- a/test/e2e-v2/cases/lifecycle/data-generator/gen.sh
+++ b/test/e2e-v2/cases/lifecycle/data-generator/gen.sh
@@ -32,12 +32,12 @@ CONTAINER_ID=$(docker compose -f "$COMPOSE_FILE" ps -q 
banyandb)
 echo "⌛ monitoring segment files..."
 found=false
 for i in {1..60}; do
-  if docker exec "$CONTAINER_ID" sh -c '[ -n "$(ls 
/tmp/measure-data/measure/data/metricsDay/seg* 2>/dev/null)" ]'; then
+  if docker exec "$CONTAINER_ID" sh -c '[ -n "$(ls 
/tmp/measure/data/metricsDay/seg* 2>/dev/null)" ]'; then
     echo "✅ found segment files"
     sleep 180
     # copy out data
     docker cp "$CONTAINER_ID":/tmp "$DIR/tmp"
-    docker cp "$CONTAINER_ID":/tmp/measure-data/measure/data/metadata 
"$DIR/tmp"
+    docker cp "$CONTAINER_ID":/tmp/measure/data/metadata "$DIR/tmp"
     found=true
     break
   else
diff --git a/test/e2e-v2/cases/lifecycle/docker-compose.yml 
b/test/e2e-v2/cases/lifecycle/docker-compose.yml
index e603c28f3..546f52681 100644
--- a/test/e2e-v2/cases/lifecycle/docker-compose.yml
+++ b/test/e2e-v2/cases/lifecycle/docker-compose.yml
@@ -26,7 +26,7 @@ services:
       file: ../../script/docker-compose/base-compose.yml
       service: data
     hostname: data-hot1
-    command: data --etcd-endpoints=http://etcd:2379 --node-labels type=hot 
--schema-registry-mode=etcd --node-discovery-mode=etcd
+    command: data --etcd-endpoints=http://etcd:2379 --node-labels type=hot 
--schema-registry-mode=etcd --node-discovery-mode=etcd 
--enable-ingestion-access-log --enable-query-access-log --access-log-root-path 
/tmp
     volumes:
       - ./data-generator/tmp/metadata:/tmp/measure/data/metadata
     networks:
@@ -37,11 +37,11 @@ services:
       file: ../../script/docker-compose/base-compose.yml
       service: data
     hostname: data-hot2
-    command: data --etcd-endpoints=http://etcd:2379 --node-labels type=hot 
--schema-registry-mode=etcd --node-discovery-mode=etcd
+    command: data --etcd-endpoints=http://etcd:2379 --node-labels type=hot 
--schema-registry-mode=etcd --node-discovery-mode=etcd 
--enable-ingestion-access-log --enable-query-access-log --access-log-root-path 
/tmp
     volumes:
-      - ./data-generator/tmp/measure-data/measure:/tmp/measure
-      - ./data-generator/tmp/stream-data/stream:/tmp/stream
-      - ./data-generator/tmp/property/data:/tmp/property
+      - ./data-generator/tmp/measure:/tmp/measure
+      - ./data-generator/tmp/stream:/tmp/stream
+      - ./data-generator/tmp/property:/tmp/property
     networks:
       - e2e
 
@@ -50,7 +50,7 @@ services:
       file: ../../script/docker-compose/base-compose.yml
       service: data
     hostname: data-cold1
-    command: data --etcd-endpoints=http://etcd:2379 --node-labels type=cold 
--schema-registry-mode=etcd --node-discovery-mode=etcd
+    command: data --etcd-endpoints=http://etcd:2379 --node-labels type=cold 
--schema-registry-mode=etcd --node-discovery-mode=etcd 
--enable-ingestion-access-log --enable-query-access-log --access-log-root-path 
/tmp
     volumes:
       - /tmp/measure/data-cold1:/tmp/measure
       - /tmp/stream/data-cold1:/tmp/stream
@@ -62,7 +62,7 @@ services:
     extends:
       file: ../../script/docker-compose/base-compose.yml
       service: liaison
-    command: liaison --etcd-endpoints=http://etcd:2379 --data-node-selector 
type=hot --schema-registry-mode=etcd --node-discovery-mode=etcd
+    command: liaison --etcd-endpoints=http://etcd:2379 --data-node-selector 
type=hot --schema-registry-mode=etcd --node-discovery-mode=etcd 
--enable-ingestion-access-log --enable-query-access-log --access-log-root-path 
/tmp
     networks:
       - e2e
 
diff --git a/test/e2e-v2/cases/lifecycle/e2e.yaml 
b/test/e2e-v2/cases/lifecycle/e2e.yaml
index a219f5513..3d32f33e6 100644
--- a/test/e2e-v2/cases/lifecycle/e2e.yaml
+++ b/test/e2e-v2/cases/lifecycle/e2e.yaml
@@ -59,4 +59,38 @@ 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/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/topN-OP-endpoint.yml
\ No newline at end of file
+      expected: ./expected/topN-OP-endpoint.yml
+
+cleanup:
+  on: always
+  collect:
+    on: failure
+    output-dir: $SW_INFRA_E2E_LOG_DIR/banyandb-data
+    items:
+      - service: data-hot1
+        paths:
+          - /tmp/trace/
+          - /tmp/stream/
+          - /tmp/measure/
+          - /tmp/property/
+          - /tmp/schema-property/
+          - /tmp/accesslog/
+      - service: data-hot2
+        paths:
+          - /tmp/trace/
+          - /tmp/stream/
+          - /tmp/measure/
+          - /tmp/property/
+          - /tmp/schema-property/
+          - /tmp/accesslog/
+      - service: data-cold1
+        paths:
+          - /tmp/trace/
+          - /tmp/stream/
+          - /tmp/measure/
+          - /tmp/property/
+          - /tmp/schema-property/
+          - /tmp/accesslog/
+      - service: liaison
+        paths:
+          - /tmp/accesslog/
\ No newline at end of file
diff --git a/test/e2e-v2/cases/profiling/trace/banyandb/docker-compose-etcd.yml 
b/test/e2e-v2/cases/profiling/trace/banyandb/docker-compose-etcd.yml
index ddfe4fff6..254428c79 100644
--- a/test/e2e-v2/cases/profiling/trace/banyandb/docker-compose-etcd.yml
+++ b/test/e2e-v2/cases/profiling/trace/banyandb/docker-compose-etcd.yml
@@ -20,7 +20,7 @@ services:
     extends:
       file: ../../../../script/docker-compose/base-compose.yml
       service: banyandb
-    command: standalone --schema-registry-mode=etcd --node-discovery-mode=etcd
+    command: standalone --schema-registry-mode=etcd --node-discovery-mode=etcd 
--enable-ingestion-access-log --enable-query-access-log --access-log-root-path 
/tmp
     networks:
       - e2e
 
diff --git 
a/test/e2e-v2/cases/profiling/trace/banyandb/docker-compose-property.yml 
b/test/e2e-v2/cases/profiling/trace/banyandb/docker-compose-property.yml
index e09b185f8..0641acf63 100644
--- a/test/e2e-v2/cases/profiling/trace/banyandb/docker-compose-property.yml
+++ b/test/e2e-v2/cases/profiling/trace/banyandb/docker-compose-property.yml
@@ -20,7 +20,7 @@ services:
     extends:
       file: ../../../../script/docker-compose/base-compose.yml
       service: banyandb
-    command: standalone
+    command: standalone --enable-ingestion-access-log 
--enable-query-access-log --access-log-root-path /tmp
     networks:
       - e2e
 
diff --git a/test/e2e-v2/cases/profiling/trace/banyandb/e2e-etcd.yaml 
b/test/e2e-v2/cases/profiling/trace/banyandb/e2e-etcd.yaml
index 32ab481a9..7d2e854b3 100644
--- a/test/e2e-v2/cases/profiling/trace/banyandb/e2e-etcd.yaml
+++ b/test/e2e-v2/cases/profiling/trace/banyandb/e2e-etcd.yaml
@@ -35,3 +35,18 @@ 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/
+          - /tmp/accesslog/
diff --git a/test/e2e-v2/cases/profiling/trace/banyandb/e2e-property.yaml 
b/test/e2e-v2/cases/profiling/trace/banyandb/e2e-property.yaml
index b92258adf..d172f79d1 100644
--- a/test/e2e-v2/cases/profiling/trace/banyandb/e2e-property.yaml
+++ b/test/e2e-v2/cases/profiling/trace/banyandb/e2e-property.yaml
@@ -35,3 +35,18 @@ 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/
+          - /tmp/accesslog/
diff --git 
a/test/e2e-v2/cases/rover/process/istio/banyandb/banyandb-deployment.yaml 
b/test/e2e-v2/cases/rover/process/istio/banyandb/banyandb-deployment.yaml
index 0c366a8fe..e9d415606 100644
--- a/test/e2e-v2/cases/rover/process/istio/banyandb/banyandb-deployment.yaml
+++ b/test/e2e-v2/cases/rover/process/istio/banyandb/banyandb-deployment.yaml
@@ -36,6 +36,10 @@ spec:
           imagePullPolicy: IfNotPresent
           args:
             - standalone
+            - --enable-ingestion-access-log
+            - --enable-query-access-log
+            - --access-log-root-path
+            - /tmp
           ports:
             - name: grpc
               containerPort: 17912
diff --git a/test/e2e-v2/cases/rover/process/istio/banyandb/e2e-banyandb.yaml 
b/test/e2e-v2/cases/rover/process/istio/banyandb/e2e-banyandb.yaml
index a6eb6f79b..31cc8549d 100644
--- a/test/e2e-v2/cases/rover/process/istio/banyandb/e2e-banyandb.yaml
+++ b/test/e2e-v2/cases/rover/process/istio/banyandb/e2e-banyandb.yaml
@@ -101,3 +101,19 @@ verify:
           swctl --display yaml 
--base-url=http://${service_skywalking_ui_host}:${service_skywalking_ui_80}/graphql
 instance list --service-name=productpage.default | yq e '.[0].name' - \
         )
       expected: expected/process.yml
+
+cleanup:
+  on: always
+  collect:
+    on: failure
+    output-dir: $SW_INFRA_E2E_LOG_DIR/banyandb-data
+    items:
+      - namespace: istio-system
+        label-selector: app=banyandb
+        paths:
+          - /tmp/trace/
+          - /tmp/stream/
+          - /tmp/measure/
+          - /tmp/property/
+          - /tmp/schema-property/
+          - /tmp/accesslog/
diff --git a/test/e2e-v2/cases/storage/banyandb/docker-compose-etcd.yml 
b/test/e2e-v2/cases/storage/banyandb/docker-compose-etcd.yml
index 8b046306f..59b5de63e 100644
--- a/test/e2e-v2/cases/storage/banyandb/docker-compose-etcd.yml
+++ b/test/e2e-v2/cases/storage/banyandb/docker-compose-etcd.yml
@@ -20,7 +20,7 @@ services:
     extends:
       file: ../../../script/docker-compose/base-compose.yml
       service: banyandb
-    command: standalone --schema-registry-mode=etcd --node-discovery-mode=etcd
+    command: standalone --schema-registry-mode=etcd --node-discovery-mode=etcd 
--enable-ingestion-access-log --enable-query-access-log --access-log-root-path 
/tmp
     networks:
       - e2e
 
diff --git a/test/e2e-v2/cases/storage/banyandb/docker-compose-property.yml 
b/test/e2e-v2/cases/storage/banyandb/docker-compose-property.yml
index 8d12c8e83..9d4f9624a 100644
--- a/test/e2e-v2/cases/storage/banyandb/docker-compose-property.yml
+++ b/test/e2e-v2/cases/storage/banyandb/docker-compose-property.yml
@@ -20,7 +20,7 @@ services:
     extends:
       file: ../../../script/docker-compose/base-compose.yml
       service: banyandb
-    command: standalone
+    command: standalone --enable-ingestion-access-log 
--enable-query-access-log --access-log-root-path /tmp
     networks:
       - e2e
 
diff --git a/test/e2e-v2/cases/storage/banyandb/e2e-etcd.yaml 
b/test/e2e-v2/cases/storage/banyandb/e2e-etcd.yaml
index 2b3c65806..76fbefdcc 100644
--- a/test/e2e-v2/cases/storage/banyandb/e2e-etcd.yaml
+++ b/test/e2e-v2/cases/storage/banyandb/e2e-etcd.yaml
@@ -48,3 +48,18 @@ 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/
+          - /tmp/accesslog/
diff --git a/test/e2e-v2/cases/storage/banyandb/e2e-property.yaml 
b/test/e2e-v2/cases/storage/banyandb/e2e-property.yaml
index ec682c7cf..54ab689b9 100644
--- a/test/e2e-v2/cases/storage/banyandb/e2e-property.yaml
+++ b/test/e2e-v2/cases/storage/banyandb/e2e-property.yaml
@@ -48,3 +48,18 @@ 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/
+          - /tmp/accesslog/
diff --git a/test/e2e-v2/cases/zipkin/banyandb/e2e.yaml 
b/test/e2e-v2/cases/zipkin/banyandb/e2e.yaml
index 8749cd70d..a94189ab4 100644
--- a/test/e2e-v2/cases/zipkin/banyandb/e2e.yaml
+++ b/test/e2e-v2/cases/zipkin/banyandb/e2e.yaml
@@ -45,3 +45,18 @@ 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/
+          - /tmp/accesslog/

Reply via email to