Skip to content
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

Stop checking disk usage for MacOS ARM with SIP disabled #2434

Merged
merged 2 commits into from
Aug 20, 2024

Conversation

angelapwen
Copy link
Contributor

@angelapwen angelapwen commented Aug 20, 2024

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.

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.
@angelapwen angelapwen marked this pull request as ready for review August 20, 2024 22:10
@angelapwen angelapwen requested a review from a team as a code owner August 20, 2024 22:10
Copy link
Contributor

@aeisenberg aeisenberg left a comment

Choose a reason for hiding this comment

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

Nice

@angelapwen angelapwen merged commit 202b3b9 into main Aug 20, 2024
613 checks passed
@angelapwen angelapwen deleted the angelapwen/dont-run-df-sip-disabled branch August 20, 2024 23:04
@github-actions github-actions bot mentioned this pull request Aug 21, 2024
8 tasks
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 <aeisenberg@github.com>

* Address incorrect changelog location

* Update changelog for v3.26.4

---------

Co-authored-by: Marco Gario <marcogario@github.com>
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: Henry Mercer <henry@henrymercer.name>
Co-authored-by: Arthur Baars <aibaars@github.com>
Co-authored-by: Angela P Wen <angelapwen@github.com>
Co-authored-by: Remco Vermeulen <rvermeulen@github.com>
Co-authored-by: Remco Vermeulen <rvermeulen@users.noreply.github.com>
Co-authored-by: Andrew Eisenberg <aeisenberg@github.com>
@github-actions github-actions bot mentioned this pull request Aug 21, 2024
8 tasks
if (
process.platform === "darwin" &&
(process.arch === "arm" || process.arch === "arm64") &&
!(await isSipEnabled(logger))
Copy link
Collaborator

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.

Copy link
Contributor Author

@angelapwen angelapwen Aug 22, 2024

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.

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