Skip to content

Commit 90bebe3

Browse files
Split Windows nightly tests using name filter regex (#5498)
* Split test using name filter regex Signed-off-by: Raul Sanchez-Mateos <[email protected]> * Run unit tests in parallel Signed-off-by: Miguel Company <[email protected]> * Use matrix variable to define test expresion Signed-off-by: Miguel Company <[email protected]> * Add more tests to sequential job Signed-off-by: Miguel Company <[email protected]> * Customize job name Signed-off-by: Miguel Company <[email protected]> * Reorder matrix Signed-off-by: Miguel Company <[email protected]> --------- Signed-off-by: Raul Sanchez-Mateos <[email protected]> Signed-off-by: Miguel Company <[email protected]> Co-authored-by: Miguel Company <[email protected]>
1 parent bd161d7 commit 90bebe3

File tree

1 file changed

+11
-5
lines changed

1 file changed

+11
-5
lines changed

.github/workflows/nightly-windows-master.yml

+11-5
Original file line numberDiff line numberDiff line change
@@ -7,19 +7,25 @@ on:
77

88
jobs:
99
nightly-windows-ci-master:
10+
name: nightly-windows-ci-master (${{ matrix.cmake_build_type }}, SEC=${{ matrix.security }}, ${{ matrix.test_filter }})
1011
strategy:
1112
fail-fast: false
1213
matrix:
14+
cmake_build_type:
15+
- 'RelWithDebInfo'
16+
- 'Debug'
1317
security:
1418
- 'ON'
1519
- 'OFF'
16-
cmake_build_type:
17-
- 'Debug'
18-
- 'RelWithDebInfo'
20+
test_filter:
21+
- 'blackbox'
22+
- 'unittest'
23+
filter_expression:
24+
- 'BlackboxTests|example_tests|ParticipantTests|SecureDiscoverServer'
1925
uses: eProsima/Fast-DDS/.github/workflows/reusable-windows-ci.yml@master
2026
with:
21-
label: 'nightly-sec-${{ matrix.security }}-windows-ci-master'
27+
label: nightly-sec-${{ matrix.security }}-${{ matrix.cmake_build_type }}-${{ matrix.test_filter }}-windows-ci-master
2228
cmake-config: ${{ matrix.cmake_build_type }}
2329
cmake-args: "-DSECURITY=${{ matrix.security }}"
24-
ctest-args: "-LE xfail"
30+
ctest-args: -LE xfail ${{ matrix.test_filter == 'blackbox' && format('-R "{0}"', matrix.filter_expression) || format('-E "{0}" -j 4', matrix.filter_expression) }}
2531
fastdds_branch: 'master'

0 commit comments

Comments
 (0)