mirror of
https://github.com/firestar5683/StarPilot.git
synced 2026-12-02 03:45:55 +08:00
Keep Volkswagen fixture typing and transport module within CI contracts
Narrow optional fixture owners and preserve exact epoch mutation with all veto checks. Move unchanged pure CarParams identity helper to existing transport session module, reexporting old path. No safety predicate changes.344 caller checks,final165MQB checks,fulltypecheck/lint and independent review pass.
This commit is contained in:
@@ -255,6 +255,7 @@ def test_mqb_full_engagement_brake_reverse_drive_actual_callers(gearbox, alpha,
|
||||
return awaiting_initial_request(card.CP, cs, card.sm, proof, tracker, request_owner,
|
||||
now_ns=stamp, producer=card.slc_producer_session)
|
||||
if waiting():
|
||||
assert feedback is not None and owner is not None
|
||||
anchor = owner.startup_arm_ns
|
||||
for field, value in (('canValid', False), ('canTimeout', True), ('steerFaultPermanent', True),
|
||||
('steerFaultTemporary', True), ('accFaulted', True), ('vehicleSensorsInvalid', True),
|
||||
@@ -271,9 +272,9 @@ def test_mqb_full_engagement_brake_reverse_drive_actual_callers(gearbox, alpha,
|
||||
setattr(bad_feedback, field, value)
|
||||
assert not waiting(tracker=bad_feedback), field
|
||||
bad_feedback = copy(feedback)
|
||||
signature = list(feedback.signature)
|
||||
signature[15] += 1
|
||||
bad_feedback.signature = tuple(signature)
|
||||
signature = feedback.signature
|
||||
assert signature is not None
|
||||
bad_feedback.signature = (*signature[:15], signature[15] + 1)
|
||||
assert not waiting(tracker=bad_feedback)
|
||||
for field, value in (('allowed_latch', False), ('pause_lateral', True), ('startup_arm_ns', now - 200_000_001)):
|
||||
bad_owner = copy(owner)
|
||||
|
||||
@@ -1,18 +1,11 @@
|
||||
"""Reason-qualified intent retention; this module never grants an axis."""
|
||||
from openpilot.cereal import log
|
||||
from openpilot.starpilot.aol.transport_pause_session import TransportPause as TransportPause
|
||||
from openpilot.starpilot.aol.transport_pause_session import TransportPause as TransportPause, cp_identity as cp_identity
|
||||
from openpilot.starpilot.aol.panda_faults import blocking_fault_mask, blocking_fault_list
|
||||
from openpilot.starpilot.aol.runtime import AXIS_MAX_AGE_NS, SAFETY_MAX_AGE_NS, current_native, native_inventory_matches_cp
|
||||
from openpilot.starpilot.aol.wire import SafetyState, decode_intent
|
||||
|
||||
|
||||
def cp_identity(cp):
|
||||
return (str(cp.brand), str(cp.carFingerprint), int(cp.flags), int(cp.alternativeExperience),
|
||||
bool(cp.passive), bool(cp.dashcamOnly), bool(cp.notCar),
|
||||
bool(cp.openpilotLongitudinalControl), bool(cp.pcmCruise),
|
||||
tuple((int(c.safetyModel.raw), int(c.safetyParam)) for c in cp.safetyConfigs))
|
||||
|
||||
|
||||
def _configured_transport_native(sm, cp, session, now_ns, native=None, *, require_longitudinal=True, allow_restricted_lateral=False):
|
||||
try:
|
||||
validated_here = native is None
|
||||
|
||||
@@ -1,6 +1,13 @@
|
||||
"""Session-scoped transport pause; no independent axis grant."""
|
||||
|
||||
|
||||
def cp_identity(cp):
|
||||
return (str(cp.brand), str(cp.carFingerprint), int(cp.flags), int(cp.alternativeExperience),
|
||||
bool(cp.passive), bool(cp.dashcamOnly), bool(cp.notCar),
|
||||
bool(cp.openpilotLongitudinalControl), bool(cp.pcmCruise),
|
||||
tuple((int(c.safetyModel.raw), int(c.safetyParam)) for c in cp.safetyConfigs))
|
||||
|
||||
|
||||
class TransportPause:
|
||||
def __init__(self, cp, session):
|
||||
from openpilot.starpilot.aol import transport_pause as transport
|
||||
|
||||
+1
-1
@@ -1 +1 @@
|
||||
{"protected_inventory_sha256": "d7cdfc79acf5a4faf3db8a2e208505a2b930f8524bf7f46aed604f8098957f83", "schema_version": 1}
|
||||
{"protected_inventory_sha256": "db0be66fc3bcade152ef14e20e78a11776492a10e2d0d681e64915bb089f0752", "schema_version": 1}
|
||||
|
||||
Reference in New Issue
Block a user