diff --git a/ci-operator/config/openshift/monitoring-plugin/openshift-monitoring-plugin-main.yaml b/ci-operator/config/openshift/monitoring-plugin/openshift-monitoring-plugin-main.yaml index b9558201bfdab..47ce0104862ef 100644 --- a/ci-operator/config/openshift/monitoring-plugin/openshift-monitoring-plugin-main.yaml +++ b/ci-operator/config/openshift/monitoring-plugin/openshift-monitoring-plugin-main.yaml @@ -39,6 +39,11 @@ resources: cpu: 1000m memory: 8Gi tests: +- as: go-tests + commands: | + make test-backend lint-backend && git diff --exit-code + container: + from: src - as: lint commands: | make lint-frontend diff --git a/ci-operator/jobs/openshift/monitoring-plugin/openshift-monitoring-plugin-main-presubmits.yaml b/ci-operator/jobs/openshift/monitoring-plugin/openshift-monitoring-plugin-main-presubmits.yaml index ab32a21baee9c..02836c0b1e16e 100644 --- a/ci-operator/jobs/openshift/monitoring-plugin/openshift-monitoring-plugin-main-presubmits.yaml +++ b/ci-operator/jobs/openshift/monitoring-plugin/openshift-monitoring-plugin-main-presubmits.yaml @@ -1062,6 +1062,67 @@ presubmits: secret: secretName: result-aggregator trigger: (?m)^/test( | .* )e2e-virtualization,?($|\s.*) + - agent: kubernetes + always_run: true + branches: + - ^main$ + - ^main- + cluster: build08 + context: ci/prow/go-tests + decorate: true + labels: + ci.openshift.io/generator: prowgen + pj-rehearse.openshift.io/can-be-rehearsed: "true" + name: pull-ci-openshift-monitoring-plugin-main-go-tests + rerun_command: /test go-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=go-tests + 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: /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( | .* )go-tests,?($|\s.*) - agent: kubernetes always_run: true branches: