File tree Expand file tree Collapse file tree 15 files changed +237
-3
lines changed Expand file tree Collapse file tree 15 files changed +237
-3
lines changed Original file line number Diff line number Diff line change 34
34
value : container-images/bats/Containerfile
35
35
pipelineRef :
36
36
name : pull-request-pipeline
37
+ timeouts :
38
+ pipeline : 6h
37
39
workspaces :
38
40
- name : git-auth
39
41
secret :
Original file line number Diff line number Diff line change 31
31
value : container-images/bats/Containerfile
32
32
pipelineRef :
33
33
name : push-pipeline
34
+ timeouts :
35
+ pipeline : 6h
34
36
workspaces :
35
37
- name : git-auth
36
38
secret :
Original file line number Diff line number Diff line change 33
33
value : container-images/cuda/Containerfile
34
34
pipelineRef :
35
35
name : pull-request-pipeline
36
+ timeouts :
37
+ pipeline : 6h
36
38
workspaces :
37
39
- name : git-auth
38
40
secret :
Original file line number Diff line number Diff line change 30
30
value : container-images/cuda/Containerfile
31
31
pipelineRef :
32
32
name : push-pipeline
33
+ timeouts :
34
+ pipeline : 6h
33
35
workspaces :
34
36
- name : git-auth
35
37
secret :
Original file line number Diff line number Diff line change 33
33
description : Force rebuild image
34
34
name : rebuild
35
35
type : string
36
- - default : " false "
36
+ - default : " true "
37
37
description : Skip checks against built image
38
38
name : skip-checks
39
39
type : string
76
76
set of values is determined by the configuration of the multi-platform-controller.
77
77
name : build-platforms
78
78
type : array
79
+ - default : " "
80
+ description : The image to use for running tests.
81
+ name : test-image
82
+ - default : []
83
+ description : List of environment variables (NAME=VALUE) to be set in the test environment.
84
+ name : test-envs
85
+ type : array
86
+ - default :
87
+ - echo "No tests defined"
88
+ description : List of test commands to run after the image is built.
89
+ name : test-commands
90
+ type : array
79
91
results :
80
92
- description : " "
81
93
name : IMAGE_URL
@@ -241,6 +253,42 @@ spec:
241
253
operator : in
242
254
values :
243
255
- " true"
256
+ - name : wait-for-test-image
257
+ params :
258
+ - name : ref
259
+ value : $(params.test-image)
260
+ runAfter :
261
+ - build-image-index
262
+ taskRef :
263
+ name : wait-for-image
264
+ when :
265
+ - input : $(params.test-image)
266
+ operator : notin
267
+ values :
268
+ - " "
269
+ - name : run-tests
270
+ matrix :
271
+ params :
272
+ - name : cmd
273
+ value :
274
+ - $(params.test-commands)
275
+ params :
276
+ - name : image
277
+ value : $(params.test-image)@$(tasks.wait-for-test-image.results.digest)
278
+ - name : source-artifact
279
+ value : $(tasks.prefetch-dependencies.results.SOURCE_ARTIFACT)
280
+ - name : envs
281
+ value :
282
+ - $(params.test-envs[*])
283
+ runAfter :
284
+ - wait-for-test-image
285
+ taskRef :
286
+ name : test-cmd
287
+ when :
288
+ - input : $(params.test-image)
289
+ operator : notin
290
+ values :
291
+ - " "
244
292
- name : build-source-image
245
293
params :
246
294
- name : BINARY_IMAGE
Original file line number Diff line number Diff line change 76
76
set of values is determined by the configuration of the multi-platform-controller.
77
77
name : build-platforms
78
78
type : array
79
+ - default : " "
80
+ description : The image to use for running tests.
81
+ name : test-image
82
+ - default : []
83
+ description : List of environment variables (NAME=VALUE) to be set in the test environment.
84
+ name : test-envs
85
+ type : array
86
+ - default :
87
+ - echo "No tests defined"
88
+ description : List of test commands to run after the image is built.
89
+ name : test-commands
90
+ type : array
79
91
results :
80
92
- description : " "
81
93
name : IMAGE_URL
@@ -241,6 +253,42 @@ spec:
241
253
operator : in
242
254
values :
243
255
- " true"
256
+ - name : wait-for-test-image
257
+ params :
258
+ - name : ref
259
+ value : $(params.test-image)
260
+ runAfter :
261
+ - build-image-index
262
+ taskRef :
263
+ name : wait-for-image
264
+ when :
265
+ - input : $(params.test-image)
266
+ operator : notin
267
+ values :
268
+ - " "
269
+ - name : run-tests
270
+ matrix :
271
+ params :
272
+ - name : cmd
273
+ value :
274
+ - $(params.test-commands)
275
+ params :
276
+ - name : image
277
+ value : $(params.test-image)@$(tasks.wait-for-test-image.results.digest)
278
+ - name : source-artifact
279
+ value : $(tasks.prefetch-dependencies.results.SOURCE_ARTIFACT)
280
+ - name : envs
281
+ value :
282
+ - $(params.test-envs[*])
283
+ runAfter :
284
+ - wait-for-test-image
285
+ taskRef :
286
+ name : test-cmd
287
+ when :
288
+ - input : $(params.test-image)
289
+ operator : notin
290
+ values :
291
+ - " "
244
292
- name : build-source-image
245
293
params :
246
294
- name : BINARY_IMAGE
Original file line number Diff line number Diff line change 32
32
- linux/arm64
33
33
- name : dockerfile
34
34
value : container-images/ramalama/Containerfile
35
+ - name : test-image
36
+ value : quay.io/redhat-user-workloads/ramalama-tenant/bats:on-pr-{{revision}}
37
+ - name : test-envs
38
+ value :
39
+ - RAMALAMA_IMAGE=quay.io/redhat-user-workloads/ramalama-tenant/ramalama:on-pr-{{revision}}
40
+ - name : test-commands
41
+ value :
42
+ - make validate
43
+ - make bats-nocontainer
44
+ - make unit-tests
45
+ - make cov-tests
35
46
pipelineRef :
36
47
name : pull-request-pipeline
48
+ timeouts :
49
+ pipeline : 6h
37
50
workspaces :
38
51
- name : git-auth
39
52
secret :
Original file line number Diff line number Diff line change 29
29
- linux/arm64
30
30
- name : dockerfile
31
31
value : container-images/ramalama/Containerfile
32
+ - name : test-image
33
+ value : quay.io/redhat-user-workloads/ramalama-tenant/bats:{{revision}}
34
+ - name : test-envs
35
+ value :
36
+ - RAMALAMA_IMAGE=quay.io/redhat-user-workloads/ramalama-tenant/ramalama:{{revision}}
37
+ - name : test-commands
38
+ value :
39
+ - make validate
40
+ - make bats-nocontainer
41
+ - make unit-tests
42
+ - make cov-tests
32
43
pipelineRef :
33
44
name : push-pipeline
45
+ timeouts :
46
+ pipeline : 6h
34
47
workspaces :
35
48
- name : git-auth
36
49
secret :
Original file line number Diff line number Diff line change 33
33
value : container-images/rocm-ubi/Containerfile
34
34
pipelineRef :
35
35
name : pull-request-pipeline
36
+ timeouts :
37
+ pipeline : 6h
36
38
workspaces :
37
39
- name : git-auth
38
40
secret :
Original file line number Diff line number Diff line change 30
30
value : container-images/rocm-ubi/Containerfile
31
31
pipelineRef :
32
32
name : push-pipeline
33
+ timeouts :
34
+ pipeline : 6h
33
35
workspaces :
34
36
- name : git-auth
35
37
secret :
You can’t perform that action at this time.
0 commit comments