Skip to content

Commit

Permalink
Refs #20843: DROP: Enable testing on ubuntu nightly
Browse files Browse the repository at this point in the history
Signed-off-by: eduponz <[email protected]>
  • Loading branch information
EduPonz committed Jun 17, 2024
1 parent 059ae79 commit f4e4743
Show file tree
Hide file tree
Showing 6 changed files with 37 additions and 224 deletions.
64 changes: 3 additions & 61 deletions .github/workflows/nightly-mac-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@ name: Fast DDS MacOS CI (nightly)

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

jobs:
nightly-mac-ci-master:
Expand All @@ -12,66 +10,10 @@ jobs:
matrix:
security:
- 'ON'
- 'OFF'
uses: eProsima/Fast-DDS/.github/workflows/reusable-mac-ci.yml@master
uses: eProsima/Fast-DDS/.github/workflows/reusable-mac-ci.yml@feature/detect_flaky_tests
with:
label: 'nightly-sec-${{ matrix.security }}-mac-ci-master'
label: 'nightly-sec-${{ matrix.security }}-mac-ci-master-flaky'
cmake-args: "-DSECURITY=${{ matrix.security }}"
ctest-args: "-LE xfail"
fastdds-branch: 'master'

nightly-mac-ci-2_14_x:
strategy:
fail-fast: false
matrix:
security:
- 'ON'
- 'OFF'
uses: eProsima/Fast-DDS/.github/workflows/[email protected]
with:
label: 'nightly-sec-${{ matrix.security }}-mac-ci-2.14.x'
cmake-args: "-DSECURITY=${{ matrix.security }}"
ctest-args: "-LE xfail"
fastdds-branch: '2.14.x'

nightly-mac-ci-2_13_x:
strategy:
fail-fast: false
matrix:
security:
- 'ON'
- 'OFF'
uses: eProsima/Fast-DDS/.github/workflows/[email protected]
with:
label: 'nightly-sec-${{ matrix.security }}-mac-ci-2.13.x'
cmake-args: "-DSECURITY=${{ matrix.security }}"
ctest-args: "-LE xfail"
fastdds-branch: '2.13.x'

nightly-mac-ci-2_10_x:
strategy:
fail-fast: false
matrix:
security:
- 'ON'
- 'OFF'
uses: eProsima/Fast-DDS/.github/workflows/[email protected]
with:
label: 'nightly-sec-${{ matrix.security }}-mac-ci-2.10.x'
cmake-args: "-DSECURITY=${{ matrix.security }}"
ctest-args: "-LE xfail"
fastdds-branch: '2.10.x'

nightly-mac-ci-2_6_x:
strategy:
fail-fast: false
matrix:
security:
- 'ON'
- 'OFF'
uses: eProsima/Fast-DDS/.github/workflows/[email protected]
with:
label: 'nightly-sec-${{ matrix.security }}-mac-ci-2.6.x'
cmake-args: "-DSECURITY=${{ matrix.security }}"
ctest-args: "-LE xfail"
fastdds-branch: '2.6.x'
flakiness-report: true
75 changes: 2 additions & 73 deletions .github/workflows/nightly-ubuntu-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@ name: Fast DDS Ubuntu CI (nightly)

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

jobs:
nightly-ubuntu-ci-master:
Expand All @@ -14,80 +12,11 @@ jobs:
- 'ubuntu-22.04'
security:
- 'ON'
- 'OFF'
uses: eProsima/Fast-DDS/.github/workflows/reusable-ubuntu-ci.yml@master
uses: eProsima/Fast-DDS/.github/workflows/reusable-ubuntu-ci.yml@feature/detect_flaky_tests
with:
os-image: ${{ matrix.os-image }}
label: '${{ matrix.os-image }}-nightly-sec-${{ matrix.security }}-ubuntu-ci-master'
label: '${{ matrix.os-image }}-nightly-sec-${{ matrix.security }}-ubuntu-ci-master-flaky'
cmake-args: "-DSECURITY=${{ matrix.security }}"
ctest-args: "-LE xfail"
fastdds-branch: 'master'
flakiness-report: true

nightly-ubuntu-ci-2_14_x:
strategy:
fail-fast: false
matrix:
os-image:
- 'ubuntu-22.04'
security:
- 'ON'
- 'OFF'
uses: eProsima/Fast-DDS/.github/workflows/[email protected]
with:
os-image: ${{ matrix.os-image }}
label: '${{ matrix.os-image }}-nightly-sec-${{ matrix.security }}-ubuntu-ci-2.14.x'
cmake-args: "-DSECURITY=${{ matrix.security }}"
ctest-args: "-LE xfail"
fastdds-branch: '2.14.x'

nightly-ubuntu-ci-2_13_x:
strategy:
fail-fast: false
matrix:
os-image:
- 'ubuntu-22.04'
security:
- 'ON'
- 'OFF'
uses: eProsima/Fast-DDS/.github/workflows/[email protected]
with:
os-image: ${{ matrix.os-image }}
label: '${{ matrix.os-image }}-nightly-sec-${{ matrix.security }}-ubuntu-ci-2.13.x'
cmake-args: "-DSECURITY=${{ matrix.security }}"
ctest-args: "-LE xfail"
fastdds-branch: '2.13.x'

nightly-ubuntu-ci-2_10_x:
strategy:
fail-fast: false
matrix:
os-image:
- 'ubuntu-22.04'
security:
- 'ON'
- 'OFF'
uses: eProsima/Fast-DDS/.github/workflows/[email protected]
with:
os-image: ${{ matrix.os-image }}
label: '${{ matrix.os-image }}-nightly-sec-${{ matrix.security }}-ubuntu-ci-2.10.x'
cmake-args: "-DSECURITY=${{ matrix.security }}"
ctest-args: "-LE xfail"
fastdds-branch: '2.10.x'

nightly-ubuntu-ci-2_6_x:
strategy:
fail-fast: false
matrix:
os-image:
- 'ubuntu-22.04'
security:
- 'ON'
- 'OFF'
uses: eProsima/Fast-DDS/.github/workflows/[email protected]
with:
os-image: ${{ matrix.os-image }}
label: '${{ matrix.os-image }}-nightly-sec-${{ matrix.security }}-ubuntu-ci-2.6.x'
cmake-args: "-DSECURITY=${{ matrix.security }}"
ctest-args: "-LE xfail"
fastdds-branch: '2.6.x'
64 changes: 3 additions & 61 deletions .github/workflows/nightly-windows-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@ name: Fast DDS Windows CI (nightly)

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

jobs:
nightly-windows-ci-master:
Expand All @@ -12,66 +10,10 @@ jobs:
matrix:
security:
- 'ON'
- 'OFF'
uses: eProsima/Fast-DDS/.github/workflows/reusable-windows-ci.yml@master
uses: eProsima/Fast-DDS/.github/workflows/reusable-windows-ci.yml@feature/detect_flaky_tests
with:
label: 'nightly-sec-${{ matrix.security }}-windows-ci-master'
label: 'nightly-sec-${{ matrix.security }}-windows-ci-master-flaky'
cmake-args: "-DSECURITY=${{ matrix.security }}"
ctest-args: "-LE xfail"
fastdds_branch: 'master'

nightly-windows-ci-2_14_x:
strategy:
fail-fast: false
matrix:
security:
- 'ON'
- 'OFF'
uses: eProsima/Fast-DDS/.github/workflows/[email protected]
with:
label: 'nightly-sec-${{ matrix.security }}-windows-ci-2.14.x'
cmake-args: "-DSECURITY=${{ matrix.security }}"
ctest-args: "-LE xfail"
fastdds_branch: '2.14.x'

nightly-windows-ci-2_13_x:
strategy:
fail-fast: false
matrix:
security:
- 'ON'
- 'OFF'
uses: eProsima/Fast-DDS/.github/workflows/[email protected]
with:
label: 'nightly-sec-${{ matrix.security }}-windows-ci-2.13.x'
cmake-args: "-DSECURITY=${{ matrix.security }}"
ctest-args: "-LE xfail"
fastdds_branch: '2.13.x'

nightly-windows-ci-2_10_x:
strategy:
fail-fast: false
matrix:
security:
- 'ON'
- 'OFF'
uses: eProsima/Fast-DDS/.github/workflows/[email protected]
with:
label: 'nightly-sec-${{ matrix.security }}-windows-ci-2.10.x'
cmake-args: "-DSECURITY=${{ matrix.security }}"
ctest-args: "-LE xfail"
fastdds_branch: '2.10.x'

nightly-windows-ci-2_6_x:
strategy:
fail-fast: false
matrix:
security:
- 'ON'
- 'OFF'
uses: eProsima/Fast-DDS/.github/workflows/[email protected]
with:
label: 'nightly-sec-${{ matrix.security }}-windows-ci-2.6.x'
cmake-args: "-DSECURITY=${{ matrix.security }}"
ctest-args: "-LE xfail"
fastdds_branch: '2.6.x'
flakiness-report: true
28 changes: 14 additions & 14 deletions .github/workflows/reusable-mac-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -51,45 +51,45 @@ jobs:
steps:
- name: Add ci-pending label if PR
if: ${{ github.event_name == 'pull_request' }}
uses: eProsima/eProsima-CI/external/add_labels@v0
uses: eProsima/eProsima-CI/external/add_labels@feature/detect_flaky_tests
with:
labels: ci-pending
number: ${{ github.event.number }}
repo: eProsima/Fast-DDS

- name: Sync eProsima/Fast-DDS repository
uses: eProsima/eProsima-CI/external/checkout@v0
uses: eProsima/eProsima-CI/external/checkout@feature/detect_flaky_tests
with:
path: src/fastdds
ref: ${{ inputs.fastdds-branch }}

- uses: eProsima/eProsima-CI/external/setup-python@v0
- uses: eProsima/eProsima-CI/external/setup-python@feature/detect_flaky_tests
with:
python-version: '3.11'

- name: Get minimum supported version of CMake
uses: eProsima/eProsima-CI/external/get-cmake@v0
uses: eProsima/eProsima-CI/external/get-cmake@feature/detect_flaky_tests
with:
cmakeVersion: '3.22.6'

- name: Install brew dependencies
uses: eProsima/eProsima-CI/macos/install_brew_packages@v0
uses: eProsima/eProsima-CI/macos/install_brew_packages@feature/detect_flaky_tests
with:
packages: llvm asio tinyxml2 [email protected]
update: false
upgrade: false

- name: Install colcon
uses: eProsima/eProsima-CI/multiplatform/install_colcon@v0
uses: eProsima/eProsima-CI/multiplatform/install_colcon@feature/detect_flaky_tests

- name: Install Python dependencies
uses: eProsima/eProsima-CI/multiplatform/install_python_packages@v0
uses: eProsima/eProsima-CI/multiplatform/install_python_packages@feature/detect_flaky_tests
with:
packages: vcstool xmlschema
upgrade: false

- name: Setup CCache
uses: eProsima/eProsima-CI/external/setup-ccache-action@v0
uses: eProsima/eProsima-CI/external/setup-ccache-action@feature/detect_flaky_tests
with:
api_token: ${{ secrets.GITHUB_TOKEN }}

Expand All @@ -109,14 +109,14 @@ jobs:
# which entails logout/login or rebooting the machine. This is not feasible in a CI environment.

- name: Fetch Fast DDS dependencies
uses: eProsima/eProsima-CI/multiplatform/vcs_import@v0
uses: eProsima/eProsima-CI/multiplatform/vcs_import@feature/detect_flaky_tests
with:
vcs_repos_file: ${{ github.workspace }}/src/fastdds/fastdds.repos
destination_workspace: src
skip_existing: 'true'

- name: Fetch Fast DDS CI dependencies
uses: eProsima/eProsima-CI/multiplatform/vcs_import@v0
uses: eProsima/eProsima-CI/multiplatform/vcs_import@feature/detect_flaky_tests
with:
vcs_repos_file: ${{ github.workspace }}/src/fastdds/.github/workflows/config/ci.repos
destination_workspace: src
Expand All @@ -128,7 +128,7 @@ jobs:
# - Not working solution: https://github.com/macports/macports-ports/pull/21839/files
- name: Colcon build
continue-on-error: false
uses: eProsima/eProsima-CI/multiplatform/colcon_build@v0
uses: eProsima/eProsima-CI/multiplatform/colcon_build@feature/detect_flaky_tests
with:
colcon_meta_file: ${{ github.workspace }}/src/fastdds/.github/workflows/config/ci.meta
colcon_build_args: ${{ inputs.colcon-args }}
Expand All @@ -140,12 +140,12 @@ jobs:
- name: Colcon test
id: test
if: ${{ !contains(github.event.pull_request.labels.*.name, 'no-test') }}
uses: eProsima/eProsima-CI/multiplatform/colcon_test@v0
uses: eProsima/eProsima-CI/multiplatform/colcon_test@feature/detect_flaky_tests
with:
colcon_test_args: ${{ inputs.colcon-args }}
colcon_test_args_default: --event-handlers=console_direct+
ctest_args: ${{ inputs.ctest-args }}
ctest_args_default: --repeat until-pass:3 --timeout 300 --label-exclude "xfail"
ctest_args_default: --repeat until-pass:3 --timeout 300 --label-exclude "xfail" -R DynamicTypes
packages_names: fastdds
workspace: ${{ github.workspace }}
test_report_artifact: ${{ format('test_report_{0}_{1}_{2}', inputs.label, github.job, join(matrix.*, '_')) }}
Expand All @@ -162,7 +162,7 @@ jobs:
github_token: ${{ secrets.GITHUB_TOKEN }}

- name: Test summary
uses: eProsima/eProsima-CI/multiplatform/junit_summary@v0
uses: eProsima/eProsima-CI/multiplatform/junit_summary@feature/detect_flaky_tests
if: ${{ !cancelled() && !contains(github.event.pull_request.labels.*.name, 'no-test') }}
with:
junit_reports_dir: "${{ steps.test.outputs.ctest_results_path }}"
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/reusable-ubuntu-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -161,12 +161,12 @@ jobs:
- name: Colcon test
id: test
if: ${{ !contains(github.event.pull_request.labels.*.name, 'no-test') }}
uses: eProsima/eProsima-CI/multiplatform/colcon_test@feature/detect_flaky_tests
uses: eProsima/eProsima-CI/ubuntu/colcon_test@feature/detect_flaky_tests
with:
colcon_test_args: ${{ inputs.colcon-args }}
colcon_test_args_default: --event-handlers=console_direct+
ctest_args: ${{ inputs.ctest-args }}
ctest_args_default: --repeat until-pass:3 --timeout 300 --label-exclude "xfail"
ctest_args_default: --repeat until-pass:3 --timeout 300 --label-exclude "xfail" -R DynamicTypes
packages_names: fastdds
workspace: ${{ github.workspace }}
test_report_artifact: ${{ format('test_report_{0}_{1}_{2}', inputs.label, github.job, join(matrix.*, '_')) }}
Expand Down
Loading

0 comments on commit f4e4743

Please sign in to comment.