mirror of
https://github.com/IAmTomShaw/f1-race-replay.git
synced 2026-05-09 08:25:56 +02:00
[PR #287] feat: modernize CLI, fix telemetry gaps, add Tyre Strategy insight, and setup CI/infra #274
Labels
No labels
bug
enhancement
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/f1-race-replay#274
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/IAmTomShaw/f1-race-replay/pull/287
Author: @JuanjoRestrepo
Created: 5/6/2026
Status: 🔄 Open
Base:
main← Head:feature/modernize-cli-telemetry📝 Commits (2)
c1ff59cfeat: modernize CLI, fix telemetry gaps, add Tyre Strategy insight, and setup CI/infrab0dcb63docs: add main block for isolated Tyre Strategy testing📊 Changes
11 files changed (+2563 additions, -216 deletions)
View changed files
➕
.github/workflows/ci.yml(+31 -0)📝
README.md(+48 -10)📝
docs/InsightsMenu.md(+12 -3)📝
main.py(+220 -120)➕
pyproject.toml(+32 -0)📝
src/f1_data.py(+34 -6)📝
src/gui/insights_menu.py(+88 -52)➕
src/insights/tyre_strategy_window.py(+122 -0)📝
src/interfaces/race_replay.py(+30 -25)➕
tests/test_main_cli.py(+96 -0)➕
uv.lock(+1850 -0)📄 Description
Pull Request: CLI Modernization, Telemetry Correctness, and Tyre Strategy Insight
Visuals
New Tyre Strategy Live Data Window
PR Context: Complementary Tyre Insights & Core Stability
I am aware of the recent "Stint Tracker" work by @loisekk. This PR is intended to be complementary to that effort. While the stint tracker provides a visual history of compound changes, this PR focuses on a Live Data Table approach for the Tyre Strategy window—prioritizing high-precision, real-time metrics (Exact Tyre Life, Speed, and computed Gaps/Intervals).
Additionally, this PR provides a major infrastructure overhaul (CLI modernization, Telemetry distance fixes, and CI/CD setup) that ensures the underlying data stream is accurate for all future insights.
Key Changes
1. Entrypoint & CLI Correctness
sys.argvlogic withargparseinmain.py.--practice {1,2,3}or aliases--fp1/--fp2/--fp3.2. Telemetry & Data Correctness
gap_to_leader_sandinterval_ahead_sto telemetry frame payloads.3. Leaderboard Stability
_driver_progress_mto prefer stable distance-based ordering, resolving the "jitter" duringoverlaps and pit stops.4. Infrastructure & Tooling
pyproject.tomlusinguvstandards for modern dependency management.Verification Run
uv run python -m pytest tests/test_main_cli.py -q-> 7 passed.--help,--list-rounds, and isolation testing for the Tyre Strategy window.🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.