mirror of
https://github.com/PX4/PX4-Autopilot.git
synced 2026-11-24 16:01:53 +08:00
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 <julian@oes.ch>
This commit is contained in:
1 parent
d5a3f19ba7
commit
85679e231d
1 file changed
+4
-4
@@ -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
|
||||
|
||||
Reference in new issue
Block a user