-
-
Notifications
You must be signed in to change notification settings - Fork 5.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
CI (Buildkite, code coverage): increase the value of JULIA_WORKER_TIMEOUT
on the code coverage job
#42193
Merged
Merged
CI (Buildkite, code coverage): increase the value of JULIA_WORKER_TIMEOUT
on the code coverage job
#42193
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
34 changes: 19 additions & 15 deletions
34
.buildkite/pipelines/scheduled/coverage/run_tests_parallel.jl
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,25 +1,29 @@ | ||
# Important note: even if one or more tests fail, we will still exit with status code 0. | ||
|
||
# | ||
# The reason for this is that we always want to upload code coverage, even if some of the | ||
# tests fail. Therefore, even if the `coverage_linux64` builder passes, you should not | ||
# assume that all of the tests passed. If you want to know if all of the tests are passing, | ||
# please look at the status of the `tester_*` builders (e.g. `tester_linux64`). | ||
|
||
# When running this file, make sure to set all of the following command-line flags: | ||
# 1. `--code-coverage=all` | ||
# 2. `--sysimage-native-code=no` | ||
const ncores = Sys.CPU_THREADS | ||
@info "" Sys.CPU_THREADS | ||
@info "" ncores | ||
|
||
empty!(Base.DEPOT_PATH) | ||
push!(Base.DEPOT_PATH, mktempdir(; cleanup = true)) | ||
script_native_yes = """ | ||
Base.runtests(["cmdlineargs"]; ncores = $(ncores)) | ||
""" | ||
script_native_no = """ | ||
Base.runtests(["all", "--skip", "cmdlineargs"]; ncores = $(ncores)) | ||
""" | ||
|
||
const tests = "all" | ||
const ncores = Sys.CPU_THREADS | ||
base_cmd = `$(Base.julia_cmd()) --code-coverage=all` | ||
cmd_native_yes = `$(base_cmd) --sysimage-native-code=yes -e $(script_native_yes)` | ||
cmd_native_no = `$(base_cmd) --sysimage-native-code=no -e $(script_native_no)` | ||
|
||
@info "" Sys.CPU_THREADS | ||
@info "" tests ncores | ||
@info "Running command" cmd_native_yes | ||
p1 = run(pipeline(cmd_native_yes; stdin, stdout, stderr); wait = false) | ||
wait(p1) | ||
|
||
try | ||
Base.runtests(tests; ncores) | ||
catch ex | ||
@error "" exception=(ex, catch_backtrace()) | ||
end | ||
@info "Running command" cmd_native_no | ||
p2 = run(pipeline(cmd_native_no; stdin, stdout, stderr); wait = false) | ||
wait(p2) |
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
But why is this set at all? It is not a good base configuration.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
My memory is hazy, but if I recall correctly, we didn't use to have this set, and then some job started 256 Julia threads (because the underlying machine had 128 physical cores, 256 CPU threads) and clobbered the whole machine, so we set this variable.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We also set
JULIA_CPU_THREADS
to16
. Maybe that is sufficient, and we can removeJULIA_NUM_THREADS
from the default configuration?There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@staticfloat will probably remember why we set
export JULIA_NUM_THREADS=16
on all the Buildkite agents.Maybe we should set the following configuration on all of the Buildkite agents, just to be safe: