diff --git a/.github/workflows/aot-probe.yml b/.github/workflows/aot-probe.yml index 60cea03..2072ba9 100644 --- a/.github/workflows/aot-probe.yml +++ b/.github/workflows/aot-probe.yml @@ -75,6 +75,12 @@ jobs: - name: Start it and record what it says run: | set -uo pipefail + # A run that died before its own teardown leaves the container behind on + # a shared daemon, and the next run then dies on the name rather than + # reporting anything (run 2507, exit 125: Conflict. The container name + # "/aotprobe" is already in use). Clear it first; there is nothing of + # this probe's worth keeping in it. + docker rm -f aotprobe >/dev/null 2>&1 || true docker run -d --name aotprobe -p 18099:8080 \ -e OPENWAF_ADMIN_TOKEN=ci-only-throwaway \ -e ReverseProxy__Clusters__upstream__Destinations__upstream1__Address=http://127.0.0.1:1/ \ @@ -89,4 +95,4 @@ jobs: docker logs aotprobe 2>&1 | { grep -m1 -E 'Hosting failed to start|DllNotFoundException|Dynamic loading not supported' || echo 'no startup failure line found — that would be news worth reading'; } docker logs aotprobe 2>&1 | { grep -c "Query wasn't precompiled and dynamic code isn't supported with NativeAOT" || true; } \ | sed 's/^/queries refused at run time: /' - docker rm -f aotprobe >/dev/null 2>&1 + docker rm -f aotprobe >/dev/null 2>&1 || true