Skip to content

Allow verify directories to already exist#81539

Merged
openshift-merge-bot[bot] merged 1 commit into
openshift:mainfrom
JoelSpeed:allow-local-override-api-verify
Jul 7, 2026
Merged

Allow verify directories to already exist#81539
openshift-merge-bot[bot] merged 1 commit into
openshift:mainfrom
JoelSpeed:allow-local-override-api-verify

Conversation

@JoelSpeed

@JoelSpeed JoelSpeed commented Jul 7, 2026

Copy link
Copy Markdown
Contributor

Allow the hypershift and client-fo directories to already exist. This means that when you use /testwith, which clones the working code out from another PR, we can leverage that code rather than the main branch content.

Summary by CodeRabbit

Adjusted the OpenShift API CI release verification flow (ci-operator/config/openshift/api/openshift-api-master.yaml) so the verify-client-go and verify-hypershift-integration steps can run when their working directories already exist (e.g., during /testwith where code is pre-cloned from another PR). The steps now conditionally git clone openshift/client-go and openshift/hypershift only if the corresponding target directories are missing, preventing clones from overwriting or replacing existing checked-out content; the subsequent vendoring/modification/testing commands remain unchanged.

@openshift-ci openshift-ci Bot requested review from everettraven and psalajova July 7, 2026 10:22
@JoelSpeed

Copy link
Copy Markdown
Contributor Author

/testwith openshift/api/master/verify-client-go openshift/api#2813

@openshift-ci openshift-ci Bot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Jul 7, 2026
@coderabbitai

coderabbitai Bot commented Jul 7, 2026

Copy link
Copy Markdown
Contributor

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

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

Review profile: CHILL

Plan: Enterprise

Run ID: 9e14dbaf-ce46-436a-a8f6-f72b24f9eda7

📥 Commits

Reviewing files that changed from the base of the PR and between 582ac2f and ca31e8e.

📒 Files selected for processing (1)
  • ci-operator/config/openshift/api/openshift-api-master.yaml

Walkthrough

This change updates the openshift/api CI configuration so two verify jobs only clone repositories when the destination directories are absent.

Changes

Clone guard updates

Layer / File(s) Summary
Guarded clone steps
ci-operator/config/openshift/api/openshift-api-master.yaml
verify-client-go now checks for an existing openshift/client-go directory before cloning, and verify-hypershift-integration now checks for existing openshift/hypershift and openshift-client-go directories before cloning.

Estimated code review effort: 1 (Trivial) | ~3 minutes

🚥 Pre-merge checks | ✅ 5 | ❌ 10

❌ Failed checks (10 inconclusive)

Check name Status Explanation Resolution
Stable And Deterministic Test Names ❓ Inconclusive Repository clone failed, so this custom check could not run with code access. Retry the review run. If this persists, inspect pre-merge custom-check logs for infrastructure or agent runtime failures.
Test Structure And Quality ❓ Inconclusive Repository clone failed, so this custom check could not run with code access. Retry the review run. If this persists, inspect pre-merge custom-check logs for infrastructure or agent runtime failures.
Microshift Test Compatibility ❓ Inconclusive Repository clone failed, so this custom check could not run with code access. Retry the review run. If this persists, inspect pre-merge custom-check logs for infrastructure or agent runtime failures.
Single Node Openshift (Sno) Test Compatibility ❓ Inconclusive Repository clone failed, so this custom check could not run with code access. Retry the review run. If this persists, inspect pre-merge custom-check logs for infrastructure or agent runtime failures.
Topology-Aware Scheduling Compatibility ❓ Inconclusive Repository clone failed, so this custom check could not run with code access. Retry the review run. If this persists, inspect pre-merge custom-check logs for infrastructure or agent runtime failures.
Ote Binary Stdout Contract ❓ Inconclusive Repository clone failed, so this custom check could not run with code access. Retry the review run. If this persists, inspect pre-merge custom-check logs for infrastructure or agent runtime failures.
Ipv6 And Disconnected Network Test Compatibility ❓ Inconclusive Repository clone failed, so this custom check could not run with code access. Retry the review run. If this persists, inspect pre-merge custom-check logs for infrastructure or agent runtime failures.
No-Weak-Crypto ❓ Inconclusive Repository clone failed, so this custom check could not run with code access. Retry the review run. If this persists, inspect pre-merge custom-check logs for infrastructure or agent runtime failures.
Container-Privileges ❓ Inconclusive Repository clone failed, so this custom check could not run with code access. Retry the review run. If this persists, inspect pre-merge custom-check logs for infrastructure or agent runtime failures.
No-Sensitive-Data-In-Logs ❓ Inconclusive Repository clone failed, so this custom check could not run with code access. Retry the review run. If this persists, inspect pre-merge custom-check logs for infrastructure or agent runtime failures.
✅ Passed checks (5 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title clearly reflects the main change: verify steps now tolerate pre-existing directories.
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.
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests

Warning

Review ran into problems

🔥 Problems

Git: Failed to clone repository. Please run the @coderabbitai full review command to re-trigger a full review. If the issue persists, set path_filters to include or exclude specific files.


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

@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: 2

🤖 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/api/openshift-api-master.yaml`:
- Around line 86-88: The clone guard in the script block is backwards: the `git
clone` step should run when `$dir` is missing, not when it already exists.
Update the conditional around the `git clone
https://github.com/openshift/client-go` command so normal CI populates an
empty/missing checkout, and existing non-empty directories are left alone; use
the `$dir` check in that same shell block to invert the logic cleanly.
- Around line 104-109: The clone conditions in the integration setup are
inverted and only run when the target directories already exist. Update the
shell checks around the hypershift and openshift-client-go git clone commands so
they only execute when the corresponding directories are absent, using the
existing $dir-based paths in the script. Keep the same guard pattern for both
clone blocks so fresh CI runs populate the checkouts and existing workspaces are
not overwritten.
🪄 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: 01848b5f-8b33-420c-b9f3-5f0baf95971a

📥 Commits

Reviewing files that changed from the base of the PR and between 982f1bb and 582ac2f.

📒 Files selected for processing (1)
  • ci-operator/config/openshift/api/openshift-api-master.yaml

Comment thread ci-operator/config/openshift/api/openshift-api-master.yaml Outdated
Comment thread ci-operator/config/openshift/api/openshift-api-master.yaml Outdated
Allow the hypershift and client-fo directories to already exist.
This means that when you use `/testwith`, which clones the working
code out from another PR, we can leverage that code rather than
the main branch content.
@JoelSpeed JoelSpeed force-pushed the allow-local-override-api-verify branch from 582ac2f to ca31e8e Compare July 7, 2026 10:54
@JoelSpeed

Copy link
Copy Markdown
Contributor Author

/testwith openshift/api/master/verify-client-go openshift/api#2813

@openshift-merge-bot

Copy link
Copy Markdown
Contributor

[REHEARSALNOTIFIER]
@JoelSpeed: 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-openshift-api-master-verify-client-go openshift/api presubmit Ci-operator config changed
pull-ci-openshift-api-master-verify-hypershift-integration openshift/api presubmit Ci-operator config changed
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.

@JoelSpeed

Copy link
Copy Markdown
Contributor Author

/pj-rehearse ack

The test with is more representative

@openshift-merge-bot

Copy link
Copy Markdown
Contributor

@JoelSpeed: 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 7, 2026

@saschagrunert saschagrunert left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

/lgtm

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

openshift-ci Bot commented Jul 7, 2026

Copy link
Copy Markdown
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: JoelSpeed, saschagrunert

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 7, 2026

Copy link
Copy Markdown
Contributor

@JoelSpeed: 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 15244dd into openshift:main Jul 7, 2026
14 of 15 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