Skip to content

Commit 2541637

Browse files
authored
CI: Prevent hanging druntime/Phobos unit/integration tests (#4850)
I've seen them hanging yesterday for Linux aarch64 GHA, still running that step after 17 mins.
1 parent d4dab47 commit 2541637

File tree

4 files changed

+5
-5
lines changed

4 files changed

+5
-5
lines changed

.circleci/config.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ commonSteps: &commonSteps
8383
- run:
8484
name: Run defaultlib unittests & druntime integration tests
8585
when: always
86-
command: cd ../build && ctest -j$PARALLELISM --output-on-failure -E "dmd-testsuite|ldc2-unittest|lit-tests"
86+
command: cd ../build && ctest -j$PARALLELISM --output-on-failure -E "dmd-testsuite|ldc2-unittest|lit-tests" --timeout 120
8787

8888
version: 2
8989
jobs:

.cirrus.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ common_steps_template: &COMMON_STEPS_TEMPLATE
4141
run_defaultlib_tests_script: |
4242
# Run defaultlib unittests & druntime integration tests
4343
cd $CIRRUS_WORKING_DIR/../build
44-
ctest -j$PARALLELISM --output-on-failure -E "dmd-testsuite|ldc2-unittest|lit-tests"
44+
ctest -j$PARALLELISM --output-on-failure -E "dmd-testsuite|ldc2-unittest|lit-tests" --timeout 120
4545
4646
# Performs the extra packaging steps for jobs producing a prebuilt package.
4747
# Requires env variables CI_ARCH, CI_OS, GITHUB_TOKEN and PARALLELISM (and CC for FreeBSD).

.github/actions/4d-test-libs/action.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ runs:
2828
excludes+='|^druntime-test-exceptions-debug$'
2929
fi
3030
31-
ctest -j$N --output-on-failure -E "$excludes"
31+
ctest -j$N --output-on-failure -E "$excludes" --timeout 120
3232
3333
- name: 'Windows: Run defaultlib unittests & druntime integration tests'
3434
if: runner.os == 'Windows'
@@ -44,4 +44,4 @@ runs:
4444
call "%LDC_VSDIR%\Common7\Tools\VsDevCmd.bat" -arch=${{ matrix.arch }} || exit /b
4545
echo on
4646
cd build || exit /b
47-
ctest -j4 --output-on-failure -E "dmd-testsuite|lit-tests|ldc2-unittest" || exit /b
47+
ctest -j4 --output-on-failure -E "dmd-testsuite|lit-tests|ldc2-unittest" --timeout 120 || exit /b

.github/workflows/supported_llvm_versions.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -148,4 +148,4 @@ jobs:
148148
else
149149
N=$(nproc)
150150
fi
151-
ctest -j$N --output-on-failure -E "$excludes"
151+
ctest -j$N --output-on-failure -E "$excludes" --timeout 120

0 commit comments

Comments
 (0)