Skip to content

Test the local idle deadline and bound import thinning - #33

Merged
Castor-o7 merged 2 commits into
mainfrom
test/idle-deadline-thin-bound
Nov 2, 2026
Merged

Castor-o7 merged 2 commits into
mainfrom
test/idle-deadline-thin-bound

Conversation

@Castor-o7

@Castor-o7 Castor-o7 commented Nov 2, 2026 •

Copy link
Copy Markdown
Owner

Closes the two limits left open after #30. Test code only.

  • silence_ends_the_track_at_the_deadline: runs the real run() loop with a car that never moves, then goes silent. Every track must end and, being too short to keep, be removed. That a long track is kept when finished is covered by the repeat-route test.
  • gpx_round_trip_and_health: no gap between kept points of the 60-second drive may exceed 25 s. At this speed a fix is due about every 20 s.
  • Renames the known_road_query case for a crossing inside road_heading, which is now settled.

Evidence, run locally on imresamu/postgis:17-3.5-bookworm: all 4 ignored tests pass, and each mutation fails only the intended check.

Mutation Fails at
thin() keeps only the ends "thinned too hard: 59s"
Deadline branch in run() disabled "silence should end the track"

The deadline test uses real time (track_idle 0.5 s, 10 s timeout). After review found a stall could fail the first version, it passed 20 of 20 with a 600 ms sleep injected in start_track, and 20 of 20 without. A stall of over 10 s could still fail it. The 25 s bound depends on the default beacon parameters, so changing those may need it updated.

Neither story finishes here: CHOMP-3 still needs a real TNC, and CHOMP-5 still needs the update upload on the reTerminal.

Story: CHOMP-3
Story: CHOMP-5

🤖 Generated with Claude Code

Castor-o7 and others added 2 commits November 2, 2026 15:29
Silence from an unplugged receiver must end a track through the deadline
in run(), which nothing tested. Import thinning had no lower bound, so
keeping only the ends passed. Also updates a test label now that a
crossing inside road_heading is settled as known.

Story: CHOMP-3
Story: CHOMP-5

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A stall could let the deadline beat queued fixes and drop the track the
test was following. The car now never moves, so every track is dropped,
and the test waits for all of them to go.

Story: CHOMP-3
Story: CHOMP-5

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@Castor-o7
Castor-o7 merged commit 9513c0c into main Nov 2, 2026
2 checks passed
@Castor-o7
Castor-o7 deleted the test/idle-deadline-thin-bound branch November 2, 2026 20:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant