GeezerVison is showing github.com — Stop checking disk usage for MacOS ARM with SIP disabled by angelapwen · Pull Request #2434 · github/codeql-action
Conversation
angelapwen
commented
Aug 20, 2024
•
edited
Loading
Uh oh!
There was an error while loading. Please reload this page.
On MacOS ARM machines where SIP is disabled, after the build tracer is initialized in the init Action, we receive warnings when we run send status reports due to the df binary. This change will make it so that we no longer run df for those machines.
Merge / deployment checklist
- Confirm this change is backwards compatible with existing workflows.
- Confirm the readme has been updated if necessary.
- Confirm the changelog has been updated if necessary.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
On MacOS ARM machines where SIP is disabled, after the build tracer is initialized in the `init` Action, we receive warnings when we run send status reports due to the `df` binary. This change will make it so that we no longer run `df` for those machines.
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.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
angelapwen
added a commit
that referenced
this pull request
Aug 21, 2024
* Consider registries_credentials as input
* Clean-up logging
* More debugging of credentials
* Support URL
* Validate credentials input
* fixes
* Try upload teh proxy logs
* Update changelog and version after v3.26.3
* Update checked-in dependencies
* Stop checking disk usage for MacOS ARM with SIP disabled (#2434)
* Stop checking disk usage for MacOS ARM with SIP disabled
On MacOS ARM machines where SIP is disabled, after the build tracer is initialized in the `init` Action, we receive warnings when we run send status reports due to the `df` binary. This change will make it so that we no longer run `df` for those machines.
* Add deprecation message to `add-snippets` input.
* Update changelog with deprecation.
* Add link to PR deprecating `add-snippets` to CHANGELOG.md
Co-authored-by: Andrew Eisenberg <[email protected]>
* Address incorrect changelog location
* Update changelog for v3.26.4
---------
Co-authored-by: Marco Gario <[email protected]>
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: Henry Mercer <[email protected]>
Co-authored-by: Arthur Baars <[email protected]>
Co-authored-by: Angela P Wen <[email protected]>
Co-authored-by: Remco Vermeulen <[email protected]>
Co-authored-by: Remco Vermeulen <[email protected]>
Co-authored-by: Andrew Eisenberg <[email protected]>
|
|
if (
|
|
|
process.platform === "darwin" &&
|
|
|
(process.arch === "arm" || process.arch === "arm64") &&
|
|
|
!(await isSipEnabled(logger))
|
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.
@angelapwen
I think isSipEnabled should not be called after the tracer has been initialised. Perhaps run it once in init and store the result with core.saveState() . The csrutil command is arm64e just like df.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
angelapwen reacted with thumbs up emoji
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.
@aibaars thanks!! core.saveState() as far as I'm aware only works within an Action and its wrappers (eg. the post-hook) — usually we use an environment variable to pass state between steps. I've done that in #2441.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
Reviewers
+1 more reviewer
aibaars
aibaars left review comments
Reviewers whose approvals may not affect merge requirements
Uh oh!
There was an error while loading. Please reload this page.
Assignees
No one assigned
Milestone
No milestone
Development
Successfully merging this pull request may close these issues.
Uh oh!
There was an error while loading. Please reload this page.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.