Skip to content

eBPF-based security platform

testing: leave t9107 out of a run without a keepalive backend

John Fastabend2ad009af684d
diff --git a/.agents/skills/testing/SKILL.md b/.agents/skills/testing/SKILL.md
index be4c2f5e..58fa2564 100644
--- a/.agents/skills/testing/SKILL.md
+++ b/.agents/skills/testing/SKILL.md
@@ -26,7 +26,7 @@ make -C testing help
The end2end tier runs t9107 against the keepalive backend that
`BACKEND_DIR` names, a checkout or a git URL, `../backend` by default;
-without one t9107 skips and t9109 to t9111 do not run, so say so when
+without one none of t9107 and t9109 to t9111 runs, so say so when
reporting the tier. The tier boots two VMs at once, each with its own
swtpm: node A runs the tests, node B (`make -C testing vm-node-end2end`,
node mode of `vm/run.sh`) takes `role=core` from `config-core` and waits.
diff --git a/Documentation/contribute/testing/testing.rst b/Documentation/contribute/testing/testing.rst
index f0162aed..378edbc8 100644
--- a/Documentation/contribute/testing/testing.rst
+++ b/Documentation/contribute/testing/testing.rst
@@ -662,7 +662,12 @@ ClickHouse, both through QEMU's address for the host. After node A,
``host.sh`` runs ``t9109``, ``t9110`` and ``t9111`` against the same
backend, see :ref:`testing-pipeline`, :ref:`testing-history` and
:ref:`testing-walk`. Without ``BACKEND_DIR`` and without ``../backend``,
-``t9107`` skips and ``t9109`` to ``t9111`` do not run:
+none of ``t9107`` and ``t9109`` to ``t9111`` runs: ``host.sh`` writes the
+example tree's digest to ``build/test-vm/end2end/backend-tree.digest``
+only when it started the backend, and without it
+:src:`testing/run-target-tests.sh` leaves ``t9107`` out with
+``not run without a keepalive backend`` rather than failing the family
+on its skip:
.. code-block:: console
diff --git a/testing/end2end/host.sh b/testing/end2end/host.sh
index 5bc7d88b..d6e49012 100755
--- a/testing/end2end/host.sh
+++ b/testing/end2end/host.sh
@@ -306,7 +306,7 @@ if backend_find; then
die "the tree ingest job did not load the example tree"
}
else
- say "no keepalive backend at ../backend and no BACKEND_DIR: t9107 skips"
+ say "no keepalive backend at ../backend and no BACKEND_DIR: t9107 and t9109 to t9111 do not run"
fi
say "node A, in $VM_NAME-end2end, and node B, in $VM_NAME-end2end-b"
diff --git a/testing/run-target-tests.sh b/testing/run-target-tests.sh
index fbd54a67..60ad61ef 100755
--- a/testing/run-target-tests.sh
+++ b/testing/run-target-tests.sh
@@ -77,6 +77,13 @@ for t in "$dir"/t[0-9]1[0-9][0-9]-*.sh; do
case "$t" in
end2end/t9109-pipeline.sh | end2end/t9110-keepalive-history.sh) continue ;;
end2end/t9111-pipeline-segments.sh) continue ;;
+ end2end/t9107-keepalive-backend.sh)
+ # host.sh records the example tree only when it started a
+ # backend; without one it leaves t9107 out, as t9109 to t9111.
+ if [ ! -s ../build/test-vm/end2end/backend-tree.digest ]; then
+ printf 'not run without a keepalive backend: %s\n' "$t"
+ continue
+ fi ;;
esac
log="$SHIRUDO_TEST_RESULTS/$(basename "$t").log"
rc=0