From 3c5d2ec63b85159529cd6f9cb80e0c7bc1fb66e6 Mon Sep 17 00:00:00 2001 From: anahas-redhat Date: Thu, 12 Feb 2026 14:58:01 -0300 Subject: [PATCH] Add periodic Codecov coverage job for kueue-operator Configure a periodic coverage test for the kueue-operator main branch that runs every 96 hours (4 days) and uploads results to Codecov. Changes: - Add 'coverage' test to ci-operator config with minimum_interval of 96h - Use kueue-operator-codecov-token secret for Codecov authentication - Fix indentation of coverage test fields to match repo conventions - Remove duplicate coverage definition and unused postsubmit job - Generate corresponding Prow periodic job definition --- .../openshift-kueue-operator-main.yaml | 10 ++++ ...enshift-kueue-operator-main-periodics.yaml | 58 +++++++++++++++++++ 2 files changed, 68 insertions(+) diff --git a/ci-operator/config/openshift/kueue-operator/openshift-kueue-operator-main.yaml b/ci-operator/config/openshift/kueue-operator/openshift-kueue-operator-main.yaml index 4f472aa86a6e8..1d552a3cb3da5 100644 --- a/ci-operator/config/openshift/kueue-operator/openshift-kueue-operator-main.yaml +++ b/ci-operator/config/openshift/kueue-operator/openshift-kueue-operator-main.yaml @@ -86,6 +86,16 @@ tests: skip_if_only_changed: ^\.tekton/|\.md$|^(LICENSE|OWNERS)$ steps: workflow: openshift-ci-security +- as: coverage + commands: | + export CODECOV_TOKEN=$(cat /tmp/secret/CODECOV_TOKEN) + make coverage + container: + from: src + minimum_interval: 96h + secret: + mount_path: /tmp/secret + name: kueue-operator-codecov-token - as: test-e2e-4-18 cluster_claim: architecture: amd64 diff --git a/ci-operator/jobs/openshift/kueue-operator/openshift-kueue-operator-main-periodics.yaml b/ci-operator/jobs/openshift/kueue-operator/openshift-kueue-operator-main-periodics.yaml index 3cca06c0a3193..92fea6a321cd3 100644 --- a/ci-operator/jobs/openshift/kueue-operator/openshift-kueue-operator-main-periodics.yaml +++ b/ci-operator/jobs/openshift/kueue-operator/openshift-kueue-operator-main-periodics.yaml @@ -1,4 +1,62 @@ periodics: +- agent: kubernetes + cluster: build04 + decorate: true + extra_refs: + - base_ref: main + org: openshift + repo: kueue-operator + labels: + ci.openshift.io/generator: prowgen + pj-rehearse.openshift.io/can-be-rehearsed: "true" + minimum_interval: 96h + name: periodic-ci-openshift-kueue-operator-main-coverage + 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 + - --secret-dir=/secrets/kueue-operator-codecov-token + - --target=coverage + command: + - ci-operator + image: quay-proxy.ci.openshift.org/openshift/ci:ci_ci-operator_latest + imagePullPolicy: Always + name: "" + resources: + requests: + cpu: 10m + volumeMounts: + - mountPath: /secrets/gcs + name: gcs-credentials + readOnly: true + - mountPath: /secrets/kueue-operator-codecov-token + name: kueue-operator-codecov-token + 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: kueue-operator-codecov-token + secret: + secretName: kueue-operator-codecov-token + - 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 - agent: kubernetes cluster: build06 cron: 0 1 1,15 * *