New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
hardware/cpu: add virtualized?
check
#16500
Conversation
Thank you to @Bo98 for the idea & guidance here 🙇♂️ |
Signed-off-by: Patrick Linnane <patrick@linnane.io>
819cf0d
to
74a487c
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks!
Good idea @p-linnane! |
@p-linnane although: please note on this that this should never be used in |
This is primarily to deal with things like OpenCL, which doesn't work on ephemeral ARM, or other GPU related things. Here's an example of a test update I made yesterday, and @Bo98 weighed in on adding this check: Homebrew/homebrew-core#160229 |
Yeah OpenCL not working is not a CI limitation but rather a virtualisation limitation. So this is a more correct check than HOMEBREW_GITHUB_ACTIONS in those situations as it will be correct should anyone run the test in a local VM. |
@p-linnane @Bo98 Gotcha, thanks, seems reasonable. I guess what I'm suggesting is that we avoid |
brew style
with your changes locally?brew typecheck
with your changes locally?brew tests
with your changes locally?This PR adds a check for virtualization, so we no longer have to use the
ENV["HOMEBREW_GITHUB_ACTIONS"]
hack to work around CI failures.