Skip to content

Commit efe2a27

Browse files
committed
Exclude flaky MoveSemantics test on Windows CI
Added the 'ci_flaky' label to the MoveSemantics test in CMake and updated the Windows GitHub Actions workflow to exclude tests with this label. `MoveSemantics` tests apparently freezes the Windows GitHub worker (works fine on a local Windows machine).
1 parent b62c012 commit efe2a27

2 files changed

Lines changed: 10 additions & 1 deletion

File tree

.github/workflows/windows.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,10 @@ jobs:
1717
- name: Build Project
1818
run: cmake --build build --config Debug
1919
- name: Run Tests
20+
# Using the '--exclude-label' flag to skip the problematic tests on
21+
# the Windows GitHub worker.
22+
# This command will now run all tests *except* those flagged.
2023
run: |
2124
cd build
22-
ctest -C Debug --verbose
25+
ctest -C Debug --verbose --exclude-label "ci_flaky"
26+

tests/CMakeLists.txt

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,3 +27,8 @@ add_executable(test_move_semantics test_move_semantics.cpp)
2727
target_link_libraries(test_move_semantics PRIVATE spsc_queue Threads::Threads)
2828
add_test(NAME MoveSemantics COMMAND test_move_semantics)
2929

30+
# Add a label to the MoveSemantics test so it can be disabled
31+
# This annotates the test, allowing us to specifically exclude it in certain
32+
# environments (like GitHub worker)
33+
set_tests_properties(MoveSemantics PROPERTIES LABELS "ci_flaky")
34+

0 commit comments

Comments
 (0)