From bc5f33cf04b5d79bed453fa7cad83a52a352a62a Mon Sep 17 00:00:00 2001 From: Michail Resvanis Date: Thu, 28 Mar 2024 17:52:34 +0100 Subject: [PATCH] Add cargo test to recert presubmits Signed-off-by: Michail Resvanis --- .../recert/rh-ecosystem-edge-recert-main.yaml | 5 ++ ...ecosystem-edge-recert-main-presubmits.yaml | 55 +++++++++++++++++++ 2 files changed, 60 insertions(+) diff --git a/ci-operator/config/rh-ecosystem-edge/recert/rh-ecosystem-edge-recert-main.yaml b/ci-operator/config/rh-ecosystem-edge/recert/rh-ecosystem-edge-recert-main.yaml index 7cb31c666074..24a8c86e1ddd 100644 --- a/ci-operator/config/rh-ecosystem-edge/recert/rh-ecosystem-edge-recert-main.yaml +++ b/ci-operator/config/rh-ecosystem-edge/recert/rh-ecosystem-edge-recert-main.yaml @@ -52,6 +52,11 @@ tests: commands: cargo check container: from: recert-check +- always_run: true + as: cargo-test + commands: cargo test + container: + from: recert-check - always_run: true as: cargo-clippy commands: cargo clippy diff --git a/ci-operator/jobs/rh-ecosystem-edge/recert/rh-ecosystem-edge-recert-main-presubmits.yaml b/ci-operator/jobs/rh-ecosystem-edge/recert/rh-ecosystem-edge-recert-main-presubmits.yaml index 0734aa98bf6a..414dbdb3146f 100644 --- a/ci-operator/jobs/rh-ecosystem-edge/recert/rh-ecosystem-edge-recert-main-presubmits.yaml +++ b/ci-operator/jobs/rh-ecosystem-edge/recert/rh-ecosystem-edge-recert-main-presubmits.yaml @@ -364,6 +364,61 @@ presubmits: secret: secretName: result-aggregator trigger: (?m)^/test( | .* )cargo-clippy,?($|\s.*) + - agent: kubernetes + always_run: true + branches: + - ^main$ + - ^main- + cluster: build02 + context: ci/prow/cargo-test + decorate: true + decoration_config: + skip_cloning: true + labels: + ci.openshift.io/generator: prowgen + pj-rehearse.openshift.io/can-be-rehearsed: "true" + name: pull-ci-rh-ecosystem-edge-recert-main-cargo-test + rerun_command: /test cargo-test + 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=cargo-test + command: + - ci-operator + image: ci-operator:latest + imagePullPolicy: Always + name: "" + resources: + requests: + cpu: 10m + volumeMounts: + - 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: 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 + trigger: (?m)^/test( | .* )cargo-test,?($|\s.*) - agent: kubernetes always_run: false branches: