| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
Sorry, something went wrong.
Prior to CLI v2.15.1, ARM runners were not supported by the build tracer. "macos-latest" is now an ARM runner, so we run these tests on the old CLIs on Intel runners instead.
Just so we can see all CLI versions that are failing on `macos-12`
There was a problem hiding this comment.
Thanks - generally looks good but a couple of minor suggestions.
Sorry, something went wrong.
| !(await isSipEnabled(logger)) | ||
| ) { | ||
| logger.warning( | ||
| "CodeQL versions 2.15.0 and lower are not supported on MacOS ARM machines with System Integrity Protection (SIP) disabled.", |
There was a problem hiding this comment.
The warning mentions ARM, but you're not checking process.arch.
Either we can change the warning to say macOS in general with SIP disabled is not supported on <=2.15.0 (not strictly true, but I don't know if we fixed other relocation issues that would affect Intel),
or change the code above to check process.arch being arm or arm64.
Sorry, something went wrong.
There was a problem hiding this comment.
Ah yes, good point 👍 will change it to process.arch as I believe that's more accurate to the problem we were looking at in 2.15.1.
Sorry, something went wrong.
| // For CLI versions <2.15.1, build tracing caused errors in MacOS ARM machines with | ||
| // System Integrity Protection (SIP) disabled. | ||
| if ( | ||
| !(await codeQlVersionAbove(codeql, "2.15.1")) && |
There was a problem hiding this comment.
Minor, separate: I had to go look at the definition to remind myself whether this was > or >=. Perhaps we should rename it codeQlVersionAtLeast or similar.
Sorry, something went wrong.
There was a problem hiding this comment.
Good point, I always double check that it's using gte too. I've made the change
Sorry, something went wrong.
| (matrix.os == 'macos-latest' || | ||
| matrix.os == 'macos-12') && ( |
There was a problem hiding this comment.
Can we simplify this to just runner.os == 'macOS'?
Sorry, something went wrong.
There was a problem hiding this comment.
Yep, done!
Sorry, something went wrong.
| // System Integrity Protection (SIP) disabled. | ||
| if ( | ||
| !(await codeQlVersionAbove(codeql, "2.15.1")) && | ||
| process.platform === "darwin" && |
There was a problem hiding this comment.
This line needs to remain!
Sorry, something went wrong.
There was a problem hiding this comment.
Oh yes, Linux exists 😆
Sorry, something went wrong.
| Back | FazBrowse Home | New Git URL |
The macos-latest image is now ARM rather than Intel, so we need to change some of our PR Checks. The build tracer on CLI versions before v2.15.1 did not support the ARM machines where System Integrity Protection was disabled, which now includes macos-latest.
This change:
Separately, the macos-latest image no longer supports Go on the path by default, so this PR adds setup-go to all PR checks analyzing Go.
I've updated the Required PR checks on main to include the new ones, but have not updated v2 or v3 yet.
Merge / deployment checklist