ci: wait for DNS recovery after uninstall on Linux

systemd-resolved needs a moment to restore its stub listener after
the numa drop-in is removed. Without a wait, the runner can't resolve
GitHub's API to report job completion.
This commit is contained in:
Razvan Dimescu
2026-04-16 20:20:53 +03:00
parent 9e56054f37
commit 99af97a67b

View File

@@ -93,6 +93,10 @@ jobs:
sudo ./target/release/numa uninstall sudo ./target/release/numa uninstall
sleep 1 sleep 1
! curl -sf http://127.0.0.1:5380/health 2>/dev/null ! curl -sf http://127.0.0.1:5380/health 2>/dev/null
# Wait for systemd-resolved to restore DNS so the runner can
# phone home to GitHub after the job completes.
sleep 3
dig @127.0.0.1 github.com +short +timeout=5 || dig github.com +short +timeout=5 || true
- name: cleanup - name: cleanup
if: always() if: always()
run: sudo ./target/release/numa uninstall 2>/dev/null || true run: sudo ./target/release/numa uninstall 2>/dev/null || true