No description
  • JavaScript 96.9%
  • CSS 2.9%
  • HTML 0.2%
Find a file
mj 01051be4ee navi-offroute: stub Valhalla bypass in _auto_router test helper (T3)
PR #46-48 added a road↔road Valhalla bypass (router.py:847-862) that
fires when both endpoints have "vehicle" in _auto_eligible_modes.
Two synthetic-fixture tests in test_offroute.py — both passing
elig = frozenset({"foot","2w","4w","vehicle"}) for all endpoints —
unintentionally meet that condition. On matt-desktop the bypass is
attempted but Valhalla is unreachable, so it falls through to the
unified kernel and the synthetic fixtures route as expected. On the
deploy VM Valhalla is healthy and returns real Utah forest-service
road geometry that doesn't fit the in-memory 3×20 / 4×14 grid, so
the trails[rr,cc] assertions blow up.

Fix: monkeypatch _route_D_network_only to return {"status":"error"}
inside the _auto_router test helper, forcing the bypass's existing
fall-through to the unified kernel on both CPUs deterministically.

Affected tests (both passing post-fix):
  test_route_auto_road_to_road
  test_route_auto_network_affinity_biases_path

Test-only change; production router behaviour unchanged.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-06-03 20:42:47 -06:00
backend navi-offroute: stub Valhalla bypass in _auto_router test helper (T3) 2026-06-03 20:42:47 -06:00
frontend navi-offroute: tighten hybrid gates + fix hybrid render (#34) 2026-05-26 17:29:17 -06:00