the AOT probe clears the container a dead run left on the shared daemon
ci / the same smoke on an image with no base (push) Successful in 3m58s
ci / lint the workflow and the shell (push) Successful in 8s
ci / build, test, smoke (push) Successful in 2m6s
ci / the operator page in a real browser (push) Successful in 2m21s
ci / build the image and smoke it (push) Successful in 4m13s
ci / the same smoke on an image with no base (push) Successful in 3m58s
ci / lint the workflow and the shell (push) Successful in 8s
ci / build, test, smoke (push) Successful in 2m6s
ci / the operator page in a real browser (push) Successful in 2m21s
ci / build the image and smoke it (push) Successful in 4m13s
Run 2507: the static-link gate went green on x86-64 — `image size: 94.5MB`, `binary bytes: 56351320`, `file says: … x86-64 … static-pie linked, stripped`, `program headers naming an interpreter: 0`, `NEEDED shared objects: 0`, `static: no interpreter, no NEEDED shared object`. The reporting step then died at exit 125 on `Conflict. The container name "/aotprobe" is already in use` — runs 2501 and 2503 aborted before their own teardown and left the container on a daemon every later run shares. The step now removes the name before starting and treats its own teardown as best-effort.
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user