Skip to content

Fix jagged track map and Docker PORT handling - #102

Merged
adn8naiagent merged 1 commit into
stagingfrom
dev
Aug 18, 2026
Merged

Fix jagged track map and Docker PORT handling#102
adn8naiagent merged 1 commit into
stagingfrom
dev

Conversation

@adn8naiagent

Copy link
Copy Markdown
Owner

Track outline (#101): the outline was drawn from the session's fastest lap, but when a session's position feed repeats coordinates instead of updating them, that lap has too few distinct points to trace the circuit. The 2026 Hungarian race gave 26 distinct points against ~300 in qualifying, rendering a 26-sided polygon. Every lap in that session is equally affected, so the reference lap is now chosen by distinct position points rather than lap time, falling back to another session from the same weekend. Both the outline and the replay coordinate normalisation go through the same helper so driver dots stay aligned with the track.

Docker PORT: PORT set the host side of the compose mapping while the container side was hardcoded to 8000, and env_file also passed PORT into the container. Setting it published one port and listened on another. Compose now maps the same port on both sides, with PORT set explicitly so a shell-provided value reaches the container too.

Also adds backend/.fastf1-cache to .dockerignore; the existing entry pointed at backend/data/fastf1-cache, so a local precompute put 3.2GB into the build context.

Track outline (#101): the outline was drawn from the session's fastest lap,
but when a session's position feed repeats coordinates instead of updating
them, that lap has too few distinct points to trace the circuit. The 2026
Hungarian race gave 26 distinct points against ~300 in qualifying, rendering
a 26-sided polygon. Every lap in that session is equally affected, so the
reference lap is now chosen by distinct position points rather than lap time,
falling back to another session from the same weekend. Both the outline and
the replay coordinate normalisation go through the same helper so driver dots
stay aligned with the track.

Docker PORT: PORT set the host side of the compose mapping while the container
side was hardcoded to 8000, and env_file also passed PORT into the container.
Setting it published one port and listened on another. Compose now maps the
same port on both sides, with PORT set explicitly so a shell-provided value
reaches the container too.

Also adds backend/.fastf1-cache to .dockerignore; the existing entry pointed at
backend/data/fastf1-cache, so a local precompute put 3.2GB into the build context.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
@adn8naiagent
adn8naiagent merged commit 5768e0c into staging Aug 18, 2026
1 check failed
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