From 72f17eeaa44d24028d43be8afce29ddeef267ee9 Mon Sep 17 00:00:00 2001 From: firestar5683 <168790843+firestar5683@users.noreply.github.com> Date: Wed, 11 Nov 2026 11:07:32 -0600 Subject: [PATCH] Preserve historical Ioniq 6 replay calibration references --- openpilot/starpilot/flm/tests/test_controller_replay.py | 9 ++++++++- prebuilt.json | 2 +- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/openpilot/starpilot/flm/tests/test_controller_replay.py b/openpilot/starpilot/flm/tests/test_controller_replay.py index 9e6730ef51..b374f7b8dc 100644 --- a/openpilot/starpilot/flm/tests/test_controller_replay.py +++ b/openpilot/starpilot/flm/tests/test_controller_replay.py @@ -1,4 +1,8 @@ -"""Replay-only Ioniq 6 FLM controller seam; no production profile selection.""" +"""Replay-only Ioniq 6 FLM controller seam; no production profile selection. + +Historical vectors retain their original calibration; the highway retune has +separate current-controller coverage in test_ioniq6_policy. +""" import json from pathlib import Path @@ -122,6 +126,7 @@ class TestIoniq6ControllerReplay(unittest.TestCase): expected = _GOLDEN["cases"][f"{firmware}_{mode}"] _assert_rows(self, actual, expected) + @mock.patch("openpilot.starpilot.lateral.ioniq6_policy.IONIQ_6_2025_HIGHWAY_FRICTION_THRESHOLD_INCREASE", 0.0) def test_extended_frozen_filter_limit_override_and_reset_trace(self): self.assertEqual(_EXTENDED["sourceCommit"], "678af783") self.assertEqual(_EXTENDED["controllerSha256"], _GOLDEN["controllerSha256"]) @@ -141,6 +146,7 @@ class TestIoniq6ControllerReplay(unittest.TestCase): expected = _EXTENDED["cases"][f"{firmware}_{mode}"] _assert_rows(self, actual, expected) + @mock.patch("openpilot.starpilot.lateral.ioniq6_policy.IONIQ_6_2025_HIGHWAY_FRICTION_THRESHOLD_INCREASE", 0.0) def test_actual_torque_parameter_update_recalculates_frozen_pid_limits(self): self.assertEqual(_LIVE["sourceControllerSha256"], _GOLDEN["controllerSha256"]) self.assertEqual(_LIVE["fields"], _GOLDEN["fields"]) @@ -159,6 +165,7 @@ class TestIoniq6ControllerReplay(unittest.TestCase): actual = _trace(controller, cp, _EXTENDED["sequence"], historical_friction=True) _assert_rows(self, actual, expected["rows"]) + @mock.patch("openpilot.starpilot.lateral.ioniq6_policy.IONIQ_6_2025_HIGHWAY_FRICTION_THRESHOLD_INCREASE", 0.0) def test_guarded_extended_trace_preserves_model_pid_inputs_and_manual_surface(self): for firmware, fw in (("2023", False), ("2025", True)): for mode in ("default", "tuned"): diff --git a/prebuilt.json b/prebuilt.json index 37fd254f15..b423c97a99 100644 --- a/prebuilt.json +++ b/prebuilt.json @@ -1 +1 @@ -{"protected_inventory_sha256": "e2a34c53b21d7fe71b765a7f4889f8139ee4aa3a0c4d25c3bd41cf195ed94aa0", "schema_version": 1} +{"protected_inventory_sha256": "ee15c226143b2657af99ddb3d933ff02935b628347f71eda12bd3610590dcc10", "schema_version": 1}