Repository navigation
test(esmini): a routed fixture, and the measured route-anchor gate (p8-s3) (#247) - #546
Merged
Merged
Conversation
JArmandoAnaya
force-pushed
the
feat/p8-s3-routed-fixture
branch
from
August 1, 2026 09:06
49f23df to
aa1a488
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The validation half of #247, and the sprint's last PR: a tracked fixture pair that puts a RoadMaker-authored
<Route>in front of the pinned esmini — and the measurement of what that actually gates.Closes #247.
What lands
tests/esmini/routed.{xodr,xosc}— two roads joined by a plain weld and an ego whose route crosses it. Deliberately the SMALLEST network whose route resolution crosses a road boundary: RoadMaker's own authoring never emits<lane><link>across a plain weld (the resolver's documented same-@idfallback carries it), so this is exactly the shape whose acceptance by a shipping simulator is worth knowing; a junction would re-test whatsignalized.*already covers.scripts/gen_xosc_fixtures.pygenerates the pair end-to-end through the kernel command layer (create_road/create_linked_roadon anEditStack,place_scenario_object/set_entity_init_speed/assign_routeon aScenarioStack), asserts the undo×10/redo×10 fixed point, and refuses to write a route the kernel resolver cannot drive (validate_routesempty,resolve_routecomplete, ≥2 legs). The signalized pair's bytes are untouched.TheTrackedRoutedScenarioIsExactlyWhatTheWriterEmitsToday(byte lock — regeneration is a deliberate act with a red test in front of it) andTheTrackedRouteResolvesCompletelyAgainstItsOwnNetwork(the cross-document check re-run on the tracked bytes, so a fixture whose route did not drive can never make it to CI).routed.xoscto esmini, with the measured behaviour recorded in the workflow comment.★ The measurement
Measured 2026-08-01 against the pinned v3.5.0 (macOS binary), each mutation applied to the tracked fixture and judged by
run_esmini's own criterion — esmini keeps exit 0 for these, and the[error]marker check is what fails the gate. A dangling teleport anchor was run as the control and fails the same way:<AssignRouteAction>)roadId="2"→"999"Failed to find road 999laneId="-1"→"-99"Lane id -99 does not exist on road 2s="80"→"9999"Invalid s value 9999 ... truncatingSo a route waypoint's lane anchor IS resolved against the
.xodr, exactly as an Init teleport's is (the 2026-07-31 measurement) — the routed step genuinely gates the route half of the scenario model, unlike the traffic-signal half esmini is measurably blind to (#533 tracks that gap).A first, sloppier harness said the opposite — direct esmini invocation without the smoke script's flags, with a truncated grep — and produced "all three mutations pass silently". Re-measuring through
run_esminiitself with a control inverted the verdict; the honest criterion is the one CI runs.Notes
.gitattributestests/esmini/*.xoscLF pin, so the Windows byte-lock stays green.routed.xosccarries the same 0.5 s stop trigger assignalized.xosc— a scenario with no stop trigger runs in esmini until something kills it, and a smoke gate that has to time out to pass is not a gate.Evidence
ctest --preset ci-macosgreen locally, including the two newXoscFixturetests.python3 scripts/esmini_smoke.py --xosc tests/esmini/routed.xoscagainst the fetched v3.5.0 macOS binary:OK ... loads cleanly in esmini.validate_scenarioclean) all ran on the tracked bytes.