Skip to content

Commit

Permalink
Refactor Github CI sanitizer related jobs (#4662)
Browse files Browse the repository at this point in the history
* Refs #20542: Add Fast DDS Sanitizer worflow with support for asan fastdds

Signed-off-by: eduponz <[email protected]>

* Refs #20542: Add asan_discovery_server_test job

Signed-off-by: eduponz <[email protected]>

* Refs #20542: Add tsan_fastdds_test job

Signed-off-by: eduponz <[email protected]>

* Refs #20542: Remove colcon_meta input as max inputs for workflow_dispath is 10

Signed-off-by: eduponz <[email protected]>

* Refs #20542: Create a reusable workflow and a CI one for PRs or manual

Signed-off-by: eduponz <[email protected]>

* Refs #20542: Add nightly sanitizer CI for all supported branches

Signed-off-by: eduponz <[email protected]>

* Refs #20542: Change extension to .yml

Signed-off-by: eduponz <[email protected]>

* Refs #20542: Remove old workflows

Signed-off-by: eduponz <[email protected]>

* Refs #20542: Run sanitizers CI on PR review request

Signed-off-by: eduponz <[email protected]>

* Refs #20542: Exclude xfail tests in discovery server test run

Signed-off-by: eduponz <[email protected]>

* Refs #20542: Install all python packages needed for asan_fastdds_test reporting

Signed-off-by: eduponz <[email protected]>

* Refs #20542: Apply Jesús' suggestions

Signed-off-by: eduponz <[email protected]>

---------

Signed-off-by: eduponz <[email protected]>
(cherry picked from commit ac0e737)

# Conflicts:
#	.github/workflows/address-sanitizers.yaml
#	.github/workflows/thread-sanitizer.yaml
  • Loading branch information
EduPonz authored and mergify[bot] committed Apr 10, 2024
1 parent d189521 commit 765cede
Show file tree
Hide file tree
Showing 4 changed files with 618 additions and 7 deletions.
7 changes: 0 additions & 7 deletions .github/workflows/config/asan_colcon.meta
Original file line number Diff line number Diff line change
@@ -1,20 +1,13 @@
names:
fastrtps:
cmake-args:
- "-DCMAKE_BUILD_TYPE=Debug"
- "-DEPROSIMA_BUILD_TESTS=ON"
- "-DRTPS_API_TESTS=ON"
- "-DFASTRTPS_API_TESTS=ON"
- "-DFASTDDS_PIM_API_TESTS=ON"
- "-DPERFORMANCE_TESTS=ON"
- "-DNO_TLS=OFF"
- "-DSECURITY=ON"
- "-DFASTDDS_STATISTICS=ON"
- "-DSANITIZER=Address"
- "-DCMAKE_CXX_FLAGS='-Werror'"
discovery-server:
cmake-args:
- "-DCMAKE_BUILD_TYPE=Debug"
- "-DSANITIZER=Address"
googletest-distribution:
cmake-args:
Expand Down
77 changes: 77 additions & 0 deletions .github/workflows/nightly-sanitizers-ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,77 @@
name: Fast DDS Sanitizers CI

on:
workflow_dispatch:
schedule:
- cron: '0 1 * * *'

jobs:
nightly-sanitizers-ci-master:
uses: ./.github/workflows/reusable-sanitizers-ci.yml
with:
label: 'nightly-sec-sanitizers-ci-master'
run_asan_fastdds: true
run_asan_discovery_server: true
run_tsan_fastdds: true
colcon_build_args: ''
colcon_test_args: ''
cmake_args: ''
ctest_args: ''
fastdds_ref: 'master'
discovery_server_ref: 'master'

nightly-sanitizers-ci-2_13_x:
uses: ./.github/workflows/reusable-sanitizers-ci.yml
with:
label: 'nightly-sec-sanitizers-ci-2.13.x'
run_asan_fastdds: true
run_asan_discovery_server: true
run_tsan_fastdds: true
colcon_build_args: ''
colcon_test_args: ''
cmake_args: ''
ctest_args: ''
fastdds_ref: '2.13.x'
discovery_server_ref: 'v1.2.2'

nightly-sanitizers-ci-2_10_x:
uses: ./.github/workflows/reusable-sanitizers-ci.yml
with:
label: 'nightly-sec-sanitizers-ci-2.10.x'
run_asan_fastdds: true
run_asan_discovery_server: true
run_tsan_fastdds: true
colcon_build_args: ''
colcon_test_args: ''
cmake_args: ''
ctest_args: ''
fastdds_ref: '2.10.x'
discovery_server_ref: 'v1.2.1'

nightly-sanitizers-ci-2_6_x:
uses: ./.github/workflows/reusable-sanitizers-ci.yml
with:
label: 'nightly-sec-sanitizers-ci-2.6.x'
run_asan_fastdds: true
run_asan_discovery_server: true
run_tsan_fastdds: true
colcon_build_args: ''
colcon_test_args: ''
cmake_args: ''
ctest_args: ''
fastdds_ref: '2.6.x'
discovery_server_ref: 'v1.2.1'

nightly-sanitizers-ci-3_0_x-devel:
uses: ./.github/workflows/reusable-sanitizers-ci.yml
with:
label: 'nightly-sec-sanitizers-ci-3.0.x-devel'
run_asan_fastdds: true
run_asan_discovery_server: true
run_tsan_fastdds: true
colcon_build_args: ''
colcon_test_args: ''
cmake_args: ''
ctest_args: ''
fastdds_ref: '3.0.x-devel'
discovery_server_ref: '3.0.x-devel'
Loading

0 comments on commit 765cede

Please sign in to comment.