Skip to content

Commit

Permalink
rpm-ostree: Move more CI here
Browse files Browse the repository at this point in the history
Let's do the build variants and unit testing in Prow, saving
the bare metal capacity of CentOS CI for our VM testing.

CC coreos/coreos-ci#23
  • Loading branch information
cgwalters committed Feb 4, 2021
1 parent 860a5da commit d3818a3
Show file tree
Hide file tree
Showing 2 changed files with 116 additions and 8 deletions.
16 changes: 13 additions & 3 deletions ci-operator/config/coreos/rpm-ostree/coreos-rpm-ostree-master.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
binary_build_commands: env SKIP_INSTALLDEPS=1 ./ci/build-check.sh
binary_build_commands: ./ci/build.sh && make install
build_root:
image_stream_tag:
name: cosa-buildroot
Expand All @@ -8,13 +8,23 @@ resources:
'*':
requests:
cpu: 1000m
memory: 3Gi
memory: 1Gi
tests:
- artifact_dir: /tmp/artifacts
as: sanity
as: build
commands: rpm-ostree --version
container:
from: bin
- artifact_dir: /tmp/artifacts
as: unit
commands: ./ci/unit.sh
container:
from: src
- artifact_dir: /tmp/artifacts
as: build-clang
commands: ./ci/clang-build-check.sh
container:
from: src
zz_generated_metadata:
branch: master
org: coreos
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,23 +5,23 @@ presubmits:
branches:
- master
cluster: build02
context: ci/prow/sanity
context: ci/prow/build
decorate: true
decoration_config:
skip_cloning: true
labels:
ci-operator.openshift.io/prowgen-controlled: "true"
pj-rehearse.openshift.io/can-be-rehearsed: "true"
name: pull-ci-coreos-rpm-ostree-master-sanity
rerun_command: /test sanity
name: pull-ci-coreos-rpm-ostree-master-build
rerun_command: /test build
spec:
containers:
- args:
- --gcs-upload-secret=/secrets/gcs/service-account.json
- --image-import-pull-secret=/etc/pull-secret/.dockerconfigjson
- --report-password-file=/etc/report/password.txt
- --report-username=ci
- --target=sanity
- --target=build
command:
- ci-operator
image: ci-operator:latest
Expand All @@ -48,4 +48,102 @@ presubmits:
- name: result-aggregator
secret:
secretName: result-aggregator
trigger: (?m)^/test( | .* )sanity,?($|\s.*)
trigger: (?m)^/test( | .* )build,?($|\s.*)
- agent: kubernetes
always_run: true
branches:
- master
cluster: build02
context: ci/prow/build-clang
decorate: true
decoration_config:
skip_cloning: true
labels:
ci-operator.openshift.io/prowgen-controlled: "true"
pj-rehearse.openshift.io/can-be-rehearsed: "true"
name: pull-ci-coreos-rpm-ostree-master-build-clang
rerun_command: /test build-clang
spec:
containers:
- args:
- --gcs-upload-secret=/secrets/gcs/service-account.json
- --image-import-pull-secret=/etc/pull-secret/.dockerconfigjson
- --report-password-file=/etc/report/password.txt
- --report-username=ci
- --target=build-clang
command:
- ci-operator
image: ci-operator:latest
imagePullPolicy: Always
name: ""
resources:
requests:
cpu: 10m
volumeMounts:
- mountPath: /secrets/gcs
name: gcs-credentials
readOnly: true
- mountPath: /etc/pull-secret
name: pull-secret
readOnly: true
- mountPath: /etc/report
name: result-aggregator
readOnly: true
serviceAccountName: ci-operator
volumes:
- name: pull-secret
secret:
secretName: registry-pull-credentials
- name: result-aggregator
secret:
secretName: result-aggregator
trigger: (?m)^/test( | .* )build-clang,?($|\s.*)
- agent: kubernetes
always_run: true
branches:
- master
cluster: build02
context: ci/prow/unit
decorate: true
decoration_config:
skip_cloning: true
labels:
ci-operator.openshift.io/prowgen-controlled: "true"
pj-rehearse.openshift.io/can-be-rehearsed: "true"
name: pull-ci-coreos-rpm-ostree-master-unit
rerun_command: /test unit
spec:
containers:
- args:
- --gcs-upload-secret=/secrets/gcs/service-account.json
- --image-import-pull-secret=/etc/pull-secret/.dockerconfigjson
- --report-password-file=/etc/report/password.txt
- --report-username=ci
- --target=unit
command:
- ci-operator
image: ci-operator:latest
imagePullPolicy: Always
name: ""
resources:
requests:
cpu: 10m
volumeMounts:
- mountPath: /secrets/gcs
name: gcs-credentials
readOnly: true
- mountPath: /etc/pull-secret
name: pull-secret
readOnly: true
- mountPath: /etc/report
name: result-aggregator
readOnly: true
serviceAccountName: ci-operator
volumes:
- name: pull-secret
secret:
secretName: registry-pull-credentials
- name: result-aggregator
secret:
secretName: result-aggregator
trigger: (?m)^/test( | .* )unit,?($|\s.*)

0 comments on commit d3818a3

Please sign in to comment.