Skip to content

Migrate from deprecated oc-installer to openshift-tools-installer - #305

Merged
jbpratt merged 1 commit into
quay:mainfrom
snecklifter:migrate-oc-installer
Aug 25, 2026
Merged

jbpratt merged 1 commit into
quay:mainfrom
snecklifter:migrate-oc-installer

Conversation

@snecklifter

Copy link
Copy Markdown
Contributor

Summary

  • Replace redhat-actions/oc-installer (pinned to SHA) with redhat-actions/openshift-tools-installer@v2 in both jobs in the CI workflow
  • Uses oc: "4" to match the previous oc_version: "4.6" while allowing newer 4.x patch releases

Why

redhat-actions/oc-installer is deprecated:

  • The download mirror it points to has not been updated since December 2020
  • The action now emits a deprecation warning at runtime (redhat-actions/oc-installer#32)

openshift-tools-installer is the actively maintained successor, supporting semver ranges, arm64, cross-workflow caching, and 18+ tools.

Closes #304

Test plan

  • Verify CI jobs install oc successfully with the new action

@coderabbitai

coderabbitai Bot commented Jul 27, 2026 •

Copy link
Copy Markdown

Warning

Review limit reached

@snecklifter, you've reached your PR review limit, so we couldn't start this review.

Next review available in: 13 minutes

Enable usage-based reviews in Billing to review now. Otherwise, wait until the next included review is available.
You're only billed for reviews past your plan's rate limits ($0.25/file).

How can I continue?

After more reviews become available, a review can be triggered using the @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

To avoid repeated limits, reduce automatic review volume by pausing incremental auto-reviews earlier, using label-based review opt-in, excluding WIP or generated PR titles, or requesting reviews manually when the PR is ready. If your team needs uninterrupted high-volume reviews, an organization admin can enable usage-based reviews.

How do review limits work?

CodeRabbit enforces per-developer PR review limits for each organization. Most developers receive the normal plan review availability.

For paid Pro and Pro+ PR reviews, CodeRabbit uses adaptive limits for sustained high-volume activity. When a developer's recent PR review activity reaches the 95th percentile or higher among CodeRabbit users, additional reviews become available more gradually as earlier reviews age out of the rolling window.

Please refer docs for additional details.

Review details
⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro Plus

Run ID: 9bc00a18-c0b5-4fb4-99b1-8bb82c13f78f

📥 Commits

Reviewing files that changed from the base of the PR and between d38c603 and 5a5e646.

📒 Files selected for processing (1)
  • .github/workflows/jobs.yml

Walkthrough

The remote and local install test flows replace the deprecated oc-installer action with openshift-tools-installer@v2, configuring installation through the oc: "4" input.

Changes

OpenShift client installer migration

Layer / File(s) Summary
Update workflow oc installation
.github/workflows/jobs.yml
Both remote and local install test flows now use redhat-actions/openshift-tools-installer@v2 with oc: "4" instead of the deprecated pinned installer.

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

Assessment against linked issues

Objective Addressed Explanation
Migrate workflow usage from redhat-actions/oc-installer to redhat-actions/openshift-tools-installer [#304] ✅
Use the semver oc: "4" configuration [#304] ✅

Suggested reviewers: harishsurf

✨ 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.

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Actionable comments posted: 1

🤖 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 @.github/workflows/jobs.yml:
- Line 209: Replace both redhat-actions/openshift-tools-installer@v2 references
in .github/workflows/jobs.yml at lines 209-209 and 423-423 with the same
resolved immutable v2 commit SHA, retaining the # v2 readability comment at each
site.
🪄 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: Organization UI

Review profile: CHILL

Plan: Pro Plus

Run ID: 39e91a07-8cb0-460b-abca-5c09469797fd

📥 Commits

Reviewing files that changed from the base of the PR and between 4b2cbcc and d38c603.

📒 Files selected for processing (1)
  • .github/workflows/jobs.yml

Comment thread .github/workflows/jobs.yml Outdated
Replace redhat-actions/oc-installer with
redhat-actions/openshift-tools-installer@v2, pinned to its commit SHA
for supply-chain security. Uses semver `oc: "4"` input.

Closes quay#304

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@snecklifter
snecklifter force-pushed the migrate-oc-installer branch from d38c603 to 5a5e646 Compare July 27, 2026 14:43
@snecklifter

Copy link
Copy Markdown
Contributor Author

Hey @harishsurf @jonathankingfc @HammerMeetNail — this is ready for review when you get a chance. It's a straightforward migration from the deprecated oc-installer action to openshift-tools-installer@v2 (pinned to commit SHA), as outlined in #304.

@jbpratt

jbpratt commented Aug 25, 2026

Copy link
Copy Markdown
Contributor

Thanks as always @snecklifter ❤️

@jbpratt
jbpratt merged commit b4d1105 into quay:main Aug 25, 2026
3 checks passed
@codecov-commenter

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 27.79%. Comparing base (4b2cbcc) to head (5a5e646).
⚠️ Report is 1 commits behind head on main.

Additional details and impacted files

Impacted file tree graph

@@           Coverage Diff           @@
##             main     #305   +/-   ##
=======================================
  Coverage   27.79%   27.79%           
=======================================
  Files           6        6           
  Lines         608      608           
=======================================
  Hits          169      169           
  Misses        436      436           
  Partials        3        3           
Flag Coverage Δ
unit-tests 27.79% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

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

Labels

None yet

Development

Successfully merging this pull request may close these issues.

Migrate from deprecated redhat-actions/oc-installer to openshift-tools-installer

3 participants