From bea391c9fdceebf8c81ddcc7f73403e619730b68 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ullrich=20Sch=C3=A4fer?= Date: Sun, 17 May 2026 22:12:16 +0200 Subject: [PATCH] Increase BRouter routing wait to 120s in CI BRouter needs time to parse the segment file into memory before it can serve routing requests. 90s was insufficient; 120s matches the margin the old explicit startup loop provided. Co-Authored-By: Claude Sonnet 4.6 --- .github/workflows/ci.yml | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 665fad8..b8904ab 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -211,9 +211,10 @@ jobs: - name: Wait for BRouter routing run: | - for i in $(seq 1 30); do - curl -sf 'http://localhost:17777/brouter?lonlats=13.4,52.5|13.5,52.5&profile=trekking&format=geojson' > /dev/null 2>&1 && break - sleep 3 + for i in $(seq 1 60); do + curl -sf 'http://localhost:17777/brouter?lonlats=13.4,52.5|13.5,52.5&profile=trekking&format=geojson' > /dev/null 2>&1 && echo "BRouter ready" && break + [ "$i" = "60" ] && echo "BRouter not ready after 120s" && exit 1 + sleep 2 done - name: Push database schema