Skip to content

Agent Mesh

e2e: keep the evidence when a mesh test fails

Antonio Ojeadfe22c788c44
diff --git a/.github/workflows/e2e.yml b/.github/workflows/e2e.yml
index 8280be03..dca72e13 100644
--- a/.github/workflows/e2e.yml
+++ b/.github/workflows/e2e.yml
@@ -77,4 +77,8 @@ jobs:
uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1
with:
name: e2e-logs-${{ env.JOB_NAME }}-${{ github.run_id }}
- path: ./_artifacts
+ # tests/e2e/logs is where the bats harnesses dump container logs
+ # for tests that did not complete (see mesh_cleanup_test_resources).
+ path: |
+ ./_artifacts
+ ./tests/e2e/logs
diff --git a/tests/e2e/a2a_mesh.bats b/tests/e2e/a2a_mesh.bats
index f4e17a17..6f17f8fd 100644
--- a/tests/e2e/a2a_mesh.bats
+++ b/tests/e2e/a2a_mesh.bats
@@ -87,6 +87,10 @@ teardown() {
-e SAM_REQUIRED_LABELS="region=eu" \
"${A2A_ECHO_IMAGE}" python3 /workspace/client.py "${mesh_base}" "hello eu"
echo "labelled client output: $output"
+ if [[ "$status" -ne 0 ]]; then
+ echo "node-1 label gate verdicts:"
+ docker logs "${MESH_PREFIX}-node-1" 2>&1 | grep -F '[A2A]' || true
+ fi
[[ "$status" -eq 0 ]]
[[ "$output" == *"agent> echo: hello eu"* ]]