Skip to content

Commit

Permalink
Fix test CI
Browse files Browse the repository at this point in the history
Signed-off-by: Irene Bandera <irenebandera@eprosima.com>
  • Loading branch information
irenebm committed Nov 15, 2023
1 parent a0a57f5 commit 758943a
Show file tree
Hide file tree
Showing 5 changed files with 1,901 additions and 188 deletions.
370 changes: 185 additions & 185 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -78,74 +78,74 @@ env:

jobs:

#####################################################################
# TEST

multiplatform-tests:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
cmake_build_type:
- Release
- Debug
os:
- ubuntu-20.04
- ubuntu-22.04
- windows-2019
- windows-2022

steps:

- name: Sync repository
uses: eProsima/eProsima-CI/external/checkout@v0
with:
path: src

- name: Download dependencies and install requirements
uses: ./src/.github/actions/project_dependencies
with:
os: ${{ matrix.os }}
cmake_build_type: ${{ matrix.cmake_build_type }}
dependencies_artifact_postfix: ${{ github.event.inputs.dependencies_artifact_postfix || env.default_dependencies_artifact_postfix }}
secret_token: ${{ secrets.GITHUB_TOKEN }}

- name: Compile and run tests
uses: eProsima/eProsima-CI/multiplatform/colcon_build_test@v0
with:
packages_names: ${{ env.code_packages_names }}
cmake_args: -DBUILD_TESTS=ON -DCMAKE_BUILD_TYPE=${{ matrix.cmake_build_type }}
workspace_dependencies: './install'
ctest_args: --label-exclude "xfail"
colcon_meta_file: ./src/.github/workflows/configurations/${{ runner.os }}/colcon.meta
colcon_test_args: '--executor=sequential' # TODO remove when available in eProsima-CI


#####################################################################
# ASAN

asan:
runs-on: ubuntu-22.04
steps:

- name: Sync repository
uses: eProsima/eProsima-CI/external/checkout@v0
with:
path: src

- name: Download dependencies and install requirements
uses: ./src/.github/actions/project_dependencies
with:
os: ubuntu-22.04
cmake_build_type: Debug
dependencies_artifact_postfix: ${{ github.event.inputs.dependencies_artifact_postfix || env.default_dependencies_artifact_postfix }}
secret_token: ${{ secrets.GITHUB_TOKEN }}

- name: Compile and run tests
uses: eProsima/eProsima-CI/multiplatform/asan_build_test@v0
with:
packages_names: ${{ env.code_packages_names }}
workspace_dependencies: './install'
# #####################################################################
# # TEST

# multiplatform-tests:
# runs-on: ${{ matrix.os }}
# strategy:
# fail-fast: false
# matrix:
# cmake_build_type:
# - Release
# - Debug
# os:
# - ubuntu-20.04
# - ubuntu-22.04
# - windows-2019
# - windows-2022

# steps:

# - name: Sync repository
# uses: eProsima/eProsima-CI/external/checkout@v0
# with:
# path: src

# - name: Download dependencies and install requirements
# uses: ./src/.github/actions/project_dependencies
# with:
# os: ${{ matrix.os }}
# cmake_build_type: ${{ matrix.cmake_build_type }}
# dependencies_artifact_postfix: ${{ github.event.inputs.dependencies_artifact_postfix || env.default_dependencies_artifact_postfix }}
# secret_token: ${{ secrets.GITHUB_TOKEN }}

# - name: Compile and run tests
# uses: eProsima/eProsima-CI/multiplatform/colcon_build_test@v0
# with:
# packages_names: ${{ env.code_packages_names }}
# cmake_args: -DBUILD_TESTS=ON -DCMAKE_BUILD_TYPE=${{ matrix.cmake_build_type }}
# workspace_dependencies: './install'
# ctest_args: --label-exclude "xfail"
# colcon_meta_file: ./src/.github/workflows/configurations/${{ runner.os }}/colcon.meta
# colcon_test_args: '--executor=sequential' # TODO remove when available in eProsima-CI


# #####################################################################
# # ASAN

# asan:
# runs-on: ubuntu-22.04
# steps:

# - name: Sync repository
# uses: eProsima/eProsima-CI/external/checkout@v0
# with:
# path: src

# - name: Download dependencies and install requirements
# uses: ./src/.github/actions/project_dependencies
# with:
# os: ubuntu-22.04
# cmake_build_type: Debug
# dependencies_artifact_postfix: ${{ github.event.inputs.dependencies_artifact_postfix || env.default_dependencies_artifact_postfix }}
# secret_token: ${{ secrets.GITHUB_TOKEN }}

# - name: Compile and run tests
# uses: eProsima/eProsima-CI/multiplatform/asan_build_test@v0
# with:
# packages_names: ${{ env.code_packages_names }}
# workspace_dependencies: './install'


#####################################################################
Expand Down Expand Up @@ -175,121 +175,121 @@ jobs:
workspace_dependencies: './install'


#####################################################################
# CLANG

clang:
runs-on: ubuntu-22.04
steps:

- name: Sync repository
uses: eProsima/eProsima-CI/external/checkout@v0
with:
path: src

- name: Download dependencies and install requirements
uses: ./src/.github/actions/project_dependencies
with:
os: ubuntu-22.04
cmake_build_type: Debug
dependencies_artifact_postfix: ${{ github.event.inputs.dependencies_artifact_postfix || env.default_dependencies_artifact_postfix }}
secret_token: ${{ secrets.GITHUB_TOKEN }}

- name: Compile and run tests
uses: eProsima/eProsima-CI/multiplatform/clang_build_test@v0
with:
packages_names: ${{ env.code_packages_names }}
workspace_dependencies: './install'


#####################################################################
# COVERAGE

coverage:
runs-on: ubuntu-22.04
environment:
name: codecov
steps:

- name: Sync repository
uses: eProsima/eProsima-CI/external/checkout@v0
with:
path: src

- name: Download dependencies and install requirements
uses: ./src/.github/actions/project_dependencies
with:
os: ubuntu-22.04
cmake_build_type: Release
dependencies_artifact_postfix: ${{ github.event.inputs.dependencies_artifact_postfix || env.default_dependencies_artifact_postfix }}
secret_token: ${{ secrets.GITHUB_TOKEN }}

- name: Compile and run tests
uses: eProsima/eProsima-CI/ubuntu/coverage_build_test_upload@v0
with:
packages_names: ${{ env.code_packages_names }}
workspace_dependencies: './install'
codecov_token: ${{ secrets.CODECOV_TOKEN }}
codecov_fix_file_path: ./src/codecov.yml


#####################################################################
# FLAKY

flaky:
runs-on: ubuntu-22.04
steps:

- name: Sync repository
uses: eProsima/eProsima-CI/external/checkout@v0
with:
path: src

- name: Download dependencies and install requirements
uses: ./src/.github/actions/project_dependencies
with:
os: ubuntu-22.04
cmake_build_type: Release
dependencies_artifact_postfix: ${{ github.event.inputs.dependencies_artifact_postfix || env.default_dependencies_artifact_postfix }}
secret_token: ${{ secrets.GITHUB_TOKEN }}

- name: Compile and run tests
uses: eProsima/eProsima-CI/multiplatform/colcon_build_test_flaky@v0
with:
packages_names: ${{ env.code_packages_names }}
workspace_dependencies: './install'


#####################################################################
# DOCUMENTATION TEST

docs:
runs-on: ubuntu-22.04
steps:
- name: Build and test documentation
uses: eProsima/eProsima-CI/ubuntu/sphinx_docs@v0
with:
docs_subpackage_name: ${{ env.docs_packages_names }}
secret_token: ${{ secrets.GITHUB_TOKEN }}


#####################################################################
# UNCRUSTIFY

uncrustify:
runs-on: ubuntu-22.04
steps:

- name: Uncrustify
uses: eProsima/eProsima-CI/ubuntu/uncrustify@v0


#####################################################################
# PYTHON LINTER

python-linter:
runs-on: ubuntu-22.04
steps:
# #####################################################################
# # CLANG

# clang:
# runs-on: ubuntu-22.04
# steps:

# - name: Sync repository
# uses: eProsima/eProsima-CI/external/checkout@v0
# with:
# path: src

- name: Python Linter
uses: eProsima/eProsima-CI/ubuntu/python_linter@v0
# - name: Download dependencies and install requirements
# uses: ./src/.github/actions/project_dependencies
# with:
# os: ubuntu-22.04
# cmake_build_type: Debug
# dependencies_artifact_postfix: ${{ github.event.inputs.dependencies_artifact_postfix || env.default_dependencies_artifact_postfix }}
# secret_token: ${{ secrets.GITHUB_TOKEN }}

# - name: Compile and run tests
# uses: eProsima/eProsima-CI/multiplatform/clang_build_test@v0
# with:
# packages_names: ${{ env.code_packages_names }}
# workspace_dependencies: './install'


# #####################################################################
# # COVERAGE

# coverage:
# runs-on: ubuntu-22.04
# environment:
# name: codecov
# steps:

# - name: Sync repository
# uses: eProsima/eProsima-CI/external/checkout@v0
# with:
# path: src

# - name: Download dependencies and install requirements
# uses: ./src/.github/actions/project_dependencies
# with:
# os: ubuntu-22.04
# cmake_build_type: Release
# dependencies_artifact_postfix: ${{ github.event.inputs.dependencies_artifact_postfix || env.default_dependencies_artifact_postfix }}
# secret_token: ${{ secrets.GITHUB_TOKEN }}

# - name: Compile and run tests
# uses: eProsima/eProsima-CI/ubuntu/coverage_build_test_upload@v0
# with:
# packages_names: ${{ env.code_packages_names }}
# workspace_dependencies: './install'
# codecov_token: ${{ secrets.CODECOV_TOKEN }}
# codecov_fix_file_path: ./src/codecov.yml


# #####################################################################
# # FLAKY

# flaky:
# runs-on: ubuntu-22.04
# steps:

# - name: Sync repository
# uses: eProsima/eProsima-CI/external/checkout@v0
# with:
# path: src

# - name: Download dependencies and install requirements
# uses: ./src/.github/actions/project_dependencies
# with:
# os: ubuntu-22.04
# cmake_build_type: Release
# dependencies_artifact_postfix: ${{ github.event.inputs.dependencies_artifact_postfix || env.default_dependencies_artifact_postfix }}
# secret_token: ${{ secrets.GITHUB_TOKEN }}

# - name: Compile and run tests
# uses: eProsima/eProsima-CI/multiplatform/colcon_build_test_flaky@v0
# with:
# packages_names: ${{ env.code_packages_names }}
# workspace_dependencies: './install'


# #####################################################################
# # DOCUMENTATION TEST

# docs:
# runs-on: ubuntu-22.04
# steps:
# - name: Build and test documentation
# uses: eProsima/eProsima-CI/ubuntu/sphinx_docs@v0
# with:
# docs_subpackage_name: ${{ env.docs_packages_names }}
# secret_token: ${{ secrets.GITHUB_TOKEN }}


# #####################################################################
# # UNCRUSTIFY

# uncrustify:
# runs-on: ubuntu-22.04
# steps:

# - name: Uncrustify
# uses: eProsima/eProsima-CI/ubuntu/uncrustify@v0


# #####################################################################
# # PYTHON LINTER

# python-linter:
# runs-on: ubuntu-22.04
# steps:

# - name: Python Linter
# uses: eProsima/eProsima-CI/ubuntu/python_linter@v0
2 changes: 1 addition & 1 deletion ddsrecorder/test/blackbox/mcap/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ set(TEST_SOURCES

set(TEST_LIST
mcap_data_msgs
mcap_dds_topic
mcap_data_topic
mcap_ros2_topic
mcap_data_num_msgs
mcap_data_num_msgs_downsampling
Expand Down
Loading

0 comments on commit 758943a

Please sign in to comment.