57 - Add temporary CI networking diagnostics
Some checks failed
CI / build (push) Failing after 35s
CI / ci (push) Failing after 1m42s
CI / ci (pull_request) Failing after 1m37s
CI / build (pull_request) Failing after 33s

This commit is contained in:
myrmidex 2026-08-16 09:56:35 +02:00
parent 1f53dc8ca9
commit bb476b36a2

View file

@ -37,6 +37,18 @@ jobs:
- name: Prepare environment
run: cp .env.testing .env
# Temporary: MySQL is unreachable at db:3306 under the prebuilt image,
# though the identical service block worked on catthehacker/ubuntu.
- name: Diagnose service networking
continue-on-error: true
run: |
echo "--- /etc/hosts ---"; cat /etc/hosts || true
echo "--- /etc/resolv.conf ---"; cat /etc/resolv.conf || true
echo "--- php resolves db ---"; php -r 'var_dump(gethostbyname("db"));' || true
echo "--- php connect ---"; php -r '$e=null;$f=@fsockopen("db",3306,$n,$e,3);echo $f?"open\n":"fail: $e\n";' || true
echo "--- hostname/ip ---"; hostname -i 2>/dev/null || true
echo "--- env ---"; env | sort | grep -iE "host|service|port" || true
- name: Wait for MySQL
run: |
for i in $(seq 1 30); do