From 85679e231d4005cd687e12d412dec239246708df Mon Sep 17 00:00:00 2001 From: Julian Oes Date: Mon, 19 Oct 2026 23:21:00 +0200 Subject: [PATCH] ci(sitl): run MAVSDK tests with ASan, TSan and UBSan (#29329) The test runner now fails a test case on any sanitizer report, so run three of the four SITL test jobs with a sanitizer build to catch memory errors, data races and undefined behaviour in CI. They replace the plain RelWithDebInfo builds to avoid adding more CI jobs. standard_vtol stays unchanged as it provides the coverage build on main. Assisted-by: Claude:claude-opus-5-5 Signed-off-by: Julian Oes --- .github/workflows/sitl_tests.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/sitl_tests.yml b/.github/workflows/sitl_tests.yml index 7af085fe569..1dce520275d 100644 --- a/.github/workflows/sitl_tests.yml +++ b/.github/workflows/sitl_tests.yml @@ -23,7 +23,7 @@ concurrency: jobs: build: - name: Testing PX4 ${{ matrix.config.model }} + name: Testing PX4 ${{ matrix.config.model }} (${{ matrix.config.build_type }}) runs-on: [runs-on,runner=8cpu-linux-x64,image=ubuntu24-full-x64,"run-id=${{ github.run_id }}",spot=false,extras=s3-cache] container: image: px4io/px4-dev:v1.16.0-rc1-258-g0369abd556 @@ -32,11 +32,11 @@ jobs: fail-fast: false matrix: config: - - {model: "quadx", latitude: "59.617693", longitude: "-151.145316", altitude: "48", build_type: "RelWithDebInfo" } # Alaska - - {model: "hex", latitude: "47.397742", longitude: "8.545594", altitude: "488", build_type: "RelWithDebInfo" } # Zurich + - {model: "quadx", latitude: "59.617693", longitude: "-151.145316", altitude: "48", build_type: "AddressSanitizer" } # Alaska + - {model: "hex", latitude: "47.397742", longitude: "8.545594", altitude: "488", build_type: "ThreadSanitizer" } # Zurich # Coverage on main only; PRs reuse main's numbers through Codecov carryforward (codecov.yml) - {model: "standard_vtol", latitude: "47.397742", longitude: "8.545594", altitude: "488", build_type: "${{ github.event_name == 'push' && 'Coverage' || 'RelWithDebInfo' }}" } # Zurich - - {model: "xvert", latitude: "47.397742", longitude: "8.545594", altitude: "488", build_type: "RelWithDebInfo" } # Zurich + - {model: "xvert", latitude: "47.397742", longitude: "8.545594", altitude: "488", build_type: "UndefinedBehaviorSanitizer" } # Zurich env: PX4_CMAKE_BUILD_TYPE: ${{ matrix.config.build_type }} PX4_SBOM_DISABLE: 1