fix: add DNS diagnostics to npm-install-dashboard CI step

This commit is contained in:
Celes Renata
2026-07-13 06:58:43 +00:00
parent 2fff553518
commit 0d4a812e3d
+17 -1
View File
@@ -191,8 +191,24 @@ steps:
depends_on: [] depends_on: []
npm-install-dashboard: npm-install-dashboard:
image: registry.celestium.life/dockerhub-cache/library/node:24-alpine image: registry.celestium.life/dockerhub-cache/library/node:24-alpine
environment:
- NODE_OPTIONS=--dns-result-order=ipv4first
commands: commands:
- cd frontend && NODE_OPTIONS="--dns-result-order=ipv4first" npm ci - echo "=== DNS diagnostics ==="
- cat /etc/resolv.conf
- echo "=== Testing IPv4 connectivity to registry.npmjs.org ==="
- wget -4 --timeout=10 --spider https://registry.npmjs.org/ 2>&1 || echo "IPv4 wget FAILED"
- echo "=== Testing IPv6 connectivity (expect failure) ==="
- wget -6 --timeout=5 --spider https://registry.npmjs.org/ 2>&1 || echo "IPv6 wget FAILED (expected)"
- echo "=== npm/node versions ==="
- node --version
- npm --version
- echo "=== Setting npm to IPv4-only ==="
- npm config set prefer-ip-address-family 4
- npm config set fetch-timeout 60000
- npm config set loglevel http
- echo "=== Starting npm ci ==="
- cd frontend && npm ci
backend_options: backend_options:
kubernetes: kubernetes:
resources: resources: