diff --git a/ci-operator/config/rh-ecosystem-edge/openshift-dpf/rh-ecosystem-edge-openshift-dpf-main.yaml b/ci-operator/config/rh-ecosystem-edge/openshift-dpf/rh-ecosystem-edge-openshift-dpf-main.yaml index 3f831af0fa8e3..10cd09d883cbc 100644 --- a/ci-operator/config/rh-ecosystem-edge/openshift-dpf/rh-ecosystem-edge-openshift-dpf-main.yaml +++ b/ci-operator/config/rh-ecosystem-edge/openshift-dpf/rh-ecosystem-edge-openshift-dpf-main.yaml @@ -20,6 +20,33 @@ resources: cpu: 500m memory: 1Gi tests: +- as: daily-network-doca4 + capabilities: + - intranet + cron: 30 0 * * * + reporter_config: + channel: '#wg-nvidia-dpf-ci' + job_states_to_report: + - success + - failure + - error + - aborted + report_template: |- + {{- $emoji := ":warning:" }}{{- if eq .Status.State "success" }}{{- $emoji = ":white_check_mark:" }}{{- end }} + {{- $prInfo := "" }}{{- if .Spec.Refs.Pulls }}{{- $pull := index .Spec.Refs.Pulls 0 }}{{- $prInfo = printf " (<%s|PR #%d> by %s)" $pull.Link $pull.Number $pull.Author }}{{- end -}} + {{$emoji}} Job *{{.Spec.Job}}*{{$prInfo}} ended with *{{.Status.State}}*. <{{.Status.URL}}|View logs> {{$emoji}} + {{- if eq .Status.State "aborted" }} + The job was aborted, check for orphaned cloud resources. + {{- end }} + restrict_network_access: false + steps: + cluster_profile: metal-dpf-doca4 + test: + - ref: dpf-hypervisor-deploy-cluster + - ref: dpf-hypervisor-load-kubeconfig + - ref: dpf-hypervisor-sanity-existing + - ref: dpf-hypervisor-network-tests + timeout: 6h0m0s - always_run: false as: deploy-cluster capabilities: @@ -43,6 +70,7 @@ tests: cluster_profile: metal-dpf-doca8 test: - ref: dpf-hypervisor-deploy-cluster + - ref: dpf-hypervisor-sanity-existing timeout: 6h0m0s - always_run: false as: deploy-cluster-doca4 @@ -67,6 +95,7 @@ tests: cluster_profile: metal-dpf-doca4 test: - ref: dpf-hypervisor-deploy-cluster + - ref: dpf-hypervisor-sanity-existing timeout: 6h0m0s - always_run: false as: sanity @@ -188,6 +217,7 @@ tests: cluster_profile: metal-dpf-doca8 test: - ref: dpf-hypervisor-load-kubeconfig + - ref: dpf-hypervisor-sanity-existing - ref: dpf-hypervisor-network-tests timeout: 2h0m0s - always_run: false @@ -213,6 +243,7 @@ tests: cluster_profile: metal-dpf-doca4 test: - ref: dpf-hypervisor-load-kubeconfig + - ref: dpf-hypervisor-sanity-existing - ref: dpf-hypervisor-network-tests timeout: 2h0m0s - always_run: false diff --git a/ci-operator/config/rh-ecosystem-edge/openshift-dpf/rh-ecosystem-edge-openshift-dpf-main__nightly-4.22.yaml b/ci-operator/config/rh-ecosystem-edge/openshift-dpf/rh-ecosystem-edge-openshift-dpf-main__nightly-4.22.yaml index c29f415ea49b2..20c41b93e965d 100644 --- a/ci-operator/config/rh-ecosystem-edge/openshift-dpf/rh-ecosystem-edge-openshift-dpf-main__nightly-4.22.yaml +++ b/ci-operator/config/rh-ecosystem-edge/openshift-dpf/rh-ecosystem-edge-openshift-dpf-main__nightly-4.22.yaml @@ -44,6 +44,7 @@ tests: cluster_profile: metal-dpf-doca8 test: - ref: dpf-hypervisor-deploy-cluster + - ref: dpf-hypervisor-sanity-existing timeout: 6h0m0s - always_run: false as: deploy-cluster-doca4 @@ -68,6 +69,7 @@ tests: cluster_profile: metal-dpf-doca4 test: - ref: dpf-hypervisor-deploy-cluster + - ref: dpf-hypervisor-sanity-existing timeout: 6h0m0s zz_generated_metadata: branch: main diff --git a/ci-operator/config/rh-ecosystem-edge/openshift-dpf/rh-ecosystem-edge-openshift-dpf-release-4.22.yaml b/ci-operator/config/rh-ecosystem-edge/openshift-dpf/rh-ecosystem-edge-openshift-dpf-release-4.22.yaml index 00e06fc79012d..87878e7eee711 100644 --- a/ci-operator/config/rh-ecosystem-edge/openshift-dpf/rh-ecosystem-edge-openshift-dpf-release-4.22.yaml +++ b/ci-operator/config/rh-ecosystem-edge/openshift-dpf/rh-ecosystem-edge-openshift-dpf-release-4.22.yaml @@ -45,6 +45,7 @@ tests: OPENSHIFT_DPF_BRANCH: release-4.22 test: - ref: dpf-hypervisor-deploy-cluster + - ref: dpf-hypervisor-sanity-existing timeout: 6h0m0s - always_run: false as: deploy-cluster-doca4 @@ -71,6 +72,7 @@ tests: OPENSHIFT_DPF_BRANCH: release-4.22 test: - ref: dpf-hypervisor-deploy-cluster + - ref: dpf-hypervisor-sanity-existing timeout: 6h0m0s - always_run: false as: sanity @@ -145,6 +147,7 @@ tests: cluster_profile: metal-dpf-doca8 test: - ref: dpf-hypervisor-load-kubeconfig + - ref: dpf-hypervisor-sanity-existing - ref: dpf-hypervisor-network-tests timeout: 2h0m0s - always_run: false @@ -170,6 +173,7 @@ tests: cluster_profile: metal-dpf-doca4 test: - ref: dpf-hypervisor-load-kubeconfig + - ref: dpf-hypervisor-sanity-existing - ref: dpf-hypervisor-network-tests timeout: 2h0m0s - always_run: false diff --git a/ci-operator/jobs/rh-ecosystem-edge/openshift-dpf/rh-ecosystem-edge-openshift-dpf-main-periodics.yaml b/ci-operator/jobs/rh-ecosystem-edge/openshift-dpf/rh-ecosystem-edge-openshift-dpf-main-periodics.yaml new file mode 100644 index 0000000000000..937089b421442 --- /dev/null +++ b/ci-operator/jobs/rh-ecosystem-edge/openshift-dpf/rh-ecosystem-edge-openshift-dpf-main-periodics.yaml @@ -0,0 +1,101 @@ +periodics: +- agent: kubernetes + cluster: build07 + cron: 30 0 * * * + decorate: true + decoration_config: + sparse_checkout_files: + - Containerfile + timeout: 6h0m0s + extra_refs: + - base_ref: main + org: rh-ecosystem-edge + repo: openshift-dpf + sparse_checkout_files: + - Containerfile + labels: + capability/intranet: intranet + ci-operator.openshift.io/cloud: external + ci-operator.openshift.io/cloud-cluster-profile: metal-dpf-doca4 + ci.openshift.io/generator: prowgen + pj-rehearse.openshift.io/can-be-rehearsed: "true" + name: periodic-ci-rh-ecosystem-edge-openshift-dpf-main-daily-network-doca4 + reporter_config: + slack: + channel: '#wg-nvidia-dpf-ci' + job_states_to_report: + - success + - failure + - error + - aborted + report_template: |- + {{- $emoji := ":warning:" }}{{- if eq .Status.State "success" }}{{- $emoji = ":white_check_mark:" }}{{- end }} + {{- $prInfo := "" }}{{- if .Spec.Refs.Pulls }}{{- $pull := index .Spec.Refs.Pulls 0 }}{{- $prInfo = printf " (<%s|PR #%d> by %s)" $pull.Link $pull.Number $pull.Author }}{{- end -}} + {{$emoji}} Job *{{.Spec.Job}}*{{$prInfo}} ended with *{{.Status.State}}*. <{{.Status.URL}}|View logs> {{$emoji}} + {{- if eq .Status.State "aborted" }} + The job was aborted, check for orphaned cloud resources. + {{- end }} + 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 + - --target=daily-network-doca4 + command: + - ci-operator + env: + - name: HTTP_SERVER_IP + valueFrom: + fieldRef: + fieldPath: status.podIP + image: quay-proxy.ci.openshift.org/openshift/ci:ci_ci-operator_latest + imagePullPolicy: Always + name: "" + ports: + - containerPort: 8080 + name: http + resources: + requests: + cpu: 10m + volumeMounts: + - mountPath: /etc/boskos + name: boskos + readOnly: true + - mountPath: /secrets/ci-pull-credentials + name: ci-pull-credentials + readOnly: true + - mountPath: /secrets/gcs + name: gcs-credentials + readOnly: true + - mountPath: /secrets/manifest-tool + name: manifest-tool-local-pusher + 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: manifest-tool-local-pusher + secret: + secretName: manifest-tool-local-pusher + - name: pull-secret + secret: + secretName: registry-pull-credentials + - name: result-aggregator + secret: + secretName: result-aggregator