Skip to content

Commit

Permalink
CI (code coverage): run some tests in serial (#41507)
Browse files Browse the repository at this point in the history
(cherry picked from commit 9564bfb)
  • Loading branch information
DilumAluthge authored and KristofferC committed Sep 3, 2021
1 parent 248ccdd commit ebbe1c7
Show file tree
Hide file tree
Showing 5 changed files with 30 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .buildkite/0_webui.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,4 +21,4 @@ steps:
# verifies the treehash of the pipeline itself and the inputs listed in `inputs`
signed_pipelines:
- pipeline: .buildkite/signed_pipeline_test.yml
signature: "U2FsdGVkX18aZgryp6AJTArgD2uOnVWyFFGVOP5qsY4WbGQ/LVAcYiMEp9cweV+2iht+vmEF949CuuGTeQPA1fKlhPwkG3nZ688752DUB6en9oM2nuL31NoDKWHhpygZ"
signature: "U2FsdGVkX18ZrMlORSIi0TvW99eZ3JyUEhntMyXjrOSJ9jAtUohgHc8+dMnWUc6qWjYt8k63wfPrth33SGWDiF814Bm1W5Zk3+R6HgVu6UCrQEI5sLm+SJPbrvET+Jkn"
2 changes: 1 addition & 1 deletion .buildkite/coverage-linux64/0_webui.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,4 @@ steps:
# verifies the treehash of the pipeline itself and the inputs listed in `inputs`
signed_pipelines:
- pipeline: .buildkite/coverage-linux64/pipeline.yml
signature: "U2FsdGVkX18eQWpd3hMYLO5Kd+6K+oBoLk1I6J3qIw7lc6g5/jaeWyq/wralosZCfTzyjS4NstNKFvhQf3KDPEBVElipNvTxoWOjVLRVOrfBqqvTkQN4xVosY/r026Gy"
signature: U2FsdGVkX190BiaBGCTT6GNBDe5cHX3ZAP0IXbBfOWo7ys+1IuD5ymf4ImJbRIeE8NQac+iqud+bqCPHjii6DKmqzX+Jz6vax1NY3AxROhYlO5spUClvKr1wdngUCQON
15 changes: 12 additions & 3 deletions .buildkite/coverage-linux64/pipeline.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,18 @@ steps:
# this is necessary to make sure that the LibGit2 tests passes
git config --global init.defaultBranch master
echo "--- Run Julia tests with code coverage enabled"
# Run the actual tests
./julia --code-coverage=all --sysimage-native-code=no .buildkite/coverage-linux64/run_tests_base.jl
echo "--- Run some Julia tests in serial"
./julia --code-coverage=all --sysimage-native-code=no .buildkite/coverage-linux64/run_tests_serial.jl test/compiler/codegen.jl
./julia --code-coverage=all --sysimage-native-code=no .buildkite/coverage-linux64/run_tests_serial.jl test/compiler/contextual.jl
./julia --code-coverage=all --sysimage-native-code=no .buildkite/coverage-linux64/run_tests_serial.jl test/compiler/inference.jl
./julia --code-coverage=all --sysimage-native-code=no .buildkite/coverage-linux64/run_tests_serial.jl test/compiler/inline.jl
./julia --code-coverage=all --sysimage-native-code=no .buildkite/coverage-linux64/run_tests_serial.jl test/compiler/interpreter_exec.jl
./julia --code-coverage=all --sysimage-native-code=no .buildkite/coverage-linux64/run_tests_serial.jl test/compiler/irpasses.jl
./julia --code-coverage=all --sysimage-native-code=no .buildkite/coverage-linux64/run_tests_serial.jl test/compiler/ssair.jl
./julia --code-coverage=all --sysimage-native-code=no .buildkite/coverage-linux64/run_tests_serial.jl test/compiler/validation.jl
echo "--- Run Julia tests in parallel with code coverage enabled"
./julia --code-coverage=all --sysimage-native-code=no .buildkite/coverage-linux64/run_tests_parallel.jl
echo "--- Process and upload coverage information"
./julia .buildkite/coverage-linux64/upload_coverage.jl
Expand Down
16 changes: 16 additions & 0 deletions .buildkite/coverage-linux64/run_tests_serial.jl
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
using Test

const repository_root = dirname(dirname(@__DIR__))

for filename in ARGS
path = joinpath(repository_root, filename)
@info "Starting $(filename)"
try
@testset "$(filename)" begin
include(path)
end
catch ex
@error "" exception=(ex, catch_backtrace())
end
@info "Finished $(filename)"
end

0 comments on commit ebbe1c7

Please sign in to comment.