fix(client): narrow the route profile and Valhalla answer types, keep the stop check reading the whole log

The built-in profile check returned the open profile key and the run request
returned an unnarrowed answer, both of which the client typecheck refused. The
new road trip tests asserted with non-null assertions where optional calls do.

The graceful stop step piped docker logs into grep -q under pipefail, so grep
leaving early after its match could fail the step with SIGPIPE although the
server had logged SIGTERM.
This commit is contained in:
Maurice
2026-10-29 12:38:35 +01:00
committed by Maurice
parent 10e0e59c3f
commit c4a39171f2
4 changed files with 12 additions and 6 deletions
+1 -1
View File
@@ -1202,7 +1202,7 @@ jobs:
docker stop -t 30 trek-ci >/dev/null
code="$(docker inspect -f '{{.State.ExitCode}}' trek-ci)"
[ "$code" = "0" ] || { echo "::error::docker stop ended with exit code $code, not a graceful shutdown"; exit 1; }
docker logs trek-ci 2>&1 | grep -q 'SIGTERM received' \
docker logs trek-ci 2>&1 | grep 'SIGTERM received' >/dev/null \
|| { echo "::error::the server never saw SIGTERM"; exit 1; }
- name: Container log