Skip to content

Commit

Permalink
buildkite: Skip the tests when a very simple rr run already fails.
Browse files Browse the repository at this point in the history
This could avoid occupying CI infrastructure
when all tests fail like here:
  https://buildkite.com/julialang/rr/builds/1221#01882e04-ac8c-4566-94fd-357bc3466d5b
  • Loading branch information
bernhardu authored and rocallahan committed May 20, 2023
1 parent 4bc3877 commit 2b1cfe9
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion .buildkite/lib/generate.jl
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,13 @@ function generate(platform::Platform)
echo "--- Test"
mkdir -p Testing/Temporary
mv ../.buildkite/CTestCostData.txt Testing/Temporary
julia ../.buildkite/capture_tmpdir.jl ctest --output-on-failure -j\$\$(expr \$\${JULIA_CPU_THREADS:?} - 2)
if bin/rr record bin/simple; then
julia ../.buildkite/capture_tmpdir.jl ctest --output-on-failure -j\$\$(expr \$\${JULIA_CPU_THREADS:?} - 2)
else
echo -n -e "rr seems not able to run, skipping running test suite.\nhostname: "
hostname
exit 1
fi
"""
job_label = "Test $(platform.arch)"
job_key = "test-$(platform.arch)"
Expand Down

0 comments on commit 2b1cfe9

Please sign in to comment.