From e02935be99eee44ec557223b5f226149550d78d7 Mon Sep 17 00:00:00 2001 From: Zentrik Date: Fri, 26 Apr 2024 15:52:20 +0100 Subject: [PATCH 1/8] Switch CI to buildkite --- .buildkite/pipeline.yml | 38 ++++++++++++++++++------- .github/workflows/CI.yml | 61 ---------------------------------------- 2 files changed, 28 insertions(+), 71 deletions(-) delete mode 100644 .github/workflows/CI.yml diff --git a/.buildkite/pipeline.yml b/.buildkite/pipeline.yml index e90054d8..811000e6 100644 --- a/.buildkite/pipeline.yml +++ b/.buildkite/pipeline.yml @@ -1,12 +1,30 @@ --- steps: - - label: ":test_tube: Test the package" - plugins: - - JuliaCI/julia#v1: - version: "1" - commands: | - julia --version - agents: - queue: "juliaecosystem" - os: "linux" - arch: "x86_64" + branches: "master" + label: "Julia {{ matrix.version }} - {{ github.event_name }}" + plugins: + - JuliaCI/julia#v1: + version: "{{ matrix.version }}" + - JuliaCI/julia-test#v1: + - JuliaCI/julia-coverage#v1: + agents: + queue: "juliaecosystem" + sandbox.jl: "true" + os: "linux" + arch: "x86_64" + timeout_in_minutes: 60 + matrix: + setup: + version: + - "1.0" + - "1.5" + - "1.6" + - "1.7" + - "1.8" + - "1.9" + - "1" + - "nightly" + adjustments: + - with: + version: "nightly" + soft_fail: true diff --git a/.github/workflows/CI.yml b/.github/workflows/CI.yml deleted file mode 100644 index 082a9ad3..00000000 --- a/.github/workflows/CI.yml +++ /dev/null @@ -1,61 +0,0 @@ -name: CI -on: - pull_request: - branches: - - master - push: - branches: - - master - tags: '*' -jobs: - test: - name: Julia ${{ matrix.version }} - ${{ matrix.os }} - ${{ matrix.arch }} - ${{ github.event_name }} - runs-on: ${{ matrix.os }} - continue-on-error: ${{ matrix.julia-version == 'nightly' }} - strategy: - fail-fast: false - matrix: - version: - - '1.0' - - '1.6' - - '1' - - 'nightly' - arch: - - x64 - os: - - ubuntu-latest - include: - - version: '1.5' - arch: x64 - os: ubuntu-20.04 - - version: '1.7' - arch: x64 - os: ubuntu-20.04 - - version: '1.8' - arch: x64 - os: ubuntu-22.04 - - version: '1.9' - arch: x64 - os: ubuntu-22.04 - steps: - - uses: actions/checkout@v4 - - uses: julia-actions/setup-julia@v1 - with: - version: ${{ matrix.version }} - arch: ${{ matrix.arch }} - - uses: actions/cache@v4 - env: - cache-name: cache-artifacts - with: - path: ~/.julia/artifacts - key: ${{ runner.os }}-test-${{ env.cache-name }}-${{ hashFiles('**/Project.toml') }} - restore-keys: | - ${{ runner.os }}-test-${{ env.cache-name }}- - ${{ runner.os }}-test- - ${{ runner.os }}- - - uses: julia-actions/julia-buildpkg@v1 - - uses: julia-actions/julia-runtest@v1 - - uses: julia-actions/julia-processcoverage@v1 - - uses: codecov/codecov-action@v3 - with: - file: lcov.info From 503aaeebb5189612373d3728a52527dfed89a370 Mon Sep 17 00:00:00 2001 From: Zentrik Date: Fri, 26 Apr 2024 16:05:33 +0100 Subject: [PATCH 2/8] Fix --- .buildkite/pipeline.yml | 56 ++++++++++++++++++++--------------------- 1 file changed, 28 insertions(+), 28 deletions(-) diff --git a/.buildkite/pipeline.yml b/.buildkite/pipeline.yml index 811000e6..b4d671e7 100644 --- a/.buildkite/pipeline.yml +++ b/.buildkite/pipeline.yml @@ -1,30 +1,30 @@ --- steps: - branches: "master" - label: "Julia {{ matrix.version }} - {{ github.event_name }}" - plugins: - - JuliaCI/julia#v1: - version: "{{ matrix.version }}" - - JuliaCI/julia-test#v1: - - JuliaCI/julia-coverage#v1: - agents: - queue: "juliaecosystem" - sandbox.jl: "true" - os: "linux" - arch: "x86_64" - timeout_in_minutes: 60 - matrix: - setup: - version: - - "1.0" - - "1.5" - - "1.6" - - "1.7" - - "1.8" - - "1.9" - - "1" - - "nightly" - adjustments: - - with: - version: "nightly" - soft_fail: true + - label: "Julia {{ matrix.version }} - {{ github.event_name }}" + branches: "master" + plugins: + - JuliaCI/julia#v1: + version: "{{ matrix.version }}" + - JuliaCI/julia-test#v1: + - JuliaCI/julia-coverage#v1: + agents: + queue: "juliaecosystem" + sandbox.jl: "true" + os: "linux" + arch: "x86_64" + timeout_in_minutes: 60 + matrix: + setup: + version: + - "1.0" + - "1.5" + - "1.6" + - "1.7" + - "1.8" + - "1.9" + - "1" + - "nightly" + adjustments: + - with: + version: "nightly" + soft_fail: true From 87e048fd744a7c2eff3c98bc1ec025165722674e Mon Sep 17 00:00:00 2001 From: Zentrik Date: Fri, 26 Apr 2024 16:06:25 +0100 Subject: [PATCH 3/8] Remove branches as it seems to disable CI for PRs --- .buildkite/pipeline.yml | 1 - 1 file changed, 1 deletion(-) diff --git a/.buildkite/pipeline.yml b/.buildkite/pipeline.yml index b4d671e7..f601a019 100644 --- a/.buildkite/pipeline.yml +++ b/.buildkite/pipeline.yml @@ -1,7 +1,6 @@ --- steps: - label: "Julia {{ matrix.version }} - {{ github.event_name }}" - branches: "master" plugins: - JuliaCI/julia#v1: version: "{{ matrix.version }}" From f6aac629809d2522cab1adc8c7f5e79e20edaf96 Mon Sep 17 00:00:00 2001 From: Zentrik Date: Fri, 26 Apr 2024 16:08:15 +0100 Subject: [PATCH 4/8] Remove event name as it doesn't seem to be supported --- .buildkite/pipeline.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.buildkite/pipeline.yml b/.buildkite/pipeline.yml index f601a019..8961fc6e 100644 --- a/.buildkite/pipeline.yml +++ b/.buildkite/pipeline.yml @@ -1,6 +1,6 @@ --- steps: - - label: "Julia {{ matrix.version }} - {{ github.event_name }}" + - label: "Julia {{ matrix.version }}" plugins: - JuliaCI/julia#v1: version: "{{ matrix.version }}" From 5398eea1aa29c3317ffd3bf6b257231e17441126 Mon Sep 17 00:00:00 2001 From: Zentrik Date: Thu, 2 May 2024 21:01:12 +0100 Subject: [PATCH 5/8] Try parallelism --- .buildkite/pipeline.yml | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/.buildkite/pipeline.yml b/.buildkite/pipeline.yml index 8961fc6e..0099528e 100644 --- a/.buildkite/pipeline.yml +++ b/.buildkite/pipeline.yml @@ -11,12 +11,11 @@ steps: sandbox.jl: "true" os: "linux" arch: "x86_64" + parallelism: 8 timeout_in_minutes: 60 matrix: setup: version: - - "1.0" - - "1.5" - "1.6" - "1.7" - "1.8" From ef4546112ec347ab06ca9d527e6e36fb5776f691 Mon Sep 17 00:00:00 2001 From: Zentrik Date: Thu, 2 May 2024 21:05:07 +0100 Subject: [PATCH 6/8] Parallelism Take 2 --- .buildkite/pipeline.yml | 97 ++++++++++++++++++++++++++++++----------- 1 file changed, 72 insertions(+), 25 deletions(-) diff --git a/.buildkite/pipeline.yml b/.buildkite/pipeline.yml index 0099528e..295132b1 100644 --- a/.buildkite/pipeline.yml +++ b/.buildkite/pipeline.yml @@ -1,28 +1,75 @@ --- steps: - - label: "Julia {{ matrix.version }}" - plugins: - - JuliaCI/julia#v1: - version: "{{ matrix.version }}" - - JuliaCI/julia-test#v1: - - JuliaCI/julia-coverage#v1: - agents: - queue: "juliaecosystem" - sandbox.jl: "true" - os: "linux" - arch: "x86_64" - parallelism: 8 - timeout_in_minutes: 60 - matrix: - setup: - version: - - "1.6" - - "1.7" - - "1.8" - - "1.9" - - "1" - - "nightly" - adjustments: - - with: + - label: "Julia 1.6" + plugins: + - JuliaCI/julia#v1: + version: "1.6" + - JuliaCI/julia-test#v1: + - JuliaCI/julia-coverage#v1: + agents: + queue: "juliaecosystem" + sandbox.jl: "true" + os: "linux" + arch: "x86_64" + timeout_in_minutes: 10 + - label: "Julia 1.7" + plugins: + - JuliaCI/julia#v1: + version: "1.7" + - JuliaCI/julia-test#v1: + - JuliaCI/julia-coverage#v1: + agents: + queue: "juliaecosystem" + sandbox.jl: "true" + os: "linux" + arch: "x86_64" + timeout_in_minutes: 10 + - label: "Julia 1.8" + plugins: + - JuliaCI/julia#v1: + version: "1.8" + - JuliaCI/julia-test#v1: + - JuliaCI/julia-coverage#v1: + agents: + queue: "juliaecosystem" + sandbox.jl: "true" + os: "linux" + arch: "x86_64" + timeout_in_minutes: 10 + - label: "Julia 1.9" + plugins: + - JuliaCI/julia#v1: + version: "1.9" + - JuliaCI/julia-test#v1: + - JuliaCI/julia-coverage#v1: + agents: + queue: "juliaecosystem" + sandbox.jl: "true" + os: "linux" + arch: "x86_64" + timeout_in_minutes: 10 + - label: "Julia 1" + plugins: + - JuliaCI/julia#v1: + version: "1" + - JuliaCI/julia-test#v1: + - JuliaCI/julia-coverage#v1: + agents: + queue: "juliaecosystem" + sandbox.jl: "true" + os: "linux" + arch: "x86_64" + timeout_in_minutes: 10 + - label: "Julia nightly" + plugins: + - JuliaCI/julia#v1: version: "nightly" - soft_fail: true + - JuliaCI/julia-test#v1: + - JuliaCI/julia-coverage#v1: + agents: + queue: "juliaecosystem" + sandbox.jl: "true" + os: "linux" + arch: "x86_64" + timeout_in_minutes: 10 + soft_fail: true From bf1e10ee3a791c82ae8c8554ec0848fecbffb12b Mon Sep 17 00:00:00 2001 From: Zentrik Date: Thu, 2 May 2024 21:07:58 +0100 Subject: [PATCH 7/8] Fix indentation --- .buildkite/pipeline.yml | 134 ++++++++++++++++++++-------------------- 1 file changed, 67 insertions(+), 67 deletions(-) diff --git a/.buildkite/pipeline.yml b/.buildkite/pipeline.yml index 295132b1..fe8bfd35 100644 --- a/.buildkite/pipeline.yml +++ b/.buildkite/pipeline.yml @@ -1,75 +1,75 @@ --- steps: - label: "Julia 1.6" - plugins: - - JuliaCI/julia#v1: - version: "1.6" - - JuliaCI/julia-test#v1: - - JuliaCI/julia-coverage#v1: - agents: - queue: "juliaecosystem" - sandbox.jl: "true" - os: "linux" - arch: "x86_64" - timeout_in_minutes: 10 + plugins: + - JuliaCI/julia#v1: + version: "1.6" + - JuliaCI/julia-test#v1: + - JuliaCI/julia-coverage#v1: + agents: + queue: "juliaecosystem" + sandbox.jl: "true" + os: "linux" + arch: "x86_64" + timeout_in_minutes: 60 - label: "Julia 1.7" - plugins: - - JuliaCI/julia#v1: - version: "1.7" - - JuliaCI/julia-test#v1: - - JuliaCI/julia-coverage#v1: - agents: - queue: "juliaecosystem" - sandbox.jl: "true" - os: "linux" - arch: "x86_64" - timeout_in_minutes: 10 + plugins: + - JuliaCI/julia#v1: + version: "1.7" + - JuliaCI/julia-test#v1: + - JuliaCI/julia-coverage#v1: + agents: + queue: "juliaecosystem" + sandbox.jl: "true" + os: "linux" + arch: "x86_64" + timeout_in_minutes: 60 - label: "Julia 1.8" - plugins: - - JuliaCI/julia#v1: - version: "1.8" - - JuliaCI/julia-test#v1: - - JuliaCI/julia-coverage#v1: - agents: - queue: "juliaecosystem" - sandbox.jl: "true" - os: "linux" - arch: "x86_64" - timeout_in_minutes: 10 + plugins: + - JuliaCI/julia#v1: + version: "1.8" + - JuliaCI/julia-test#v1: + - JuliaCI/julia-coverage#v1: + agents: + queue: "juliaecosystem" + sandbox.jl: "true" + os: "linux" + arch: "x86_64" + timeout_in_minutes: 60 - label: "Julia 1.9" - plugins: - - JuliaCI/julia#v1: - version: "1.9" - - JuliaCI/julia-test#v1: - - JuliaCI/julia-coverage#v1: - agents: - queue: "juliaecosystem" - sandbox.jl: "true" - os: "linux" - arch: "x86_64" - timeout_in_minutes: 10 + plugins: + - JuliaCI/julia#v1: + version: "1.9" + - JuliaCI/julia-test#v1: + - JuliaCI/julia-coverage#v1: + agents: + queue: "juliaecosystem" + sandbox.jl: "true" + os: "linux" + arch: "x86_64" + timeout_in_minutes: 60 - label: "Julia 1" - plugins: - - JuliaCI/julia#v1: - version: "1" - - JuliaCI/julia-test#v1: - - JuliaCI/julia-coverage#v1: - agents: - queue: "juliaecosystem" - sandbox.jl: "true" - os: "linux" - arch: "x86_64" - timeout_in_minutes: 10 + plugins: + - JuliaCI/julia#v1: + version: "1" + - JuliaCI/julia-test#v1: + - JuliaCI/julia-coverage#v1: + agents: + queue: "juliaecosystem" + sandbox.jl: "true" + os: "linux" + arch: "x86_64" + timeout_in_minutes: 60 - label: "Julia nightly" - plugins: - - JuliaCI/julia#v1: - version: "nightly" - - JuliaCI/julia-test#v1: - - JuliaCI/julia-coverage#v1: - agents: - queue: "juliaecosystem" - sandbox.jl: "true" - os: "linux" - arch: "x86_64" - timeout_in_minutes: 10 - soft_fail: true + plugins: + - JuliaCI/julia#v1: + version: "nightly" + - JuliaCI/julia-test#v1: + - JuliaCI/julia-coverage#v1: + agents: + queue: "juliaecosystem" + sandbox.jl: "true" + os: "linux" + arch: "x86_64" + timeout_in_minutes: 60 + soft_fail: true From 4d80b006fb9e7d6173c424bd21406a9ead5db0c5 Mon Sep 17 00:00:00 2001 From: Zentrik Date: Thu, 2 May 2024 21:11:12 +0100 Subject: [PATCH 8/8] Reduce timeout Also test if builds get cancelled on new commit. --- .buildkite/pipeline.yml | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/.buildkite/pipeline.yml b/.buildkite/pipeline.yml index fe8bfd35..1ebbd6b5 100644 --- a/.buildkite/pipeline.yml +++ b/.buildkite/pipeline.yml @@ -11,7 +11,7 @@ steps: sandbox.jl: "true" os: "linux" arch: "x86_64" - timeout_in_minutes: 60 + timeout_in_minutes: 15 - label: "Julia 1.7" plugins: - JuliaCI/julia#v1: @@ -23,7 +23,7 @@ steps: sandbox.jl: "true" os: "linux" arch: "x86_64" - timeout_in_minutes: 60 + timeout_in_minutes: 15 - label: "Julia 1.8" plugins: - JuliaCI/julia#v1: @@ -35,7 +35,7 @@ steps: sandbox.jl: "true" os: "linux" arch: "x86_64" - timeout_in_minutes: 60 + timeout_in_minutes: 15 - label: "Julia 1.9" plugins: - JuliaCI/julia#v1: @@ -47,7 +47,7 @@ steps: sandbox.jl: "true" os: "linux" arch: "x86_64" - timeout_in_minutes: 60 + timeout_in_minutes: 15 - label: "Julia 1" plugins: - JuliaCI/julia#v1: @@ -59,7 +59,7 @@ steps: sandbox.jl: "true" os: "linux" arch: "x86_64" - timeout_in_minutes: 60 + timeout_in_minutes: 15 - label: "Julia nightly" plugins: - JuliaCI/julia#v1: @@ -71,5 +71,5 @@ steps: sandbox.jl: "true" os: "linux" arch: "x86_64" - timeout_in_minutes: 60 + timeout_in_minutes: 15 soft_fail: true