Skip to content

Fix track walk interaction and data loading - #35

Merged
mlnomadpy merged 4 commits into
masterfrom
fix-track-walk
May 24, 2026
Merged

Fix track walk interaction and data loading#35
mlnomadpy merged 4 commits into
masterfrom
fix-track-walk

Conversation

@aileenvl

Copy link
Copy Markdown
Collaborator

Summary

  • fetch session history before choosing Track Walk analytics so corner data loads consistently
  • map every visible track turn marker to the nearest logical corner and add larger tap targets for mobile
  • add focused tests for session selection and turn-to-corner mapping

Verification

  • npm run test -- trackWalkModel
  • npm run build

aileenvl and others added 4 commits May 23, 2026 14:35
CI failure on this branch was a test-collection error:

  tests/features/coaching/conftest.py:37: in <module>
      from tests.conftest import _start_session, _frames_to_payload
  E   ModuleNotFoundError: No module named 'tests'

`uv run pytest` doesn't automatically put the repo root on sys.path
(unlike running pytest from the rootdir directly), so the `tests.*`
package isn't importable during collection. Setting pythonpath in
[tool.pytest.ini_options] makes the rootdir explicit for all runners.

Verified locally: `pytest --collect-only` now finds 155 tests instead
of erroring out at collection.
can_reader.py imports `yaml` to load car configs but pyyaml was not in
the base dependencies — neither the main `dependencies` list nor any
extra. Tests that exercise the CAN reader path (8 of them in this PR)
fail in CI with:

  ModuleNotFoundError: No module named 'yaml'
  ERROR pitwall.can_reader:236 car config load failed

uv sync will re-resolve uv.lock automatically when pyproject.toml
changes, so no lockfile delta is committed here — CI's `uv sync`
will pick up the new dep on the next run.
@mlnomadpy
mlnomadpy merged commit 7a9e722 into master May 24, 2026
0 of 4 checks passed
@mlnomadpy
mlnomadpy deleted the fix-track-walk branch June 4, 2026 01: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.

2 participants