-
Notifications
You must be signed in to change notification settings - Fork 335
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
macos-latest cannot install homebrew packages after using this action #2266
Comments
Thanks for reporting! Could you re-run the failed job with debug logging enabled? When running in debug mode, the CodeQL Action should attach a debug artifact to the Job's summary page. That would be very helpful for diagnosing the problem. As a workaround, have you tried running "brew install" before the |
I have re-run it in debug mode: https://github.com/ReenigneArcher/brew-error-reproduction/actions/runs/8870403949/job/24376380948 I have not tried refactoring the workflow yet, but I know that the brew install would at least succeed if it were before the init. The actual production workflow is a bit more complex than the reproduction workflow, I'd like to avoid refactoring it, if possible. |
Thanks! The attached debug artifact wasn't as helpful as I expected, however, I spotted the following in the raw Actions logs:
Somehow CodeQL's tracer fails on the |
Another workaround you could try is to change the |
Re-ordering the workflow won't be feasible due to it requiring the build to run after this action is initialized: https://github.com/orgs/community/discussions/68044#discussioncomment-7109477 Mostly this is due to me using a single code-ql workflow for all my org repos, which checks for the existence of a |
Just checking in. This is still occurring: https://github.com/ReenigneArcher/brew-error-reproduction/actions/runs/9916092767/job/27397917114#step:3:66 |
Thank you for sharing your workflow runs — this looks like a new issue with our build tracer. We've raised this with the appropriate team internally. |
After a colleague dug into this a bit more, here's what we've come up with: our build tracer forces relocation to x86, which leads to a x86 execution under Rosetta. Apparently, that x86 execution doesn't play well with Homebrew. For now, please try the suggestion in the logs, |
@angelapwen Thank you for looking into this. I am pretty sure I tried the suggestion in the logs ( |
Sorry for the delay... When using the suggestion from the logs (ReenigneArcher/brew-error-reproduction#2), I get the following error:
Interesting since homebrew suggests to use that exact command. |
Just following up to hopefully keep this on the radar. The macos-12 image is about to removed. macos-13 will likely be EOL in October 2025, so there's still a little time. These also seem related: |
This should be fixed in CodeQL 2.19.4: an |
@smowton when will this action start using 2.19.4? It looks like it's still using 2.19.3. |
It became fully enabled by default at around 4.30pm on the 3rd Dec; try a rerun now? |
Yes, looks like it's using the new version now. Seems to work if forcing arm for brew, but not using the normal brew commands: https://github.com/ReenigneArcher/brew-error-reproduction/actions/runs/12160656532/job/33913434744#step:3:62 Good enough though, thank you! |
macos-latest (i.e. macos-14) image fails to install homebrew packages AFTER using codeql-action. The same homebrew install works fine if not using the codeql-action.
I filed a report on the runner-images repo (before I realized the codeql action was causing the issue), they suggested I file a bug report here instead.
actions/runner-images#9760
This is the simplest reproduction I could create. https://github.com/ReenigneArcher/brew-error-reproduction/blob/master/.github/workflows/brew_error.yml
It works fine if not using the codeql setup step first.
Logs: https://github.com/ReenigneArcher/brew-error-reproduction/actions/runs/8870403949/job/24352158742
The text was updated successfully, but these errors were encountered: