Skip to content

Commit 28a3d8f

Browse files
committed
fix(ci): increase digital twin startup timeout to 120s, dump logs on failure
Twilio and OpenAI specs take longer to parse on CI runners. Increase health check wait from 60s to 120s and dump mockd logs on failure for debugging.
1 parent a13339f commit 28a3d8f

1 file changed

Lines changed: 7 additions & 3 deletions

File tree

.github/workflows/ci.yaml

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -116,13 +116,17 @@ jobs:
116116
run: |
117117
CONFIG_DIR=$(dirname ${{ matrix.sample.config }})
118118
cd "$CONFIG_DIR"
119-
nohup mockd start -c mockd.yaml --no-auth --log-level error > /tmp/mockd.log 2>&1 &
119+
nohup mockd start -c mockd.yaml --no-auth --log-level warn > /tmp/mockd.log 2>&1 &
120120
echo $! > /tmp/mockd.pid
121-
for i in $(seq 1 60); do
121+
for i in $(seq 1 120); do
122122
curl -sf http://localhost:4290/health > /dev/null 2>&1 && break
123123
sleep 1
124124
done
125-
curl -sf http://localhost:4290/health
125+
if ! curl -sf http://localhost:4290/health; then
126+
echo "mockd failed to start. Log:"
127+
cat /tmp/mockd.log
128+
exit 1
129+
fi
126130
echo ""
127131
mockd list --json --admin-url http://localhost:4290 | python3 -c "import sys,json; d=json.load(sys.stdin); print(f'Loaded {len(d)} mocks')"
128132

0 commit comments

Comments
 (0)