-
Notifications
You must be signed in to change notification settings - Fork 1.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: introduce ci for tekton tasks release-v0.15 branch (#42537)
Signed-off-by: Karel Simon <ksimon@redhat.com>
- Loading branch information
Showing
2 changed files
with
310 additions
and
0 deletions.
There are no files selected for viewing
87 changes: 87 additions & 0 deletions
87
...r/config/kubevirt/kubevirt-tekton-tasks/kubevirt-kubevirt-tekton-tasks-release-v0.15.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
223 changes: 223 additions & 0 deletions
223
...bevirt/kubevirt-tekton-tasks/kubevirt-kubevirt-tekton-tasks-release-v0.15-presubmits.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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.*) |