From 59f8e16ff54d12f075045f7a1f4520a303f181b2 Mon Sep 17 00:00:00 2001 From: Pawel Rutka Date: Mon, 29 Jun 2026 13:54:42 +0000 Subject: [PATCH 1/4] Integrate Time module --- bazel_common/score_modules_target_sw.MODULE.bazel | 7 +++++++ known_good.json | 9 +++++++++ 2 files changed, 16 insertions(+) diff --git a/bazel_common/score_modules_target_sw.MODULE.bazel b/bazel_common/score_modules_target_sw.MODULE.bazel index 8a89f364cbc..7c6adc30d3b 100644 --- a/bazel_common/score_modules_target_sw.MODULE.bazel +++ b/bazel_common/score_modules_target_sw.MODULE.bazel @@ -75,3 +75,10 @@ git_override( commit = "0e9187f79a9935ca192779234b82f9d00dc4e335", remote = "https://github.com/eclipse-score/logging.git", ) + +bazel_dep(name = "score_time") +git_override( + module_name = "score_time", + commit = "f389d02830a4cc070657a0f3da5040bd1bd382f9", + remote = "https://github.com/qorix-group/score_time.git", +) diff --git a/known_good.json b/known_good.json index 46303c75ca5..2a3b7ed4749 100644 --- a/known_good.json +++ b/known_good.json @@ -115,6 +115,15 @@ "//score/mw/log/legacy_non_verbose_api:unit_test" ] } + }, + "score_time": { + "repo": "https://github.com/qorix-group/score_time.git", + "hash": "f389d02830a4cc070657a0f3da5040bd1bd382f9", + "metadata": { + "langs": [ + "cpp" + ] + } } }, "tooling": { From 09c326a39b97c0296e8bbf67fd911aebe0fe6d42 Mon Sep 17 00:00:00 2001 From: Pawel Rutka Date: Tue, 30 Jun 2026 07:47:40 +0000 Subject: [PATCH 2/4] Deploy time examples --- .../score_modules_target_sw.MODULE.bazel | 2 +- known_good.json | 2 +- showcases/BUILD | 1 + showcases/standalone/BUILD | 15 ++++++ showcases/standalone/time.score.json | 46 +++++++++++++++++++ 5 files changed, 64 insertions(+), 2 deletions(-) create mode 100644 showcases/standalone/time.score.json diff --git a/bazel_common/score_modules_target_sw.MODULE.bazel b/bazel_common/score_modules_target_sw.MODULE.bazel index 7c6adc30d3b..ead59beacf4 100644 --- a/bazel_common/score_modules_target_sw.MODULE.bazel +++ b/bazel_common/score_modules_target_sw.MODULE.bazel @@ -79,6 +79,6 @@ git_override( bazel_dep(name = "score_time") git_override( module_name = "score_time", - commit = "f389d02830a4cc070657a0f3da5040bd1bd382f9", + commit = "d124e7ad6a57d1a9830f1ddd458e8d66b7bfec10", remote = "https://github.com/qorix-group/score_time.git", ) diff --git a/known_good.json b/known_good.json index 2a3b7ed4749..6b1cc6b44fb 100644 --- a/known_good.json +++ b/known_good.json @@ -118,7 +118,7 @@ }, "score_time": { "repo": "https://github.com/qorix-group/score_time.git", - "hash": "f389d02830a4cc070657a0f3da5040bd1bd382f9", + "hash": "d124e7ad6a57d1a9830f1ddd458e8d66b7bfec10", "metadata": { "langs": [ "cpp" diff --git a/showcases/BUILD b/showcases/BUILD index 514b36add06..e8e8c0649ca 100644 --- a/showcases/BUILD +++ b/showcases/BUILD @@ -18,6 +18,7 @@ score_pkg_bundle( other_package_files = [ "//showcases/standalone:comm_pkg_files", "//showcases/standalone:kyron_pkg_files", + "//showcases/standalone:time_pkg_files", "//showcases/orchestration_persistency:orch_per_pkg_files", "//showcases/simple_lifecycle:simple_lifecycle_pkg_files", ], diff --git a/showcases/standalone/BUILD b/showcases/standalone/BUILD index aae7c225607..ae9a00fc129 100644 --- a/showcases/standalone/BUILD +++ b/showcases/standalone/BUILD @@ -36,3 +36,18 @@ score_pkg_bundle( ], package_dir = "standalone", ) + +score_pkg_bundle( + name = "time", + bins = [ + "@score_time//examples/time/vehicle_time", + "@score_time//examples/time/system_time", + "@score_time//examples/time/steady_time", + "@score_time//examples/time/high_res_steady_time" + ], + config_data = [ + "//showcases/standalone:time.score.json", + ], + package_dir = "standalone", +) + diff --git a/showcases/standalone/time.score.json b/showcases/standalone/time.score.json new file mode 100644 index 00000000000..8af4a00e91c --- /dev/null +++ b/showcases/standalone/time.score.json @@ -0,0 +1,46 @@ +[ + { + "name": "Vehicle Time Example", + "description": "Uses VehicleTimeHandler to obtain a combined snapshot of the PTP-synchronized vehicle time and the local monotonic HIRS time", + "apps": [ + { + "path": "/showcases/bin/vehicle_time", + "args": [], + "env": {} + } + ] + }, + { + "name": "System Time Example", + "description": "Uses SystemTimeHandler to obtain the current wall-clock (Unix epoch) time", + "apps": [ + { + "path": "/showcases/bin/system_time", + "args": [], + "env": {} + } + ] + }, + { + "name": "Steady Time Example", + "description": "Uses SteadyTimeHandler to obtain the current monotonic time", + "apps": [ + { + "path": "/showcases/bin/steady_time", + "args": [], + "env": {} + } + ] + }, + { + "name": "High Resolution Steady Time Example", + "description": "Uses HighResSteadyTimeHandler to obtain the current high-precision local steady time", + "apps": [ + { + "path": "/showcases/bin/high_res_steady_time", + "args": [], + "env": {} + } + ] + } +] \ No newline at end of file From b0042328061a2ab5251376afd80009bfabcb1b99 Mon Sep 17 00:00:00 2001 From: Pawel Rutka Date: Tue, 30 Jun 2026 08:00:53 +0000 Subject: [PATCH 3/4] Make sure qemu has enought permisisons --- bazel_common/score_modules_target_sw.MODULE.bazel | 4 ++-- known_good.json | 4 ++-- runners/qemu_x86_64/scripts/run_qemu.sh | 2 +- showcases/standalone/BUILD | 3 +-- showcases/standalone/time.score.json | 2 +- 5 files changed, 7 insertions(+), 8 deletions(-) diff --git a/bazel_common/score_modules_target_sw.MODULE.bazel b/bazel_common/score_modules_target_sw.MODULE.bazel index ead59beacf4..261192e8455 100644 --- a/bazel_common/score_modules_target_sw.MODULE.bazel +++ b/bazel_common/score_modules_target_sw.MODULE.bazel @@ -79,6 +79,6 @@ git_override( bazel_dep(name = "score_time") git_override( module_name = "score_time", - commit = "d124e7ad6a57d1a9830f1ddd458e8d66b7bfec10", - remote = "https://github.com/qorix-group/score_time.git", + commit = "414d4ce4d984e461db8153c95eceb9d5a2020f57", + remote = "https://github.com/eclipse-score/time.git", ) diff --git a/known_good.json b/known_good.json index 6b1cc6b44fb..b2a3609520b 100644 --- a/known_good.json +++ b/known_good.json @@ -117,8 +117,8 @@ } }, "score_time": { - "repo": "https://github.com/qorix-group/score_time.git", - "hash": "d124e7ad6a57d1a9830f1ddd458e8d66b7bfec10", + "repo": "https://github.com/eclipse-score/time.git", + "hash": "414d4ce4d984e461db8153c95eceb9d5a2020f57", "metadata": { "langs": [ "cpp" diff --git a/runners/qemu_x86_64/scripts/run_qemu.sh b/runners/qemu_x86_64/scripts/run_qemu.sh index 6482d232665..98d4e8136f6 100755 --- a/runners/qemu_x86_64/scripts/run_qemu.sh +++ b/runners/qemu_x86_64/scripts/run_qemu.sh @@ -26,7 +26,7 @@ else fi echo "Starting QEMU with IFS image: ${IFS_IMAGE}" -qemu-system-x86_64 \ +sudo qemu-system-x86_64 \ ${QEMU_KVM_OPTS} \ -m 1G \ -pidfile /tmp/qemu.pid \ diff --git a/showcases/standalone/BUILD b/showcases/standalone/BUILD index ae9a00fc129..273e210fad4 100644 --- a/showcases/standalone/BUILD +++ b/showcases/standalone/BUILD @@ -43,11 +43,10 @@ score_pkg_bundle( "@score_time//examples/time/vehicle_time", "@score_time//examples/time/system_time", "@score_time//examples/time/steady_time", - "@score_time//examples/time/high_res_steady_time" + "@score_time//examples/time/high_res_steady_time", ], config_data = [ "//showcases/standalone:time.score.json", ], package_dir = "standalone", ) - diff --git a/showcases/standalone/time.score.json b/showcases/standalone/time.score.json index 8af4a00e91c..11b2b3b673c 100644 --- a/showcases/standalone/time.score.json +++ b/showcases/standalone/time.score.json @@ -43,4 +43,4 @@ } ] } -] \ No newline at end of file +] From e8b395ddb48b09d1d26c915a42e1ea39132bdd25 Mon Sep 17 00:00:00 2001 From: Pawel Rutka Date: Tue, 30 Jun 2026 10:43:19 +0000 Subject: [PATCH 4/4] Make exmplaes stop after time --- showcases/standalone/time.score.json | 36 ++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) diff --git a/showcases/standalone/time.score.json b/showcases/standalone/time.score.json index 11b2b3b673c..4faa8c476a7 100644 --- a/showcases/standalone/time.score.json +++ b/showcases/standalone/time.score.json @@ -7,6 +7,15 @@ "path": "/showcases/bin/vehicle_time", "args": [], "env": {} + }, + { + "path": "/showcases/bin/lifecycle_signal.sh", + "args": [ + "vehicle_time", + "SIGTERM" + ], + "env": {}, + "delay": 4 } ] }, @@ -18,6 +27,15 @@ "path": "/showcases/bin/system_time", "args": [], "env": {} + }, + { + "path": "/showcases/bin/lifecycle_signal.sh", + "args": [ + "system_time", + "SIGTERM" + ], + "env": {}, + "delay": 4 } ] }, @@ -29,6 +47,15 @@ "path": "/showcases/bin/steady_time", "args": [], "env": {} + }, + { + "path": "/showcases/bin/lifecycle_signal.sh", + "args": [ + "steady_time", + "SIGTERM" + ], + "env": {}, + "delay": 4 } ] }, @@ -40,6 +67,15 @@ "path": "/showcases/bin/high_res_steady_time", "args": [], "env": {} + }, + { + "path": "/showcases/bin/lifecycle_signal.sh", + "args": [ + "high_res_steady_time", + "SIGTERM" + ], + "env": {}, + "delay": 4 } ] }