Skip to content

Commit 284529c

Browse files
committed
Speed up CI for integration-test
1 parent 82bdae9 commit 284529c

File tree

2 files changed

+11
-3
lines changed

2 files changed

+11
-3
lines changed

.github/workflows/kafka_api_ci_tests.yml

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -193,7 +193,7 @@ jobs:
193193
194194
- name: Test
195195
if: matrix.test-labels
196-
timeout-minutes: 20
196+
timeout-minutes: 15
197197
run: |
198198
cd ${BUILD_SUB_DIR}
199199
@@ -215,7 +215,14 @@ jobs:
215215
source test.env
216216
fi
217217
218-
# run tests
218+
# Install gtest-parallel
219+
if [[ ${TEST_LABELS} == *'IT'* ]]; then
220+
wget https://github.com/google/gtest-parallel/archive/refs/heads/master.zip
221+
unzip master.zip
222+
export PATH=`pwd`/gtest-parallel-master:$PATH
223+
fi
224+
225+
# Run tests
219226
ctest -VV -L "${TEST_LABELS}"
220227
221228
# Stop Kafka cluster for integration test & regression test

tests/integration/CMakeLists.txt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,8 @@ file(GLOB TEST_SRCS *.cc)
66
add_executable("${PROJECT_NAME}" ${TEST_SRCS})
77
target_link_libraries("${PROJECT_NAME}" modern-cpp-kafka-api gtest gtest_main)
88

9-
add_test(NAME ${PROJECT_NAME} COMMAND ./${PROJECT_NAME})
9+
add_test(NAME ${PROJECT_NAME}
10+
COMMAND gtest-parallel ./${PROJECT_NAME})
1011
set_tests_properties(${PROJECT_NAME} PROPERTIES LABELS "IT")
1112

1213
if (BUILD_OPTION_USE_ASAN OR BUILD_OPTION_USE_TSAN)

0 commit comments

Comments
 (0)