Skip to content

Commit

Permalink
feat: introduce ci for tekton tasks release-v0.15 branch (#42537)
Browse files Browse the repository at this point in the history
Signed-off-by: Karel Simon <ksimon@redhat.com>
  • Loading branch information
ksimon1 authored Oct 2, 2023
1 parent 9d0c60a commit 4aa623f
Show file tree
Hide file tree
Showing 2 changed files with 310 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,87 @@
build_root:
image_stream_tag:
name: builder
namespace: ocp
tag: rhel-8-golang-1.20-openshift-4.14
images:
- dockerfile_path: automation/generatetasks/build/Dockerfile
to: base-tests
- dockerfile_path: build/Containerfile
to: tekton-tasks
- dockerfile_path: build/Containerfile.DiskVirt
to: tekton-task-disk-virt
releases:
initial:
integration:
name: "4.14"
namespace: ocp
latest:
integration:
include_built_images: true
name: "4.14"
namespace: ocp
resources:
'*':
limits:
memory: 4Gi
requests:
cpu: 100m
memory: 200Mi
unit-tests:
requests:
cpu: "1"
memory: 2Gi
yaml-consistency-tests:
requests:
cpu: "1"
memory: 1Gi
test_binary_build_commands: automation/build-test.sh
tests:
- as: unit-tests
commands: |
make test-with-reports
container:
from: test-bin
- as: yaml-consistency-tests
commands: |
/usr/local/bin/entrypoint
make test-yaml-consistency
container:
from: base-tests
- as: e2e-tests
steps:
cluster_profile: gcp-virtualization
env:
COMPUTE_NODE_TYPE: n2-standard-4
test:
- as: e2e-test
cli: latest
commands: |
# KUBECONFIG is mounted from a secret, so its immutable. We have to copy it to some writable location.
cp -L "${KUBECONFIG}" /tmp/kubeconfig && export KUBECONFIG=/tmp/kubeconfig
if ! hash kubectl 2>/dev/null; then
pushd $(dirname $(which oc))
ln -s oc kubectl
popd
fi
automation/build-test.sh
export PATH=$PATH:$(pwd)/go/bin
NUM_NODES=4 \
make e2e-tests
dependencies:
- env: TEKTON_TASKS_IMAGE
name: tekton-tasks
- env: TEKTON_TASKS_DISK_VIRT_IMAGE
name: tekton-task-disk-virt
from: base-tests
resources:
requests:
cpu: "4"
memory: 4Gi
workflow: ipi-gcp
zz_generated_metadata:
branch: release-v0.15
org: kubevirt
repo: kubevirt-tekton-tasks
Original file line number Diff line number Diff line change
@@ -0,0 +1,223 @@
presubmits:
kubevirt/kubevirt-tekton-tasks:
- agent: kubernetes
always_run: true
branches:
- ^release-v0\.15$
- ^release-v0\.15-
cluster: build02
context: ci/prow/e2e-tests
decorate: true
decoration_config:
skip_cloning: true
labels:
ci-operator.openshift.io/cloud: gcp
ci-operator.openshift.io/cloud-cluster-profile: gcp-virtualization
ci.openshift.io/generator: prowgen
pj-rehearse.openshift.io/can-be-rehearsed: "true"
name: pull-ci-kubevirt-kubevirt-tekton-tasks-release-v0.15-e2e-tests
rerun_command: /test e2e-tests
spec:
containers:
- args:
- --gcs-upload-secret=/secrets/gcs/service-account.json
- --image-import-pull-secret=/etc/pull-secret/.dockerconfigjson
- --lease-server-credentials-file=/etc/boskos/credentials
- --report-credentials-file=/etc/report/credentials
- --secret-dir=/secrets/ci-pull-credentials
- --secret-dir=/usr/local/e2e-tests-cluster-profile
- --target=e2e-tests
command:
- ci-operator
image: ci-operator:latest
imagePullPolicy: Always
name: ""
resources:
requests:
cpu: 10m
volumeMounts:
- mountPath: /etc/boskos
name: boskos
readOnly: true
- mountPath: /secrets/ci-pull-credentials
name: ci-pull-credentials
readOnly: true
- mountPath: /usr/local/e2e-tests-cluster-profile
name: cluster-profile
- 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: boskos
secret:
items:
- key: credentials
path: credentials
secretName: boskos-credentials
- name: ci-pull-credentials
secret:
secretName: ci-pull-credentials
- name: cluster-profile
secret:
secretName: cluster-secrets-gcp-virtualization
- name: pull-secret
secret:
secretName: registry-pull-credentials
- name: result-aggregator
secret:
secretName: result-aggregator
trigger: (?m)^/test( | .* )e2e-tests,?($|\s.*)
- agent: kubernetes
always_run: true
branches:
- ^release-v0\.15$
- ^release-v0\.15-
cluster: build03
context: ci/prow/images
decorate: true
decoration_config:
skip_cloning: true
labels:
ci.openshift.io/generator: prowgen
pj-rehearse.openshift.io/can-be-rehearsed: "true"
name: pull-ci-kubevirt-kubevirt-tekton-tasks-release-v0.15-images
rerun_command: /test images
spec:
containers:
- args:
- --gcs-upload-secret=/secrets/gcs/service-account.json
- --image-import-pull-secret=/etc/pull-secret/.dockerconfigjson
- --report-credentials-file=/etc/report/credentials
- --target=[images]
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( | .* )images,?($|\s.*)
- agent: kubernetes
always_run: true
branches:
- ^release-v0\.15$
- ^release-v0\.15-
cluster: build03
context: ci/prow/unit-tests
decorate: true
decoration_config:
skip_cloning: true
labels:
ci.openshift.io/generator: prowgen
pj-rehearse.openshift.io/can-be-rehearsed: "true"
name: pull-ci-kubevirt-kubevirt-tekton-tasks-release-v0.15-unit-tests
rerun_command: /test unit-tests
spec:
containers:
- args:
- --gcs-upload-secret=/secrets/gcs/service-account.json
- --image-import-pull-secret=/etc/pull-secret/.dockerconfigjson
- --report-credentials-file=/etc/report/credentials
- --target=unit-tests
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-tests,?($|\s.*)
- agent: kubernetes
always_run: true
branches:
- ^release-v0\.15$
- ^release-v0\.15-
cluster: build03
context: ci/prow/yaml-consistency-tests
decorate: true
decoration_config:
skip_cloning: true
labels:
ci.openshift.io/generator: prowgen
pj-rehearse.openshift.io/can-be-rehearsed: "true"
name: pull-ci-kubevirt-kubevirt-tekton-tasks-release-v0.15-yaml-consistency-tests
rerun_command: /test yaml-consistency-tests
spec:
containers:
- args:
- --gcs-upload-secret=/secrets/gcs/service-account.json
- --image-import-pull-secret=/etc/pull-secret/.dockerconfigjson
- --report-credentials-file=/etc/report/credentials
- --target=yaml-consistency-tests
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( | .* )yaml-consistency-tests,?($|\s.*)

0 comments on commit 4aa623f

Please sign in to comment.