Skip to content

Commit 696f446

Browse files
committed
Merge branch 'per-15315/vitest-event-based-tests' into per-15317/comprehensive-sdk-tests
* per-15315/vitest-event-based-tests: ci: pin PDP connection to IPv4 (127.0.0.1) in the backend test run
2 parents 9e2ccbd + b8c69b1 commit 696f446

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

.github/workflows/ci.yaml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ jobs:
124124
if: env.RUN_BACKEND == 'true'
125125
run: |
126126
for i in $(seq 1 60); do
127-
if curl -sf http://localhost:7766/healthy >/dev/null; then
127+
if curl -sf http://127.0.0.1:7766/healthy >/dev/null; then
128128
echo "PDP ready after ${i} attempt(s)"
129129
exit 0
130130
fi
@@ -140,6 +140,10 @@ jobs:
140140
PDP_API_KEY: ${{ env.ENV_API_KEY }}
141141
PERMIT_API_KEY: ${{ env.ENV_API_KEY }}
142142
API_TIER: prod
143+
# Force IPv4: Node resolves `localhost` to ::1 first, but the runner's
144+
# Docker IPv6 publish refuses connections, so PDP checks would hit
145+
# ECONNREFUSED. 127.0.0.1 pins the working IPv4 path.
146+
PDP_URL: http://127.0.0.1:7766
143147
run: yarn test:ci:full
144148

145149
# Dump PDP diagnostics whenever the backend path fails. The SDK reports

0 commit comments

Comments
 (0)