Skip to content

ci(ARO-HCP): gate cleanup coverage in Prow (AROSLSRE-2945) - #89748

Closed
raelga wants to merge 1 commit into
openshift:mainfrom
raelga:aro-hcp-cleanup-coverage-prow
Closed

raelga wants to merge 1 commit into
openshift:mainfrom
raelga:aro-hcp-cleanup-coverage-prow

Conversation

@raelga

@raelga raelga commented Dec 1, 2026 •

Copy link
Copy Markdown
Contributor

Jira: AROSLSRE-2945

What

Adds the aro-hcp-cleanup-coverage step and runs it in two places:

  • cleanup-coverage presubmit when test/e2e-config/e2e-slots.yaml, config/config-dev-ci.yaml or the checker itself changes.
  • cleanup-coverage-check daily periodic, to catch a cleanup job removed from this repository.

The step runs go run ./test/cmd/cleanup-coverage in the src image against the Azure/ARO-HCP checkout.

Why

The periodic cleanup config needs one delete-expired-* job per subscription and nothing verified that a newly onboarded slot subscription got one. Stage-01 accumulated an expired resource group for over a week (AROSLSRE-2595). Prow is the merge gate in this repository, so the guard belongs here as a presubmit instead of the advisory GitHub Actions check it started as.

Testing

  • ci-operator-checkconfig passes.
  • ci-operator-prowgen and sanitize-prow-jobs: exactly the new presubmit (cluster build05) and periodic (cluster build04) are added; all existing jobs are unchanged by JSON-normalized comparison.
  • determinize-ci-operator produces no additional changes.
  • The step requires the cleanup-coverage command from Azure/ARO-HCP#8357 on main. This PR lands after that one and is rehearsed once the command is available.

Special notes for your reviewer

  • Rehearsals of the new jobs fail by design until the ARO-HCP command is on main; they are triggered after that merge.
  • The periodic reports to #aro-hcp-failures-dev, the channel already used by the cleanup sweeper jobs.

Summary by CodeRabbit

This change adds cleanup-coverage CI jobs to the Azure/ARO-HCP configuration in this repository.

  • Adds the aro-hcp-cleanup-coverage step. It runs go run ./test/cmd/cleanup-coverage in the src image.
  • Adds a cleanup-coverage presubmit. It runs when test/e2e-config/e2e-slots.yaml, config/config-dev-ci.yaml, or the checker changes.
  • Adds a daily cleanup-coverage-check periodic. It reports to #aro-hcp-failures-dev when a cleanup job is removed.

The jobs require the cleanup-coverage command from Azure/ARO-HCP#8357. That command must be on Azure/ARO-HCP main before the jobs can run. Rehearsals have not run yet.

- Add the aro-hcp-cleanup-coverage step, which runs the cleanup-coverage
  command from Azure/ARO-HCP in the src image.
- Run it as a presubmit when the slot catalog, the dev-ci config or the checker
  change, and daily as a periodic to catch drift in this repository.
- Prow is the merge gate here, so this replaces the advisory GitHub Actions
  check from Azure/ARO-HCP#8357; the command must be on Azure/ARO-HCP main
  before these jobs can run.
@coderabbitai

coderabbitai Bot commented Dec 1, 2026 •

Copy link
Copy Markdown
Contributor

No actionable comments were generated in the recent review.

Walkthrough

Adds a cleanup coverage step and connects it to a change-triggered test job and a daily periodic job. The step runs the cleanup coverage command.

Changes

Cleanup coverage CI

Layer / File(s) Summary
Define the cleanup coverage step
ci-operator/step-registry/aro-hcp/cleanup-coverage/*
Adds the step configuration and command script to run ./test/cmd/cleanup-coverage. Adds step metadata and ownership entries.
Configure CI jobs
ci-operator/config/Azure/ARO-HCP/Azure-ARO-HCP-main.yaml, ci-operator/config/Azure/ARO-HCP/Azure-ARO-HCP-main__periodic-cleanup.yaml
Adds a change-triggered test job and a daily job scheduled for 06:20. Both run aro-hcp-cleanup-coverage; the periodic job reports failures and errors to the dev failures channel.

Estimated code review effort: 2 (Simple) | ~10 minutes

Change: Other

Sequence Diagram(s)

sequenceDiagram
  participant cleanup_coverage_check as cleanup-coverage-check
  participant aro_hcp_cleanup_coverage as aro-hcp-cleanup-coverage
  participant commands_sh as cleanup-coverage-commands.sh
  participant go_command as cleanup-coverage Go command
  cleanup_coverage_check->>aro_hcp_cleanup_coverage: Run the cleanup coverage step
  aro_hcp_cleanup_coverage->>commands_sh: Execute the command script
  commands_sh->>go_command: Run ./test/cmd/cleanup-coverage
Loading
Merge Risk: Minimal · up to f553f · assessed changes only

Path filters excluded changed files. This rating applies only to the assessed changes.

Pre-merge checks: Passed 14

Check name Status Explanation
Description Check Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check Passed The title "ci(ARO-HCP): gate cleanup coverage in Prow (AROSLSRE-2945)" matches the main change. The PR adds a cleanup-coverage presubmit that gates merges in Prow, plus a daily cleanup-coverage-check …
Linked Issues check Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check Passed Check skipped because no linked issues were found for this pull request.
Stable And Deterministic Test Names Passed The check is about Ginkgo test titles (It, Describe, Context, When, etc.). This PR changes no Go test code. The changed-file inventory covers only CI configuration: ci-operator config and generated jo…
Test Structure And Quality Passed The check applies to Ginkgo test code. The reviewed diff (refs/coderabbit/pre-merge-check/base..head) changes no Ginkgo test files. It changes only Prow CI configuration and step-registry files: ci-op…
Microshift Test Compatibility Passed The "MicroShift Test Compatibility" check applies only when new Ginkgo e2e tests (It, Describe, Context, When, etc.) are added. The reviewed range (refs/coderabbit/pre-merge-check/base..head) changes …
Single Node Openshift (Sno) Test Compatibility Passed The check applies only when new Ginkgo e2e tests (It, Describe, Context, When, etc.) are added. The PR (#89748, author raelga) adds no such tests. The changed-file inventory has eight…
Topology-Aware Scheduling Compatibility Passed The check applies only when deployment manifests, operator code, or controllers are added or modified and introduce scheduling constraints. The reviewed range (refs/coderabbit/pre-merge-check/base..he…
Ote Binary Stdout Contract Passed The "OTE Binary Stdout Contract" check applies to process-level stdout writes in OpenShift Tests Extension binaries (main, init, TestMain, suite setup, top-level initializers) written in Go. This pull…
Ipv6 And Disconnected Network Test Compatibility Passed The check applies only when new Ginkgo e2e tests (It, Describe, Context, When, and similar) are added. The reviewed range (refs/coderabbit/pre-merge-check/base..head) changes 8 files: four ci-operator…
No-Weak-Crypto Passed The no-weak-crypto check finds no changed code that uses a weak primitive, a custom cryptographic implementation, or a non-constant-time comparison of secrets or tokens. The changed-file inventory (gi…
Container-Privileges Passed The check looks for privileged containers, host namespaces, SYS_ADMIN, root without justification, and allowPrivilegeEscalation in container or Kubernetes manifests. The PR changes 8 files (266 insert…
No-Sensitive-Data-In-Logs Passed The no-sensitive-data-in-logs check passes for this pull request. I inspected the full diff (base..head) for the 8 changed files, which are the Prow job configs, the generated job files, and the new `…
Full details: Title check

Explanation

The title "ci(ARO-HCP): gate cleanup coverage in Prow (AROSLSRE-2945)" matches the main change. The PR adds a cleanup-coverage presubmit that gates merges in Prow, plus a daily cleanup-coverage-check periodic. The title is short, specific, and names the scope (ARO-HCP) and the Jira reference. It does not describe the periodic job, but that is a secondary part of the change.

Full details: Stable And Deterministic Test Names

Explanation

The check is about Ginkgo test titles (It, Describe, Context, When, etc.). This PR changes no Go test code. The changed-file inventory covers only CI configuration: ci-operator config and generated jobs YAML under ci-operator/config and ci-operator/jobs, plus four new files under ci-operator/step-registry/aro-hcp/cleanup-coverage/ (OWNERS, a shell script, a metadata JSON, and a step ref YAML). A search of the added lines for It/Describe/Context/When/DescribeTable/Entry declarations returned no matches. The shell script runs an external command (go run ./test/cmd/cleanup-coverage) from the ARO-HCP checkout. That command is not part of this diff, and no test titles in it are introduced here. The check does not apply, so it passes.

Full details: Test Structure And Quality

Explanation

The check applies to Ginkgo test code. The reviewed diff (refs/coderabbit/pre-merge-check/base..head) changes no Ginkgo test files. It changes only Prow CI configuration and step-registry files: ci-operator config and jobs YAML, a new cleanup-coverage step (aro-hcp-cleanup-coverage-ref.yaml, commands .sh, metadata JSON, and OWNERS). A text search of the changed files for Ginkgo markers (ginkgo, g.It(, ote.Informing, Eventually(, Expect() found no matches. The Go checker at ./test/cmd/cleanup-coverage is referenced by the script but lives in Azure/ARO-HCP, not in this diff. The check is therefore inapplicable and passes.

Full details: Microshift Test Compatibility

Explanation

The "MicroShift Test Compatibility" check applies only when new Ginkgo e2e tests (It, Describe, Context, When, etc.) are added. The reviewed range (refs/coderabbit/pre-merge-check/base..head) changes only CI configuration and a shell-based step: ci-operator config and jobs YAML files, plus a new step-registry directory (OWNERS, aro-hcp-cleanup-coverage-commands.sh, metadata JSON, ref YAML). A search of all added lines found no Ginkgo It/Describe/Context/When/DescribeTable/Entry calls. The step runs go run ./test/cmd/cleanup-coverage from the ARO-HCP checkout, and that Go code is not part of this diff. The check is therefore inapplicable to this pull request, and no MicroShift compatibility concern is introduced.

Full details: Single Node Openshift (Sno) Test Compatibility

Explanation

The check applies only when new Ginkgo e2e tests (It, Describe, Context, When, etc.) are added. The PR (#89748, author raelga) adds no such tests. The changed-file inventory has eight files: four ci-operator config/jobs YAML files, and four files under ci-operator/step-registry/aro-hcp/cleanup-coverage/ (OWNERS, a shell script, a metadata JSON, and a step-registry YAML). No .go files are in the diff. A search of the added lines for Ginkgo constructs found no matches. The shell script runs an existing ./test/cmd/cleanup-coverage command from the ARO-HCP checkout. It does not define e2e specs. The check is therefore not applicable, so it passes.

Full details: Topology-Aware Scheduling Compatibility

Explanation

The check applies only when deployment manifests, operator code, or controllers are added or modified and introduce scheduling constraints. The reviewed range (refs/coderabbit/pre-merge-check/base..head) changes only OpenShift CI configuration: ci-operator config and generated job files for Azure/ARO-HCP, plus a new step-registry entry (aro-hcp/cleanup-coverage) consisting of an OWNERS file, a metadata JSON, a ref YAML (container image src, grace period, CPU/memory requests), and a shell script that runs go run ./test/cmd/cleanup-coverage. None of these files defines a Kubernetes workload, pod spec, or controller. A targeted search of the changed files for affinity, nodeSelector, toleration, topology, anti-affinity, replicas, control-plane/master/worker labels, and maxUnavailable found no scheduling constraints. The only hits were a job name containing "control-plane" (an image-updater periodic) and a run_if_changed regex, neither of which is a scheduling constraint. The check does not apply, so it passes.

Full details: Ote Binary Stdout Contract

Explanation

The "OTE Binary Stdout Contract" check applies to process-level stdout writes in OpenShift Tests Extension binaries (main, init, TestMain, suite setup, top-level initializers) written in Go. This pull request changes no Go source and no test-suite code. The changed-file inventory (refs/coderabbit/pre-merge-check/base..head) contains only openshift/release CI files: four modified ci-operator config and job YAML files (Azure-ARO-HCP-main.yaml, Azure-ARO-HCP-main__periodic-cleanup.yaml, Azure-ARO-HCP-main-periodics.yaml, Azure-ARO-HCP-main-presubmits.yaml) and four added step-registry files under aro-hcp/cleanup-coverage (OWNERS, a Bash script, a metadata JSON, and a step YAML). A name search for .go, .s, main, suite, or test files returned no source files. The Bash script runs go run ./test/cmd/cleanup-coverage against a separate Azure/ARO-HCP checkout. That Go code is not part of this pull request, so no OTE binary process-level code is introduced or changed here. The check is not applicable, so it passes.

Full details: Ipv6 And Disconnected Network Test Compatibility

Explanation

The check applies only when new Ginkgo e2e tests (It, Describe, Context, When, and similar) are added. The reviewed range (refs/coderabbit/pre-merge-check/base..head) changes 8 files: four ci-operator config/job YAML files (modified) and four files under ci-operator/step-registry/aro-hcp/cleanup-coverage/ (added): OWNERS, aro-hcp-cleanup-coverage-commands.sh, aro-hcp-cleanup-coverage-ref.metadata.json, and aro-hcp-cleanup-coverage-ref.yaml. No Go files were added or modified. A search of added lines for Ginkgo declarations (It, Describe, Context, When, ginkgo, g.It, g.Describe, o.Expect) returned no matches. The added shell script runs go run ./test/cmd/cleanup-coverage from the Azure/ARO-HCP checkout. That is a cleanup checker, not a Ginkgo e2e test, and the check's IPv4 and external-connectivity rules do not apply to it. The check is inapplicable, so it passes.

Full details: No-Weak-Crypto

Explanation

The no-weak-crypto check finds no changed code that uses a weak primitive, a custom cryptographic implementation, or a non-constant-time comparison of secrets or tokens. The changed-file inventory (git diff --name-status against the review base) lists 8 files: - Prow config: ci-operator/config/Azure/ARO-HCP/Azure-ARO-HCP-main.yaml and Azure-ARO-HCP-main__periodic-cleanup.yaml - Generated jobs: ci-operator/jobs/Azure/ARO-HCP/Azure-ARO-HCP-main-periodics.yaml and Azure-ARO-HCP-main-presubmits.yaml - New step registry files under ci-operator/step-registry/aro-hcp/cleanup-coverage/: OWNERS, aro-hcp-cleanup-coverage-commands.sh, aro-hcp-cleanup-coverage-ref.metadata.json, and aro-hcp-cleanup-coverage-ref.yaml I read the step-registry diff in full. The shell script only enables bash strict options, unsets GOFLAGS, and runs go run ./test/cmd/cleanup-coverage. The ref YAML and metadata JSON hold only step configuration and OWNERS lists. I also searched the added lines for MD5, SHA1, DES, 3DES, RC4, Blowfish, ECB, cipher, crypto, HMAC, bcrypt, and comparison terms. The only hits were Kubernetes secret volume mounts and secret names (for example, boskos-credentials, registry-pull-credentials, --gcs-upload-secret). These are configuration references, not cryptographic code. The Go checker that the step runs lives in Azure/ARO-HCP, outside this diff. It is not part of this pull request's changes, so this verdict does not cover it. The changes in this PR contain no crypto code to review.

Full details: Container-Privileges

Explanation

The check looks for privileged containers, host namespaces, SYS_ADMIN, root without justification, and allowPrivilegeEscalation in container or Kubernetes manifests. The PR changes 8 files (266 insertions, no deletions). I searched the full PR diff for privileged, hostPID, hostNetwork, hostIPC, SYS_ADMIN, runAsUser, root, allowPrivilegeEscalation, securityContext, and capabilities. The only hit was capabilities: at line 15 of the diff. That line is unchanged context in Azure-ARO-HCP-main.yaml. It sets the arm64 architecture for the existing verify test, not a Linux capability. The new step ref (aro-hcp-cleanup-coverage-ref.yaml) sets no securityContext, privilege, host namespace, or user settings. Its commands script runs go run ./test/cmd/cleanup-coverage with no sudo or root escalation. The generated presubmit and periodic job entries also contain no privileged or host-namespace settings. No failure condition is introduced.

Full details: No-Sensitive-Data-In-Logs

Explanation

The no-sensitive-data-in-logs check passes for this pull request. I inspected the full diff (base..head) for the 8 changed files, which are the Prow job configs, the generated job files, and the new aro-hcp/cleanup-coverage step registry files (OWNERS, metadata, ref YAML, and commands script). - The only logging-related change is set -o xtrace in aro-hcp-cleanup-coverage-commands.sh. Xtrace prints each command with its expanded arguments. The only command is go run ./test/cmd/cleanup-coverage, which takes no arguments and references no variables. The trace therefore cannot print passwords, tokens, API keys, or other secrets. The script also does not reference any credential variable. - The periodic reports to #aro-hcp-failures-dev using a template that contains only the job name, the job state, and a log URL. It does not include job output or secrets. - The new config entries add no echo, printf, or log statements. Limitation: the cleanup-coverage Go checker runs in the Azure/ARO-HCP repository and is not part of this diff. Linked-repository inspection is unavailable, so I could not review what that program logs. The check covers logging in the changed code, and that code does not log sensitive data.

Recent review info

Run configuration

  • Source mode: Auto
  • Repository: openshift/release
  • Branch: main
  • File: .coderabbit.yaml
  • Commit: 2ef8fec
  • Layers: Repository YAML (base), Central YAML (inherited)
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 31a56895-f7aa-4842-8940-3c5256e4ee2b
Commits

Reviewing files that changed from the base of the PR and between 2ef8fec and f553f03.

Files ignored due to path filters: 2

  • ci-operator/jobs/Azure/ARO-HCP/Azure-ARO-HCP-main-periodics.yaml is excluded by !ci-operator/jobs/**
  • ci-operator/jobs/Azure/ARO-HCP/Azure-ARO-HCP-main-presubmits.yaml is excluded by !ci-operator/jobs/**
Files selected for processing: 6

  • ci-operator/config/Azure/ARO-HCP/Azure-ARO-HCP-main.yaml
  • ci-operator/config/Azure/ARO-HCP/Azure-ARO-HCP-main__periodic-cleanup.yaml
  • ci-operator/step-registry/aro-hcp/cleanup-coverage/OWNERS
  • ci-operator/step-registry/aro-hcp/cleanup-coverage/aro-hcp-cleanup-coverage-commands.sh
  • ci-operator/step-registry/aro-hcp/cleanup-coverage/aro-hcp-cleanup-coverage-ref.metadata.json
  • ci-operator/step-registry/aro-hcp/cleanup-coverage/aro-hcp-cleanup-coverage-ref.yaml

Included review availability: This review used your included allowance. Your plan provides up to 2 included reviews per hour; 1 remain after this review.

@openshift-ci

openshift-ci Bot commented Dec 1, 2026

Copy link
Copy Markdown
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: raelga

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Details Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@openshift-ci openshift-ci Bot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Dec 1, 2026
@openshift-ci
openshift-ci Bot requested review from deads2k and marek-veber December 1, 2026 23:39
@openshift-merge-bot

Copy link
Copy Markdown
Contributor

[REHEARSALNOTIFIER]
@raelga: the pj-rehearse plugin accommodates running rehearsal tests for the changes in this PR. Expand 'Interacting with pj-rehearse' for usage details. The following rehearsable tests have been affected by this change:

Test name Repo Type Reason
pull-ci-Azure-ARO-HCP-main-cleanup-coverage Azure/ARO-HCP presubmit Presubmit changed
periodic-ci-Azure-ARO-HCP-main-periodic-cleanup-cleanup-coverage-check N/A periodic Periodic changed

Prior to this PR being merged, you will need to either run and acknowledge or opt to skip these rehearsals.

Interacting with pj-rehearse

Comment: /pj-rehearse to run up to 5 rehearsals
Comment: /pj-rehearse skip to opt-out of rehearsals
Comment: /pj-rehearse {test-name}, with each test separated by a space, to run one or more specific rehearsals
Comment: /pj-rehearse more to run up to 10 rehearsals
Comment: /pj-rehearse max to run up to 25 rehearsals
Comment: /pj-rehearse auto-ack to run up to 5 rehearsals, and add the rehearsals-ack label on success
Comment: /pj-rehearse list to get an up-to-date list of affected jobs
Comment: /pj-rehearse abort to abort all active rehearsals
Comment: /pj-rehearse network-access-allowed to allow rehearsals of tests that have the restrict_network_access field set to false. This must be executed by an openshift org member who is not the PR author

Once you are satisfied with the results of the rehearsals, comment: /pj-rehearse ack to unblock merge. When the rehearsals-ack label is present on your PR, merge will no longer be blocked by rehearsals.
If you would like the rehearsals-ack label removed, comment: /pj-rehearse reject to re-block merging.

@raelga

raelga commented Dec 1, 2026

Copy link
Copy Markdown
Contributor Author

/test core-valid
/test agent-model-policy

Retesting: both jobs started (started.json written at 23:39Z) but neither pod produced a build log after 15 minutes, while core-valid passes on other open PRs (#89746, #89744). This is a stuck/unscheduled job pod for this build, not a result of the diff.

@redhat-chai-bot redhat-chai-bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The presubmit and the daily check use the same step but have different build configurations.


Chai persona: ARO Ops

AI-generated. Review for accuracy.

<{{.Status.URL}}|View logs>'
steps:
test:
- ref: aro-hcp-cleanup-coverage

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

aro-hcp-cleanup-coverage runs from: src, but this periodic-cleanup variant does not declare the build_root needed to produce src. The presubmit declares one in Azure-ARO-HCP-main.yaml, so a passing presubmit would not verify the daily job. Please add the same Go-capable build root here and rehearse cleanup-coverage-check with this variant.


Chai persona: ARO Ops

AI-generated. Review for accuracy.

@openshift-ci

openshift-ci Bot commented Dec 2, 2026

Copy link
Copy Markdown
Contributor

@raelga: all tests passed!

Full PR test history. Your PR dashboard.

Details

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. I understand the commands that are listed here.

@raelga

raelga commented Dec 2, 2026

Copy link
Copy Markdown
Contributor Author

/close

We are changing the approach, Azure/ARO-HCP#8357 has been closed.

@openshift-ci openshift-ci Bot closed this Dec 2, 2026
@openshift-ci

openshift-ci Bot commented Dec 2, 2026

Copy link
Copy Markdown
Contributor

@raelga: Closed this PR.

Details

In response to this:

/close

We are changing the approach, Azure/ARO-HCP#8357 has been closed.

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

approved Indicates a PR has been approved by an approver from all required OWNERS files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants