Skip to content

Commit d50d2bc

Browse files
authored
[CI] Increase time limit for macOS clang-test to increase CI time stability (#704)
1 parent 2750488 commit d50d2bc

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

.github/workflows/mac.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,7 @@ jobs:
7777
run: scripts/run_tests.py --running-type="processes" --counts 1 2 3 4
7878
env:
7979
PPC_NUM_THREADS: 1
80+
PPC_TASK_MAX_TIME: 30
8081
- name: Run tests (threads)
8182
run: scripts/run_tests.py --running-type="threads" --counts 1 2 3 4
8283
env:

modules/task/tests/task_tests.cpp

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,9 @@ TEST(TaskTests, CheckInt32t) {
9090
}
9191

9292
TEST(TaskTests, CheckInt32tSlow) {
93+
#ifdef __APPLE__
94+
GTEST_SKIP() << "Skipped on macOS due to time fluctuations.";
95+
#endif
9396
std::vector<int32_t> in(20, 1);
9497
ppc::test::FakeSlowTask<std::vector<int32_t>, int32_t> test_task(in);
9598
ASSERT_EQ(test_task.Validation(), true);
@@ -278,6 +281,9 @@ TEST(TaskTest, TaskDestructorThrowsIfEmpty) {
278281
}
279282

280283
TEST(TaskTest, InternalTimeTestThrowsIfTimeoutExceeded) {
284+
#ifdef __APPLE__
285+
GTEST_SKIP() << "Skipped on macOS due to time fluctuations.";
286+
#endif
281287
struct SlowTask : Task<std::vector<int32_t>, int32_t> {
282288
explicit SlowTask(const std::vector<int32_t> &in) {
283289
this->GetInput() = in;

0 commit comments

Comments
 (0)