From 58d200b0ba4557a1ecb1ab3d0d3e1102da71b498 Mon Sep 17 00:00:00 2001 From: Gabriel Baraldi Date: Mon, 13 Nov 2023 16:01:04 -0300 Subject: [PATCH 1/2] Make llvmpasses depend on the asserts build so we don't waste CI time --- pipelines/main/misc/llvmpasses.yml | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/pipelines/main/misc/llvmpasses.yml b/pipelines/main/misc/llvmpasses.yml index a096fcba..4ac6881d 100644 --- a/pipelines/main/misc/llvmpasses.yml +++ b/pipelines/main/misc/llvmpasses.yml @@ -3,9 +3,9 @@ steps: steps: - label: "llvmpasses" key: "llvmpasses" - # Wait until `build-x86_64-linux-gnu` is finished, so that we only see build errors once + # Wait until `build-x86_64-linux-gnuassert` is finished, so we don't build julia an extra time depends_on: - - "build_x86_64-linux-gnu" + - "build_x86_64-linux-gnuassert" plugins: - JuliaCI/julia#v1: # Drop default "registries" directory, so it is not persisted from execution to execution @@ -23,7 +23,11 @@ steps: # Enable Julia assertions: FORCE_ASSERTIONS=1 # Enable LLVM assertions: LLVM_ASSERTIONS=1 export MAKE_ASSERT_FLAGS="FORCE_ASSERTIONS=1 LLVM_ASSERTIONS=1" - make --output-sync -j$${JULIA_CPU_THREADS:?} release JULIA_PRECOMPILE=0 $${MAKE_ASSERT_FLAGS:?} + # Download pre-built julia, extract into `usr/` + buildkite-agent artifact download --step "build_x86_64-linux-gnuassert" 'julia-*-linuxassert-x86_64.tar.gz' . + mkdir -p ./usr + tar -C ./usr --strip-components=1 -zxf julia-*-linux-x86_64.tar.gz + ln -s ./usr/bin/julia ./julia echo "--- make src/install-analysis-deps" make --output-sync -j$${JULIA_CPU_THREADS:?} -C src install-analysis-deps $${MAKE_ASSERT_FLAGS:?} echo "+++ make test/llvmpasses" From cadbcb779237f4067594794429eba836bcd43770 Mon Sep 17 00:00:00 2001 From: Valentin Churavy Date: Mon, 13 Nov 2023 15:48:12 -0500 Subject: [PATCH 2/2] Update pipelines/main/misc/llvmpasses.yml --- pipelines/main/misc/llvmpasses.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pipelines/main/misc/llvmpasses.yml b/pipelines/main/misc/llvmpasses.yml index 4ac6881d..5bae549a 100644 --- a/pipelines/main/misc/llvmpasses.yml +++ b/pipelines/main/misc/llvmpasses.yml @@ -26,7 +26,7 @@ steps: # Download pre-built julia, extract into `usr/` buildkite-agent artifact download --step "build_x86_64-linux-gnuassert" 'julia-*-linuxassert-x86_64.tar.gz' . mkdir -p ./usr - tar -C ./usr --strip-components=1 -zxf julia-*-linux-x86_64.tar.gz + tar -C ./usr --strip-components=1 -zxf julia-*-linuxassert-x86_64.tar.gz ln -s ./usr/bin/julia ./julia echo "--- make src/install-analysis-deps" make --output-sync -j$${JULIA_CPU_THREADS:?} -C src install-analysis-deps $${MAKE_ASSERT_FLAGS:?}