From e5b5c44d4c1be18e0ada9f3311882f210e690432 Mon Sep 17 00:00:00 2001 From: FScholPer <145544737+FScholPer@users.noreply.github.com> Date: Wed, 25 Nov 2026 16:47:17 +0000 Subject: [PATCH 1/2] Initial plan From 0dd805d304921ae17d50a29d715820bb14bc0d26 Mon Sep 17 00:00:00 2001 From: FScholPer <145544737+FScholPer@users.noreply.github.com> Date: Wed, 25 Nov 2026 16:50:56 +0000 Subject: [PATCH 2/2] Isolate DLT tests and tolerate replay persistence delays Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com> --- platform_integration_tests/drive_replay/BUILD | 2 ++ platform_integration_tests/platform_run/BUILD | 2 ++ showcases/drive_replay/README.md | 2 +- showcases/drive_replay/warn_app.cpp | 5 +++-- 4 files changed, 8 insertions(+), 3 deletions(-) diff --git a/platform_integration_tests/drive_replay/BUILD b/platform_integration_tests/drive_replay/BUILD index 6b98dcc1afa2..8fc093aae051 100644 --- a/platform_integration_tests/drive_replay/BUILD +++ b/platform_integration_tests/drive_replay/BUILD @@ -39,7 +39,9 @@ py_itf_test( }) + [ "@score_itf//score/itf/plugins:attribute_plugin", ], + # DLT multicast is shared with the other showcase containers. tags = [ + "exclusive", "manual", ], target_compatible_with = select({ diff --git a/platform_integration_tests/platform_run/BUILD b/platform_integration_tests/platform_run/BUILD index ed56ab269fc4..c37c67c0a7f5 100644 --- a/platform_integration_tests/platform_run/BUILD +++ b/platform_integration_tests/platform_run/BUILD @@ -40,7 +40,9 @@ py_itf_test( }) + [ "@score_itf//score/itf/plugins:attribute_plugin", ], + # DLT multicast is shared with the other showcase containers. tags = [ + "exclusive", "manual", ], target_compatible_with = select({ diff --git a/showcases/drive_replay/README.md b/showcases/drive_replay/README.md index 8814336839e6..a2639a0e7024 100644 --- a/showcases/drive_replay/README.md +++ b/showcases/drive_replay/README.md @@ -49,7 +49,7 @@ S-CORE interfaces, dotted arrows are lifecycle reports and the optional visualiz | # | From → to | S-CORE module / API | Transport | Content | |---|---|---|---|---| | ① | `replay_app` → `warn_app` | score_communication, `mw::com` skeleton / proxy, service `score/showcases/drive_replay/DriveData` ([drive_data.h](drive_data.h)) | shared memory (LoLa) | event `frame`: sequence number, simulation time, position and speed of ego and lead vehicle, scenario phase | -| ② | `warn_app` → `launch_manager` | score_lifecycle, health monitor (heartbeat monitor 10–300 ms) and alive supervision | shared memory | alive notifications every 50 ms; none after the injected hang → `Alive Supervision (warn_app) switched to FAILED` | +| ② | `warn_app` → `launch_manager` | score_lifecycle, health monitor (heartbeat monitor 10–2000 ms) and alive supervision | shared memory | alive notifications every 50 ms; none after the injected hang → `Alive Supervision (warn_app) switched to FAILED` | | ③ | `launch_manager` → all processes | score_lifecycle, launch manager ([configs/launch_manager_config.json](configs/launch_manager_config.json)) | process start / `SIGTERM` | Run Target `Drive` (all processes) or `fallback_run_target` (without `warn_app`) | | ④ | apps → `launch_manager` | score_lifecycle, lifecycle client `report_running()` | file descriptor from the launch manager | "process is up", completes the Run Target transition | | ⑤ | `drive_state_manager` ↔ `launch_manager` | score_lifecycle, `ILmControl` over score_communication ([configs/mw_com_config.json](configs/mw_com_config.json)) | shared memory (LoLa) | event `ActivationResult` (Run Target reached, source: initial / request / recovery), method `ActivateRunTarget("Drive")` | diff --git a/showcases/drive_replay/warn_app.cpp b/showcases/drive_replay/warn_app.cpp index 83dad25770fb..f0331fd4610a 100644 --- a/showcases/drive_replay/warn_app.cpp +++ b/showcases/drive_replay/warn_app.cpp @@ -195,11 +195,12 @@ int main(int argc, const char* argv[]) .SetAsDefaultLogger(); const score::mw::health::MonitorTag monitor_tag{"fcw_cycle"}; // Heartbeat range minimum must exceed half the internal cycle; the supervisor cycle must be a multiple of it. + // Allow time for KVS flushes and scheduling delays without treating them as a hang. auto health_monitor_result = score::mw::health::HealthMonitorBuilder() .AddHeartbeatMonitor(monitor_tag, score::mw::health::heartbeat::HeartbeatMonitorBuilder( - score::mw::health::TimeRange(10ms, 300ms))) + score::mw::health::TimeRange(10ms, 2000ms))) .WithInternalProcessingCycle(kMonitorCycle) .WithSupervisorApiCycle(kCycle) .Build(); @@ -218,7 +219,7 @@ int main(int argc, const char* argv[]) auto heartbeat = std::move(*heartbeat_result); health_monitor.Start(); score::mw::lifecycle::report_running(); - logger.LogInfo() << "supervised by health monitor: heartbeat every 50 ms, tolerance 300 ms"; + logger.LogInfo() << "supervised by health monitor: heartbeat every 50 ms, tolerance 2000 ms"; WarningLevel level{WarningLevel::kNone}; double episode_min_ttc_s{kNoCollisionTtcS};