aboutsummaryrefslogtreecommitdiff
path: root/.ci
diff options
context:
space:
mode:
authorVitaly Buka <vitalybuka@google.com>2024-01-10 10:39:33 -0800
committerGitHub <noreply@github.com>2024-01-10 10:39:33 -0800
commit004ec8ea1e9bd775246dba4eb93c1025bedaa5bd (patch)
treedc4f11b1e51884819994a380a7fb258ce1e4362f /.ci
parent04f77a1320e14560543e3b876f11804fa50a45ff (diff)
downloadllvm-004ec8ea1e9bd775246dba4eb93c1025bedaa5bd.zip
llvm-004ec8ea1e9bd775246dba4eb93c1025bedaa5bd.tar.gz
llvm-004ec8ea1e9bd775246dba4eb93c1025bedaa5bd.tar.bz2
[ci] Set timeout for individual tests and report slowest tests (#76300)
There are builds like https://buildkite.com/llvm-project/github-pull-requests/builds/24894 It looks like a deadlock in a test, but we can't see which one. `--timeout=` will make lit kill and report such tests. `--time-tests` produces nice report about slowest test, so we can tune them over time. The same build as above with new flags https://buildkite.com/llvm-project/github-pull-requests/builds/24961
Diffstat (limited to '.ci')
-rwxr-xr-x.ci/monolithic-linux.sh2
-rwxr-xr-x.ci/monolithic-windows.sh2
2 files changed, 2 insertions, 2 deletions
diff --git a/.ci/monolithic-linux.sh b/.ci/monolithic-linux.sh
index f0577d1..1e7b2d2 100755
--- a/.ci/monolithic-linux.sh
+++ b/.ci/monolithic-linux.sh
@@ -45,7 +45,7 @@ cmake -S ${MONOREPO_ROOT}/llvm -B ${BUILD_DIR} \
-D LLVM_ENABLE_ASSERTIONS=ON \
-D LLVM_BUILD_EXAMPLES=ON \
-D COMPILER_RT_BUILD_LIBFUZZER=OFF \
- -D LLVM_LIT_ARGS="-v --xunit-xml-output ${BUILD_DIR}/test-results.xml" \
+ -D LLVM_LIT_ARGS="-v --xunit-xml-output ${BUILD_DIR}/test-results.xml --timeout=1200 --time-tests" \
-D LLVM_ENABLE_LLD=ON \
-D CMAKE_CXX_FLAGS=-gmlt \
-D BOLT_CLANG_EXE=/usr/bin/clang \
diff --git a/.ci/monolithic-windows.sh b/.ci/monolithic-windows.sh
index 7ac806a..a704e85 100755
--- a/.ci/monolithic-windows.sh
+++ b/.ci/monolithic-windows.sh
@@ -45,7 +45,7 @@ cmake -S ${MONOREPO_ROOT}/llvm -B ${BUILD_DIR} \
-D LLVM_ENABLE_ASSERTIONS=ON \
-D LLVM_BUILD_EXAMPLES=ON \
-D COMPILER_RT_BUILD_LIBFUZZER=OFF \
- -D LLVM_LIT_ARGS="-v --xunit-xml-output ${BUILD_DIR}/test-results.xml" \
+ -D LLVM_LIT_ARGS="-v --xunit-xml-output ${BUILD_DIR}/test-results.xml --timeout=1200 --time-tests" \
-D COMPILER_RT_BUILD_ORC=OFF \
-D CMAKE_C_COMPILER_LAUNCHER=sccache \
-D CMAKE_CXX_COMPILER_LAUNCHER=sccache \