Skip to content

ROSAENG-58795 | task: add on-demand to rosa-clusters-service#82042

Merged
openshift-merge-bot[bot] merged 1 commit into
openshift:mainfrom
davidleerh:ROSAENG-58795-2
Jul 17, 2026
Merged

ROSAENG-58795 | task: add on-demand to rosa-clusters-service#82042
openshift-merge-bot[bot] merged 1 commit into
openshift:mainfrom
davidleerh:ROSAENG-58795-2

Conversation

@davidleerh

@davidleerh davidleerh commented Jul 16, 2026

Copy link
Copy Markdown
Contributor

Summary by CodeRabbit

Updated the OpenShift Online Konflux “konflux-master” CI configuration for rosa-clusters-service (ci-operator/config/openshift-online/rosa-clusters-service/openshift-online-rosa-clusters-service-konflux-master.yaml) to add five additional PR-check jobs: pr-check-rosa-hcp, pr-check-aws, pr-check-gcp, pr-check-rosa-classic, and pr-check-core.

Each job runs ./pr_check.sh in the src container after sourcing prow/load_prow_secrets.sh (with set -x) and mounts the rosa-clusters-service-sandbox secret at /usr/local/rosa-clusters-service-sandbox. The pr-check-aws, pr-check-gcp, pr-check-rosa-classic, and pr-check-core jobs are configured as on-demand (optional: true and always_run: false), while pr-check-rosa-hcp is added with the same command/secret wiring but is not marked optional/always_run: false in this change.

@coderabbitai

coderabbitai Bot commented Jul 16, 2026

Copy link
Copy Markdown
Contributor

Note

Reviews paused

It looks like this branch is under active development. To avoid overwhelming you with review comments due to an influx of new commits, CodeRabbit has automatically paused this review. You can configure this behavior by changing the reviews.auto_review.auto_pause_after_reviewed_commits setting.

Use the following commands to manage reviews:

  • @coderabbitai resume to resume automatic reviews.
  • @coderabbitai review to trigger a single review.

Use the checkboxes below for quick actions:

  • ▶️ Resume reviews
  • 🔍 Trigger review

Walkthrough

The Konflux master configuration adds five PR-check jobs for ROSA HCP, AWS, GCP, ROSA Classic, and core modes. Each sources secrets, uses the src container, mounts the sandbox secret, and invokes pr_check.sh with its mode flag. Four jobs are optional and not always run; ROSA HCP has neither setting.

Changes

Konflux PR checks

Layer / File(s) Summary
Configure mode-specific PR checks
ci-operator/config/openshift-online/rosa-clusters-service/openshift-online-rosa-clusters-service-konflux-master.yaml
Adds five jobs that source load_prow_secrets.sh, enable command tracing, mount rosa-clusters-service-sandbox, and run the corresponding pr_check.sh mode. AWS, GCP, ROSA Classic, and core are optional with always_run: false; ROSA HCP does not set those fields.

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

Suggested reviewers: lucasponce, gdbranco

🚥 Pre-merge checks | ✅ 15
✅ Passed checks (15 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title matches the main change: adding on-demand support to rosa-clusters-service.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring 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 Only CI config YAML changed; no Ginkgo test titles or other test code were modified, so the stability check is not applicable.
Test Structure And Quality ✅ Passed PASS: The PR only changes CI operator/job YAML; no Ginkgo test files or test logic were modified, so the test-structure checklist is not applicable.
Microshift Test Compatibility ✅ Passed Only CI job YAML changed; no new Ginkgo tests or MicroShift-unsafe API use was added.
Single Node Openshift (Sno) Test Compatibility ✅ Passed PR only changes CI job YAML; no Ginkgo/e2e test files or test logic were added, so SNO compatibility check is not applicable.
Topology-Aware Scheduling Compatibility ✅ Passed Only CI job config changed; no deployment manifests, operators, or controllers, and no topology/scheduling constraints were introduced.
Ote Binary Stdout Contract ✅ Passed PR only changes ci-operator YAML; no Go/bin process-level code or stdout-writing initializers were added.
Ipv6 And Disconnected Network Test Compatibility ✅ Passed The PR only changes ci-operator/job YAML to add PR check jobs; no Ginkgo test code or network logic was added, so this check is not applicable.
No-Weak-Crypto ✅ Passed Changed file is only a job-config YAML; it adds test commands/secrets and contains no MD5/SHA1/DES/RC4/3DES/Blowfish/ECB, custom crypto, or secret comparisons.
Container-Privileges ✅ Passed The added job blocks only use container: from: src and secrets; no privileged, hostPID/Network/IPC, SYS_ADMIN, or allowPrivilegeEscalation settings are present.
No-Sensitive-Data-In-Logs ✅ Passed The new jobs only trace the ./pr_check.sh --... invocation; no secrets, tokens, PII, or hostnames are echoed in the added commands.
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@openshift-ci
openshift-ci Bot requested review from gdbranco and lucasponce July 16, 2026 20:21
@openshift-ci openshift-ci Bot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Jul 16, 2026

@coderabbitai coderabbitai 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.

Actionable comments posted: 1

🧹 Nitpick comments (1)
ci-operator/config/openshift-online/rosa-clusters-service/openshift-online-rosa-clusters-service-konflux-master.yaml (1)

34-73: 📐 Maintainability & Code Quality | 🔵 Trivial | 🏗️ Heavy lift

Same ~40-line secret-export block duplicated identically across all 5 jobs.

Lines 34-73 (pr-check-rosa-hcp) are byte-for-byte repeated in lines 83-121 (pr-check-aws), 131-169 (pr-check-gcp), 179-217 (pr-check-rosa-classic), and 227-265 (pr-check-core), differing only in the trailing ./pr_check.sh --<mode> line. Any future secret addition, rename, or fix must be replicated in five places, which is error-prone.

Consider extracting the shared credential-export logic into a step-registry ref (e.g. rosa-clusters-service-load-sandbox-creds-ref) and chaining it before a mode-specific commands:/ref, or moving the export logic into a shared script invoked via ./hack/load-sandbox-env.sh from the repo, so each job only needs the mode flag.

🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In
`@ci-operator/config/openshift-online/rosa-clusters-service/openshift-online-rosa-clusters-service-konflux-master.yaml`
around lines 34 - 73, The sandbox credential-export block is duplicated across
all five job definitions. Extract the shared exports into a reusable
step-registry ref or repository script, then update each job to invoke that
shared logic before its mode-specific pr_check.sh command, leaving only the
differing mode flag in each job.
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

Inline comments:
In
`@ci-operator/config/openshift-online/rosa-clusters-service/openshift-online-rosa-clusters-service-konflux-master.yaml`:
- Around line 33-81: Update all five pr-check-* job definitions, including
pr-check-rosa-hcp and the surrounding entries, to explicitly disable automatic
execution by adding always_run: false or the repository’s equivalent trigger
configuration. Preserve optional: true for non-blocking behavior and apply the
same on-demand trigger rule consistently to every pr-check-* entry.

---

Nitpick comments:
In
`@ci-operator/config/openshift-online/rosa-clusters-service/openshift-online-rosa-clusters-service-konflux-master.yaml`:
- Around line 34-73: The sandbox credential-export block is duplicated across
all five job definitions. Extract the shared exports into a reusable
step-registry ref or repository script, then update each job to invoke that
shared logic before its mode-specific pr_check.sh command, leaving only the
differing mode flag in each job.
🪄 Autofix (Beta)

Fix all unresolved CodeRabbit comments on this PR:

  • Push a commit to this branch (recommended)
  • Create a new PR with the fixes

ℹ️ Review info
⚙️ Run configuration

Configuration used: Repository YAML (base), Central YAML (inherited)

Review profile: CHILL

Plan: Enterprise

Run ID: 290ddb85-886b-4fb4-b9d2-3429a0e2eff7

📥 Commits

Reviewing files that changed from the base of the PR and between 939c03b and 66392be.

⛔ Files ignored due to path filters (1)
  • ci-operator/jobs/openshift-online/rosa-clusters-service/openshift-online-rosa-clusters-service-konflux-master-presubmits.yaml is excluded by !ci-operator/jobs/**
📒 Files selected for processing (1)
  • ci-operator/config/openshift-online/rosa-clusters-service/openshift-online-rosa-clusters-service-konflux-master.yaml

@davidleerh

Copy link
Copy Markdown
Contributor Author

/pj-rehearse

@openshift-merge-bot

Copy link
Copy Markdown
Contributor

@davidleerh: now processing your pj-rehearse request. Please allow up to 10 minutes for jobs to trigger or cancel.

@davidleerh

Copy link
Copy Markdown
Contributor Author

/pj-rehearse

@openshift-merge-bot

Copy link
Copy Markdown
Contributor

@davidleerh: now processing your pj-rehearse request. Please allow up to 10 minutes for jobs to trigger or cancel.

@davidleerh

Copy link
Copy Markdown
Contributor Author

/pj-rehearse pr-check-rosa-hcp

@openshift-merge-bot

Copy link
Copy Markdown
Contributor

@davidleerh: now processing your pj-rehearse request. Please allow up to 10 minutes for jobs to trigger or cancel.

@davidleerh

Copy link
Copy Markdown
Contributor Author

/pj-rehearse pr-check-rosa-hcp

@openshift-merge-bot

Copy link
Copy Markdown
Contributor

@davidleerh: now processing your pj-rehearse request. Please allow up to 10 minutes for jobs to trigger or cancel.

@davidleerh

Copy link
Copy Markdown
Contributor Author

/pj-rehearse pr-check-rosa-hcp

@davidleerh

Copy link
Copy Markdown
Contributor Author

/pj-rehearse

@openshift-merge-bot

Copy link
Copy Markdown
Contributor

@davidleerh: now processing your pj-rehearse request. Please allow up to 10 minutes for jobs to trigger or cancel.

1 similar comment
@openshift-merge-bot

Copy link
Copy Markdown
Contributor

@davidleerh: now processing your pj-rehearse request. Please allow up to 10 minutes for jobs to trigger or cancel.

@davidleerh

Copy link
Copy Markdown
Contributor Author

/pj-rehearse

@openshift-merge-bot

Copy link
Copy Markdown
Contributor

@davidleerh: now processing your pj-rehearse request. Please allow up to 10 minutes for jobs to trigger or cancel.

2 similar comments
@openshift-merge-bot

Copy link
Copy Markdown
Contributor

@davidleerh: now processing your pj-rehearse request. Please allow up to 10 minutes for jobs to trigger or cancel.

@openshift-merge-bot

Copy link
Copy Markdown
Contributor

@davidleerh: now processing your pj-rehearse request. Please allow up to 10 minutes for jobs to trigger or cancel.

@davidleerh

Copy link
Copy Markdown
Contributor Author

/pj-rehearse

@openshift-merge-bot

Copy link
Copy Markdown
Contributor

@davidleerh: now processing your pj-rehearse request. Please allow up to 10 minutes for jobs to trigger or cancel.

@davidleerh

Copy link
Copy Markdown
Contributor Author

/pj-rehearse

@openshift-merge-bot

Copy link
Copy Markdown
Contributor

@davidleerh: now processing your pj-rehearse request. Please allow up to 10 minutes for jobs to trigger or cancel.

@davidleerh

Copy link
Copy Markdown
Contributor Author

/pj-rehearse

@openshift-merge-bot

Copy link
Copy Markdown
Contributor

@davidleerh: now processing your pj-rehearse request. Please allow up to 10 minutes for jobs to trigger or cancel.

@davidleerh

Copy link
Copy Markdown
Contributor Author

/pj-rehearse

1 similar comment
@davidleerh

Copy link
Copy Markdown
Contributor Author

/pj-rehearse

@openshift-merge-bot

Copy link
Copy Markdown
Contributor

@davidleerh: now processing your pj-rehearse request. Please allow up to 10 minutes for jobs to trigger or cancel.

@openshift-merge-bot

Copy link
Copy Markdown
Contributor

@davidleerh: now processing your pj-rehearse request. Please allow up to 10 minutes for jobs to trigger or cancel.

@davidleerh

Copy link
Copy Markdown
Contributor Author

/pj-rehearse ack

@openshift-merge-bot

Copy link
Copy Markdown
Contributor

@davidleerh: now processing your pj-rehearse request. Please allow up to 10 minutes for jobs to trigger or cancel.

@openshift-merge-bot openshift-merge-bot Bot added the rehearsals-ack Signifies that rehearsal jobs have been acknowledged label Jul 17, 2026
@jfrazierRedHat

Copy link
Copy Markdown
Contributor

/lgtm

@openshift-ci openshift-ci Bot added the lgtm Indicates that a PR is ready to be merged. label Jul 17, 2026
@openshift-ci

openshift-ci Bot commented Jul 17, 2026

Copy link
Copy Markdown
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: davidleerh, jfrazierRedHat

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 commented Jul 17, 2026

Copy link
Copy Markdown
Contributor

@davidleerh: 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.

@openshift-merge-bot
openshift-merge-bot Bot merged commit b23ece1 into openshift:main Jul 17, 2026
16 checks passed
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. lgtm Indicates that a PR is ready to be merged. rehearsals-ack Signifies that rehearsal jobs have been acknowledged

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants