Skip to content

Commit bec672c

Browse files
authored
Allow reverse testing failure if installation failed. (#409)
1 parent 07a4ab8 commit bec672c

File tree

1 file changed

+34
-27
lines changed

1 file changed

+34
-27
lines changed

.buildkite/pipeline.yml

Lines changed: 34 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -6,19 +6,21 @@ steps:
66
- JuliaCI/julia-coverage#v1:
77
codecov: true
88
command: |
9-
julia -e 'using Pkg
10-
11-
println("--- :julia: Instantiating project")
9+
julia -e 'println("--- :julia: Instantiating project")
10+
using Pkg
1211
Pkg.develop(; path=pwd())
13-
Pkg.develop(; name="CUDA")
12+
Pkg.develop(; name="CUDA")' || exit 3
1413
15-
println("+++ :julia: Running tests")
14+
julia -e 'println("+++ :julia: Running tests")
15+
using Pkg
1616
Pkg.test("CUDA"; coverage=true)'
1717
agents:
1818
queue: "juliagpu"
1919
cuda: "*"
2020
if: build.message !~ /\[skip tests\]/ && !build.pull_request.draft
2121
timeout_in_minutes: 120
22+
soft_fail:
23+
- exit_status: 3
2224

2325
- label: "oneAPI.jl"
2426
plugins:
@@ -34,16 +36,18 @@ steps:
3436
Pkg.develop(; name="oneAPI")
3537
3638
println("+++ :julia: Building support library")
37-
include(joinpath(Pkg.devdir(), "oneAPI", "deps", "build_ci.jl"))
38-
Pkg.activate()
39+
include(joinpath(Pkg.devdir(), "oneAPI", "deps", "build_ci.jl"))' || exit 3
3940
40-
println("+++ :julia: Running tests")
41+
julia -e 'println("+++ :julia: Running tests")
42+
using Pkg
4143
Pkg.test("oneAPI"; coverage=true)'
4244
agents:
4345
queue: "juliagpu"
4446
intel: "*"
4547
if: build.message !~ /\[skip tests\]/ && !build.pull_request.draft
4648
timeout_in_minutes: 60
49+
soft_fail:
50+
- exit_status: 3
4751

4852
- label: "Metal.jl"
4953
plugins:
@@ -52,20 +56,22 @@ steps:
5256
- JuliaCI/julia-coverage#v1:
5357
codecov: true
5458
command: |
55-
julia -e 'using Pkg
56-
57-
println("--- :julia: Instantiating project")
59+
julia -e 'println("--- :julia: Instantiating project")
60+
using Pkg
5861
Pkg.develop(; path=pwd())
59-
Pkg.develop(; name="Metal")
62+
Pkg.develop(; name="Metal")' || exit 3
6063
61-
println("+++ :julia: Running tests")
64+
julia -e 'println("+++ :julia: Running tests")
65+
using Pkg
6266
Pkg.test("Metal"; coverage=true)'
6367
agents:
6468
queue: "juliaecosystem"
6569
os: "macos"
6670
arch: "aarch64"
6771
if: build.message !~ /\[skip tests\]/ && !build.pull_request.draft
6872
timeout_in_minutes: 120
73+
soft_fail:
74+
- exit_status: 3
6975

7076
# - label: "AMDGPU.jl"
7177
# plugins:
@@ -74,22 +80,21 @@ steps:
7480
# - JuliaCI/julia-coverage#v1:
7581
# codecov: true
7682
# command: |
77-
# julia -e 'using Pkg;
83+
# julia -e 'println("--- :julia: Instantiating project")
84+
# using Pkg
85+
# Pkg.develop(; path=pwd())
86+
# Pkg.develop(; name="AMDGPU")' || exit 3
7887
#
79-
# println("--- :julia: Instantiating project")
80-
# Pkg.develop(; path=pwd())
81-
# Pkg.develop(; name="AMDGPU")
82-
#
83-
# println("+++ :julia: Running tests")
84-
# Pkg.activate()
85-
# Pkg.test("AMDGPU"; coverage=true)'
88+
# julia -e 'println("+++ :julia: Running tests")
89+
# using Pkg
90+
# Pkg.test("AMDGPU"; coverage=true)'
8691
# agents:
8792
# queue: "juliagpu"
8893
# rocm: "*"
8994
# if: build.message !~ /\[skip tests\]/ && !build.pull_request.draft
9095
# timeout_in_minutes: 120
9196
# soft_fail:
92-
# - exit_status: 1
97+
# - exit_status: 3
9398

9499
- label: "Enzyme.jl"
95100
plugins:
@@ -98,18 +103,20 @@ steps:
98103
- JuliaCI/julia-coverage#v1:
99104
codecov: true
100105
command: |
101-
julia -e 'using Pkg
102-
103-
println("--- :julia: Instantiating project")
106+
julia -e 'println("--- :julia: Instantiating project")
107+
using Pkg
104108
Pkg.develop(; path=pwd())
105-
Pkg.develop(; name="Enzyme")
109+
Pkg.develop(; name="Enzyme")' || exit 3
106110
107-
println("+++ :julia: Running tests")
111+
julia -e 'println("+++ :julia: Running tests")
112+
using Pkg
108113
Pkg.test("Enzyme"; coverage=true)'
109114
agents:
110115
queue: "juliagpu"
111116
if: build.message !~ /\[skip tests\]/ && !build.pull_request.draft
112117
timeout_in_minutes: 60
118+
soft_fail:
119+
- exit_status: 3
113120

114121
env:
115122
JULIA_PKG_SERVER: "" # it often struggles with our large artifacts

0 commit comments

Comments
 (0)