Skip to content

diagnostic: cap OCLP tier when macOS is outdated#22154

Merged
MikeMcQuaid merged 1 commit intomainfrom
doctor-oclp-tier-outdated-macos
May 6, 2026
Merged

diagnostic: cap OCLP tier when macOS is outdated#22154
MikeMcQuaid merged 1 commit intomainfrom
doctor-oclp-tier-outdated-macos

Conversation

@p-linnane
Copy link
Copy Markdown
Member


  • Have you followed the guidelines in our Contributing document?
  • Have you checked to ensure there aren't other open Pull Requests for the same change?
  • Have you added an explanation of what your changes do and why you'd like us to include them? Performance claims (e.g. "this is faster") must include Hyperfine benchmarks.
  • Have you written new tests (excluding integration tests) for your changes? Here's an example.
  • Have you successfully run brew lgtm (style, typechecking and tests) with your changes locally?

  • AI was used to generate or assist with generating this PR. Please specify below how you used AI to help you, and what steps you have taken to manually verify the changes. Non-maintainers may only have one AI-assisted/generated PR open at a time.

Claude Code with local review and verification.


Fixes https://github.com/orgs/Homebrew/discussions/6835.

Signed-off-by: Patrick Linnane <patrick@linnane.io>
Copilot AI review requested due to automatic review settings May 6, 2026 15:48
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Adjusts the macOS diagnostics messaging for OpenCore Legacy Patcher (OCLP) so that when the host macOS is an outdated release, the reported support tier is capped at Tier 3 (even on otherwise “modern” Intel CPUs). This aligns OCLP guidance with the existing “outdated macOS” support-tier policy.

Changes:

  • Update check_for_opencore to return Tier 3 when OS::Mac.version.outdated_release? is true.
  • Add RSpec coverage for check_for_opencore tier selection across (modern CPU / old CPU) and (supported macOS / outdated macOS) scenarios.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.

File Description
Library/Homebrew/extend/os/mac/diagnostic.rb Caps OCLP support tier at Tier 3 when running an outdated macOS release.
Library/Homebrew/test/os/mac/diagnostic_spec.rb Adds unit tests validating Tier 2 vs Tier 3 selection for OCLP based on CPU features and outdated macOS state.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Copy link
Copy Markdown
Member

@MikeMcQuaid MikeMcQuaid left a comment

Choose a reason for hiding this comment

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

Makes sense thanks!

@MikeMcQuaid MikeMcQuaid added this pull request to the merge queue May 6, 2026
Merged via the queue into main with commit 45bbf23 May 6, 2026
66 of 67 checks passed
@MikeMcQuaid MikeMcQuaid deleted the doctor-oclp-tier-outdated-macos branch May 6, 2026 17:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants