forked from JuliaLang/julia
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request JuliaLang#42217 from JuliaLang/backports-release-1.7
release-1.7: Backports for RC-1.7
- Loading branch information
Showing
31 changed files
with
561 additions
and
331 deletions.
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) |
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
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 |
---|---|---|
@@ -0,0 +1,59 @@ | ||
# Please ping @DilumAluthge when making any changes to this file. | ||
|
||
# Here are some steps that we take in this workflow file for security reasons: | ||
# 1. We do not checkout any code. | ||
# 2. We only run actions that are defined in a repository in the `JuliaLang` GitHub organization. | ||
# 3. We do not give the `GITHUB_TOKEN` any permissions. | ||
# 4. We only give the Buildkite API token (`BUILDKITE_API_TOKEN_RETRY`) the minimum necessary | ||
# set of permissions. | ||
|
||
# Important note to Buildkite maintainers: | ||
# In order to make this work, you need to tell Buildkite that it should NOT create a brand-new | ||
# build when someone closes and reopens a pull request. To do so: | ||
# 1. Go to the relevant pipeline (e.g. https://buildkite.com/julialang/julia-master). | ||
# 2. Click on the "Pipeline Settings" button. | ||
# 3. In the left sidebar, under "Pipeline Settings", click on "GitHub". | ||
# 4. In the "GitHub Settings", under "Build Pull Requests", make sure that the "Skip pull | ||
# request builds for existing commits" checkbox is checked. This is the setting that tells | ||
# Buildkite that it should NOT create a brand-new build when someone closes and reopens a | ||
# pull request. | ||
# 5. At the bottom of the page, click the "Save GitHub Settings" button. | ||
|
||
name: Retry Failed Buildkite Jobs | ||
|
||
on: | ||
# When using the `pull_request_target` event, all PRs will get access to secret environment | ||
# variables (such as the `BUILDKITE_API_TOKEN_RETRY` secret environment variable), even if | ||
# the PR is from a fork. Therefore, for security reasons, we do not checkout any code in | ||
# this workflow. | ||
pull_request_target: | ||
|
||
# TODO: delete the following line (once we have completely transitioned from Buildbot to Buildkite) | ||
types: [ reopened, labeled ] | ||
|
||
# TODO: uncomment the following line (once we have completely transitioned from Buildbot to Buildkite) | ||
# types: [ reopened ] | ||
|
||
# We do not give the `GITHUB_TOKEN` any permissions. | ||
permissions: | ||
statuses: none | ||
|
||
jobs: | ||
retry: | ||
name: retry | ||
runs-on: ubuntu-latest | ||
|
||
# TODO: delete the following line (once we have completely transitioned from Buildbot to Buildkite) | ||
if: github.repository == 'JuliaLang/julia' && (github.event.label.name == 'Buildkite - retry failed jobs' || github.event.action == 'reopened') | ||
|
||
# TODO: uncomment the following line (once we have completely transitioned from Buildbot to Buildkite) | ||
# if: github.repository == 'JuliaLang/julia' | ||
|
||
steps: | ||
# For security reasons, we do not checkout any code in this workflow. | ||
- uses: JuliaLang/retry-buildkite@24e8341f74e0d6760717235eac936db639d7e9eb | ||
with: | ||
buildkite_api_token: ${{ secrets.BUILDKITE_API_TOKEN_RETRY }} | ||
buildkite_organization_slug: 'julialang' | ||
buildkite_pipeline_slug: 'julia-master' | ||
pr_number: ${{github.event.number}} |
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
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
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
Oops, something went wrong.