GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

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

@angelapwen angelapwen commented Aug 20, 2024 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
Contributor

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.

All reactions
angelapwen added 2 commits August 20, 2024 14:50
@angelapwen
Stop checking disk usage for MacOS ARM with SIP disabled
e386df2
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
Add changelog entry
d03f810
@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
@angelapwen angelapwen mentioned this pull request Aug 20, 2024
Unset DYLD_INSERT_BINARIES when unneeded #2428
Closed
3 tasks done
aeisenberg
aeisenberg approved these changes Aug 20, 2024
View reviewed changes

@aeisenberg aeisenberg left a comment

Copy link
Copy Markdown
Contributor

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.

Nice

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@angelapwen
angelapwen merged commit 202b3b9 into main Aug 20, 2024
@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
Merge main into releases/v3 #2437
Merged
6 of 8 tasks
angelapwen added a commit that referenced this pull request Aug 21, 2024
@angelapwen @marcogario
@github-actions @henrymercer @aibaars Remco Vermeulen @rvermeulen @aeisenberg
Merge main into releases/v3 (#2437)
f0f3afe
* 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]>
@github-actions github-actions Bot mentioned this pull request Aug 21, 2024
Merge releases/v3 into releases/v2 #2439
Merged
8 tasks done
@angelapwen angelapwen mentioned this pull request Aug 21, 2024
Error: Command failed: df -Pk when using macos-14 runners (macos-latest) github/codeql#16948
Closed
aibaars
aibaars reviewed Aug 22, 2024
View reviewed changes
Comment thread src/util.ts
if (
process.platform === "darwin" &&
(process.arch === "arm" || process.arch === "arm64") &&
!(await isSipEnabled(logger))

@aibaars aibaars Aug 22, 2024

Copy link
Copy Markdown
Contributor

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
All reactions
  • 👍 1 reaction

@angelapwen angelapwen Aug 22, 2024 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
Contributor Author

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.

All reactions
@angelapwen angelapwen mentioned this pull request Aug 22, 2024
Only run check SIP enablement once in init step #2441
Merged
3 tasks done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

@aeisenberg aeisenberg aeisenberg approved these changes
+1 more reviewer
@aibaars 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

Labels

None yet

Projects

None yet

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.

3 participants

@angelapwen @aeisenberg @aibaars
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.
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.