You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
ci(ARO-HCP): gate cleanup coverage in Prow (AROSLSRE-2945) - #89748
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.
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.
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
LoadingMerge Risk: Minimal · up to f553f · assessed changes only
Path filters excluded changed files. This rating applies only to the assessed changes.
Pre-merge checks: 14
Check name
Status
Explanation
Description Check
Check skipped - CodeRabbit’s high-level summary is enabled.
Title check
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
Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check
Check skipped because no linked issues were found for this pull request.
Stable And Deterministic Test Names
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
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
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
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
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
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
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
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
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
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.
Included review availability: This review used your included allowance. Your plan provides up to 2 included reviews per hour; 1 remain after this review.
[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:
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.
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.
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.
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.
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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
approvedIndicates a PR has been approved by an approver from all required OWNERS files.
2 participants
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Jira: AROSLSRE-2945
What
Adds the
aro-hcp-cleanup-coveragestep and runs it in two places:cleanup-coveragepresubmit whentest/e2e-config/e2e-slots.yaml,config/config-dev-ci.yamlor the checker itself changes.cleanup-coverage-checkdaily periodic, to catch a cleanup job removed from this repository.The step runs
go run ./test/cmd/cleanup-coveragein thesrcimage 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-checkconfigpasses.ci-operator-prowgenandsanitize-prow-jobs: exactly the new presubmit (clusterbuild05) and periodic (clusterbuild04) are added; all existing jobs are unchanged by JSON-normalized comparison.determinize-ci-operatorproduces no additional changes.cleanup-coveragecommand from Azure/ARO-HCP#8357 onmain. This PR lands after that one and is rehearsed once the command is available.Special notes for your reviewer
main; they are triggered after that merge.#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.
aro-hcp-cleanup-coveragestep. It runsgo run ./test/cmd/cleanup-coveragein thesrcimage.cleanup-coveragepresubmit. It runs whentest/e2e-config/e2e-slots.yaml,config/config-dev-ci.yaml, or the checker changes.cleanup-coverage-checkperiodic. It reports to#aro-hcp-failures-devwhen 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
mainbefore the jobs can run. Rehearsals have not run yet.