Check public ingress before browser tests and use isolated networking
Advertiser console CI and test deployment / build-deploy (push) Failing after 43s

This commit is contained in:
2026-09-16 15:19:06 +08:00
parent 808ce95761
commit 389be02494
+8 -2
View File
@@ -40,8 +40,14 @@ if ! docker exec "$candidate" wget -q -O /dev/null "http://host.docker.internal:
rollback
exit 1
fi
# Browser tests run on this runner against the actual deployed public URL.
if ! docker run --rm --network host --ipc=host -e BASE_URL "adcloud-advertiser:$SOURCE_REVISION-tests"; then
# Check public ingress from the CI container before opening the browser.
if ! curl --fail --silent --show-error --connect-timeout 10 --max-time 20 "${BASE_URL%/}/healthz"; then
echo 'Public frontend ingress is unreachable; check TCP 18081 security group / reverse proxy.'
rollback
exit 1
fi
# Use the runner's normal bridge network, like the successful public API probe.
if ! docker run --rm --shm-size=256m -e BASE_URL "adcloud-advertiser:$SOURCE_REVISION-tests"; then
echo 'Deployed browser checks failed; restoring previous frontend'
rollback
exit 1