Fix .repos branches #2174
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Sanitizer analysis | |
on: | |
workflow_dispatch: | |
inputs: | |
discovery_server_branch: | |
description: 'Branch or tag of Discovery Server repository (https://github.com/eProsima/Discovery-Server)' | |
required: true | |
default: 'master' | |
pull_request: | |
push: | |
branches: | |
- master | |
schedule: | |
- cron: '0 1 * * *' | |
jobs: | |
asan-test: | |
if: ${{ !(contains(github.event.pull_request.labels.*.name, 'no-test') || | |
contains(github.event.pull_request.labels.*.name, 'skip-ci')) }} | |
runs-on: ubuntu-22.04 | |
steps: | |
- name: Sync eProsima/Fast-DDS repository | |
uses: actions/checkout@v3 | |
with: | |
path: src/Fast-DDS | |
- name: Install apt packages | |
uses: ./src/Fast-DDS/.github/actions/install-apt-packages | |
- name: Install Python packages | |
uses: ./src/Fast-DDS/.github/actions/install-python-packages | |
- name: Fetch Fast DDS dependencies | |
uses: ./src/Fast-DDS/.github/actions/fetch-fastdds-repos | |
with: | |
target_directory: src | |
googletest: true | |
- name: Build workspace | |
run: | | |
cat src/Fast-DDS/.github/workflows/asan/asan_colcon.meta | |
colcon build \ | |
--event-handlers=console_direct+ \ | |
--metas src/Fast-DDS/.github/workflows/asan/asan_colcon.meta | |
- name: Run tests Fast DDS | |
run: | | |
source install/setup.bash && \ | |
colcon test \ | |
--packages-select fastrtps \ | |
--event-handlers=console_direct+ \ | |
--return-code-on-test-failure \ | |
--ctest-args \ | |
--label-exclude xfail \ | |
--timeout 300 | |
continue-on-error: true | |
- name: Upload Logs | |
uses: actions/upload-artifact@v1 | |
with: | |
name: asan-logs | |
path: log/ | |
if: always() | |
- name: Report ASAN errors | |
if: always() | |
run: | | |
bash src/Fast-DDS/.github/workflows/utils/specific_errors_filter.sh "==ERROR:" log/latest_test/fastrtps/stdout_stderr.log _tmp_specific_error_file.log | |
python3 src/Fast-DDS/.github/workflows/utils/log_parser.py --log-file log/latest_test/fastrtps/stdout_stderr.log --specific-error-file _tmp_specific_error_file.log --output-file $GITHUB_STEP_SUMMARY --sanitizer asan | |
asan-discovery-server-test: | |
if: ${{ !(contains(github.event.pull_request.labels.*.name, 'no-test') || | |
contains(github.event.pull_request.labels.*.name, 'skip-ci')) }} | |
runs-on: ubuntu-22.04 | |
steps: | |
- name: Sync eProsima/Fast-DDS repository | |
uses: actions/checkout@v3 | |
with: | |
path: src/Fast-DDS | |
- name: Install apt packages | |
uses: ./src/Fast-DDS/.github/actions/install-apt-packages | |
- name: Install Python packages | |
uses: ./src/Fast-DDS/.github/actions/install-python-packages | |
- name: Fetch Fast DDS dependencies | |
uses: ./src/Fast-DDS/.github/actions/fetch-fastdds-repos | |
env: | |
DEFAULT_DISCOVERY_SERVER_BRANCH: 'master' | |
with: | |
target_directory: src | |
googletest: true | |
discovery_server: true | |
discovery_server_branch: ${{ github.event.inputs.discovery_server_branch || env.DEFAULT_DISCOVERY_SERVER_BRANCH }} | |
- name: Build workspace | |
run: | | |
cat src/Fast-DDS/.github/workflows/asan/asan_colcon.meta | |
colcon build \ | |
--event-handlers=console_direct+ \ | |
--metas src/Fast-DDS/.github/workflows/asan/asan_colcon.meta | |
- name: Run tests Fast DDS | |
run: | | |
source install/setup.bash && \ | |
colcon test \ | |
--packages-select discovery-server \ | |
--event-handlers=console_direct+ \ | |
--return-code-on-test-failure \ | |
--ctest-args \ | |
--label-exclude xfail \ | |
--timeout 300 | |
continue-on-error: true | |
- name: Upload Logs | |
uses: actions/upload-artifact@v1 | |
with: | |
name: asan-ds-logs | |
path: log/ | |
if: always() | |
- name: Report ASAN errors | |
if: always() | |
run: | | |
bash src/Fast-DDS/.github/workflows/utils/specific_errors_filter.sh "==ERROR:" log/latest_test/discovery-server/stdout_stderr.log _tmp_specific_error_file.log | |
python3 src/Fast-DDS/.github/workflows/utils/log_parser.py --log-file log/latest_test/discovery-server/stdout_stderr.log --specific-error-file _tmp_specific_error_file.log --output-file $GITHUB_STEP_SUMMARY --sanitizer=asan |