From c861dcb7d0dae1c5f54f2f32dec0ea2b50728d87 Mon Sep 17 00:00:00 2001 From: Jaroslava Fiedlerova Date: Fri, 16 May 2025 12:18:31 +0200 Subject: [PATCH] Add doc on how to rerun failed CI physim test --- doc/physical-simulators.md | 25 ++++++++++++++++++++++++- 1 file changed, 24 insertions(+), 1 deletion(-) diff --git a/doc/physical-simulators.md b/doc/physical-simulators.md index 2088ca90cb..662daa2a95 100644 --- a/doc/physical-simulators.md +++ b/doc/physical-simulators.md @@ -125,7 +125,30 @@ add_physim_test(5g nr_prachsim test8 "15kHz SCS, 25 PRBs" -a -s -30 -n 300 -p 99 ``` These tests are run automatically as part of the following -pipeline: [RAN-PhySim-Cluster CI](https://jenkins-oai.eurecom.fr/job/RAN-PhySim-Cluster/) +pipelines: [RAN-PhySim-Cluster-4G](https://jenkins-oai.eurecom.fr/job/RAN-PhySim-Cluster-4G/) and [RAN-PhySim-Cluster-5G](https://jenkins-oai.eurecom.fr/job/RAN-PhySim-Cluster-5G/) + +### How to rerun failed CI tests using `ctest` + +Ctest automatically logs the failed tests in LastTestsFailed.log. This log is archived in +the CI artifacts and can be reused locally to rerun only those failed tests. + +```bash +# 1. Navigate to the build directory, build physims +cd ~/openairinterface5g/build +cmake .. -GNinja -DENABLE_PHYSIM_TESTS=ON && ninja tests + +# 2. Create ctest directory structure +ctest -N --quiet + +# 3. Unzip the test logs artifact from the CI run +unzip /path/to/test_logs_123.zip + +# 4. Copy the LastTestsFailed.log file to the expected location +cp /path/to/test_logs_123/test_logs/LastTestsFailed.log ./Testing/Temporary/ + +# 5. Rerun only the failed tests using ctest +ctest --rerun-failed +``` # Legacy Bash Autotest (Deprecated)