Skip to content

Close gaps in the GPX and repeat-route tests - #30

Merged
Castor-o7 merged 1 commit into
mainfrom
test/gpx-road-gaps
Nov 2, 2026
Merged

Castor-o7 merged 1 commit into
mainfrom
test/gpx-road-gaps

Conversation

@Castor-o7

Copy link
Copy Markdown
Owner

Follow-up to #28. Mutation runs on PostGIS found breaks its tests missed. Test code only.

Now covered:

  • export.gpx and re-imported points are compared with what was sent
  • timed imports must actually be thinned, and every kept point must match what was sent
  • the new-road flag must change during a track (known, new, known)
  • stopping for longer than track_idle ends the track
  • /api/health fixes must equal the stored count exactly

Evidence, run on Murph at e7d8387 (Postgres 17.6 / PostGIS 3.5.3, not the CI image): baseline passes, and each mutation fails only the intended check.

Mutation Fails at
api.rs:387 single-track export coordinates api.rs:1146
api.rs:451 import coordinates api.rs:1146
api.rs:585 export-all coordinates api.rs:1189
recorder.rs:168 road checked once per track recorder.rs:603
api.rs:461 no thinning on import api.rs:1170
recorder.rs:142 idle never ends a track recorder.rs:621

Not covered: the local idle deadline in run() (receiver unplugged). The CI step stays on plain --ignored: the old --exact form also passes with 0 tests when the name is missing, confirmed by running it.

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

Mutations run against #28 survived these tests: export.gpx coordinates,
thinning on import, and the new-road flag changing during a track. The
tests now compare export-all and re-imported points, require thinning,
drive a detour off known road and back, and end a track by stopping.

Story: CHOMP-3
Story: CHOMP-5

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@Castor-o7
Castor-o7 merged commit b54b558 into main Nov 2, 2026
2 checks passed
@Castor-o7
Castor-o7 deleted the test/gpx-road-gaps branch November 2, 2026 20:12
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