Skip to content
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

Some experiments on top of #139 #140

Closed
wants to merge 7 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion pipelines/main/launch_unsigned_jobs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,8 @@ steps:
bash .buildkite/utilities/arches_pipeline_upload.sh \
.buildkite/pipelines/main/platforms/build_linux.arches \
.buildkite/pipelines/main/platforms/build_linux.yml
buildkite-agent pipeline upload \
.buildkite/pipelines/main/misc/sanitizers/build_asan.yml
# Launch macOS packaging jobs
GROUP="Build" \
ALLOW_FAIL="false" \
Expand All @@ -55,7 +57,7 @@ steps:
buildkite-agent pipeline upload .buildkite/pipelines/main/misc/llvmpasses.yml
buildkite-agent pipeline upload .buildkite/pipelines/main/misc/whitespace.yml

buildkite-agent pipeline upload .buildkite/pipelines/main/misc/sanitizers/asan.yml
buildkite-agent pipeline upload .buildkite/pipelines/main/misc/sanitizers/check_asan.yml
buildkite-agent pipeline upload .buildkite/pipelines/main/misc/sanitizers/tsan.yml
agents:
queue: "julia"
Expand Down
29 changes: 29 additions & 0 deletions pipelines/main/misc/sanitizers/build_asan.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
steps:
- group: "Build"
steps:
- label: "asan-build"
key: "asan-build"
if: (build.source != "schedule") || (pipeline.slug == "julia-buildkite")
plugins:
- JuliaCI/external-buildkite#v1:
version: "./.buildkite-external-version"
repo_url: "https://github.com/JuliaCI/julia-buildkite"
- JuliaCI/julia#v1:
# Drop default "registries" directory, so it is not persisted from execution to execution
persist_depot_dirs: packages,artifacts,compiled
version: '1.6'
- staticfloat/sandbox#v1:
rootfs_url: https://github.com/JuliaCI/rootfs-images/releases/download/v4.8/llvm_passes.x86_64.tar.gz
rootfs_treehash: "c7a289a8cc544b234b1e2d7cbcce3e6815359ecd"
uid: 1000
gid: 1000
workspaces:
- "/cache/repos:/cache/repos"
timeout_in_minutes: 60
if: | # We only run the `asan` job on Julia 1.8 and later.
(pipeline.slug != "julia-release-1-dot-6") && (pipeline.slug != "julia-release-1-dot-7")
commands: |
echo "--- Build julia-debug with ASAN"
contrib/asan/build.sh ./tmp/test-asan -j$${JULIA_CPU_THREADS:?} debug
artifact_paths:
- tmp/test-asan/asan/**/*
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
steps:
- group: "Check"
steps:
- label: "asan"
key: "asan"
if: (build.source != "schedule") || (pipeline.slug == "julia-buildkite")
- label: "asan-test"
key: "asan-test"
depends_on: "asan-build"
plugins:
- JuliaCI/external-buildkite#v1:
version: "./.buildkite-external-version"
Expand All @@ -19,12 +19,11 @@ steps:
gid: 1000
workspaces:
- "/cache/repos:/cache/repos"
timeout_in_minutes: 120
if: | # We only run the `asan` job on Julia 1.8 and later.
(pipeline.slug != "julia-release-1-dot-6") && (pipeline.slug != "julia-release-1-dot-7")
timeout_in_minutes: 60
soft_fail: true
commands: |
echo "--- Build julia-debug with ASAN"
contrib/asan/build.sh ./tmp/test-asan -j$${JULIA_CPU_THREADS:?} debug
echo "--- Downloading artifact"
buildkite-agent artifact download 'tmp/*' .
echo "--- Run tests"
ASAN_SYMBOLIZER_PATH=$$(pwd)/tmp/test-asan/toolchain/usr/tools/llvm-symbolizer \
tmp/test-asan/asan/usr/bin/julia-debug -e 'Base.runtests(ARGS; ncores = Sys.CPU_THREADS)' \
Expand Down