From 85cbf7486b3bf1a4fabc8d6ea6ce72b81d6235c8 Mon Sep 17 00:00:00 2001 From: Kristoffer Date: Wed, 27 Nov 2024 19:55:20 +0100 Subject: [PATCH 1/2] run with -O0 unless on release or backport branch --- .buildkite/runtests.yml | 22 ++++++++++++++++++---- 1 file changed, 18 insertions(+), 4 deletions(-) diff --git a/.buildkite/runtests.yml b/.buildkite/runtests.yml index 0843d7e..0f96db0 100644 --- a/.buildkite/runtests.yml +++ b/.buildkite/runtests.yml @@ -1,4 +1,3 @@ ---- steps: # Linux x86_64 - label: ":linux: linux-x86_64" @@ -15,8 +14,13 @@ steps: - JuliaCI/julia#v1: version: "nightly" command: | + if [[ "${BUILDKITE_BRANCH}" =~ ^backports-release-.*$ || "${BUILDKITE_BRANCH}" =~ ^release-.*$ ]]; then + OPT_LEVEL=2 + else + OPT_LEVEL=0 + fi julia --color=yes --project=.ci -e 'using Pkg; Pkg.instantiate()' - julia --color=yes --project=.ci .ci/create_sysimage_and_run_tests.jl + julia --color=yes --project=.ci --optimize=$OPT_LEVEL .ci/create_sysimage_and_run_tests.jl agents: queue: "julia" os: "linux" @@ -29,8 +33,13 @@ steps: - JuliaCI/julia#v1: version: "nightly" command: | + if [[ "${BUILDKITE_BRANCH}" =~ ^backports-release-.*$ || "${BUILDKITE_BRANCH}" =~ ^release-.*$ ]]; then + OPT_LEVEL=2 + else + OPT_LEVEL=0 + fi julia --color=yes --project=.ci -e 'using Pkg; Pkg.instantiate()' - julia --color=yes --project=.ci .ci/create_sysimage_and_run_tests.jl + julia --color=yes --project=.ci --optimize=$OPT_LEVEL .ci/create_sysimage_and_run_tests.jl agents: queue: "julia" os: "macos" @@ -41,8 +50,13 @@ steps: - JuliaCI/julia#v1: version: "nightly" command: | + if [[ "${BUILDKITE_BRANCH}" =~ ^backports-release-.*$ || "${BUILDKITE_BRANCH}" =~ ^release-.*$ ]]; then + OPT_LEVEL=2 + else + OPT_LEVEL=0 + fi julia --color=yes --project=.ci -e 'using Pkg; Pkg.instantiate()' - julia --color=yes --project=.ci .ci/create_sysimage_and_run_tests.jl + julia --color=yes --project=.ci --optimize=$OPT_LEVEL .ci/create_sysimage_and_run_tests.jl agents: queue: "julia" os: "windows" From 9aaf34a0b3addca1c5624756b540b20dd21a40dd Mon Sep 17 00:00:00 2001 From: Kristoffer Carlsson Date: Wed, 27 Nov 2024 22:10:31 +0100 Subject: [PATCH 2/2] Update runtests.yml --- .buildkite/runtests.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.buildkite/runtests.yml b/.buildkite/runtests.yml index 0f96db0..c73508d 100644 --- a/.buildkite/runtests.yml +++ b/.buildkite/runtests.yml @@ -20,7 +20,7 @@ steps: OPT_LEVEL=0 fi julia --color=yes --project=.ci -e 'using Pkg; Pkg.instantiate()' - julia --color=yes --project=.ci --optimize=$OPT_LEVEL .ci/create_sysimage_and_run_tests.jl + julia --color=yes --project=.ci --optimize=$${OPT_LEVEL} .ci/create_sysimage_and_run_tests.jl agents: queue: "julia" os: "linux" @@ -39,7 +39,7 @@ steps: OPT_LEVEL=0 fi julia --color=yes --project=.ci -e 'using Pkg; Pkg.instantiate()' - julia --color=yes --project=.ci --optimize=$OPT_LEVEL .ci/create_sysimage_and_run_tests.jl + julia --color=yes --project=.ci --optimize=$${OPT_LEVEL} .ci/create_sysimage_and_run_tests.jl agents: queue: "julia" os: "macos" @@ -56,7 +56,7 @@ steps: OPT_LEVEL=0 fi julia --color=yes --project=.ci -e 'using Pkg; Pkg.instantiate()' - julia --color=yes --project=.ci --optimize=$OPT_LEVEL .ci/create_sysimage_and_run_tests.jl + julia --color=yes --project=.ci --optimize=$${OPT_LEVEL} .ci/create_sysimage_and_run_tests.jl agents: queue: "julia" os: "windows"