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

fail to run on macos-latest #183

Open
yihuang opened this issue Jun 16, 2023 · 12 comments
Open

fail to run on macos-latest #183

yihuang opened this issue Jun 16, 2023 · 12 comments
Labels
bug Something isn't working

Comments

@yihuang
Copy link

yihuang commented Jun 16, 2023

the action fails on macos-latest with error message:

Could not set environment: 150: Operation not permitted while System Integrity Protection is engaged
  Error: Process completed with exit code 150.

it seems to work after we pin to macos-11 though, which don't have the "System Integrity Protection" feature.

UPDATE: upgrade to install-nix-action@v22

@sigprof
Copy link
Contributor

sigprof commented Jun 16, 2023

Apparently this is related to some recent system update, which had not been rolled out on all macos-12 runners yet.

The action succeeds on runners with macOS 12.6.5:

Current runner version: '2.304.0'
Operating System
  macOS
  12.6.5
  21G531
Runner Image
  Image: macos-12
  Version: 20230516.1
  Included Software: https://github.com/actions/runner-images/blob/macOS-12/20230516.1/images/macos/macos-12-Readme.md
  Image Release: https://github.com/actions/runner-images/releases/tag/macOS-12%2F20230516.1
Runner Image Provisioner
  2.0.236.1

The action fails on runners with macOS 12.6.6:

Current runner version: '2.304.0'
Operating System
  macOS
  12.6.6
  21G646
Runner Image
  Image: macos-12
  Version: 20230612.1
  Included Software: https://github.com/actions/runner-images/blob/macOS-12/20230612.1/images/macos/macos-12-Readme.md
  Image Release: https://github.com/actions/runner-images/releases/tag/macOS-12%2F20230612.1
Runner Image Provisioner
  2.0.236.1

@sigprof
Copy link
Contributor

sigprof commented Jun 16, 2023

Also I don't seem to be able to trigger the problem now — repeated attempts to run CI got only macOS 12.6.5 runners with the 20230516.1 image, so maybe the update rollout had been stopped after seeing many failures.

The failure also does not happen on the beta macos-13 runners (in that case I got a mix of 20230524.1 and 20230611.2 runner images, both worked, but they have the same macOS 13.4 (22F66) version).

@torhovland
Copy link

torhovland commented Jun 16, 2023

I actually got the same error on macos-11:

https://github.com/tweag/topiary/actions/runs/5289277405/jobs/9572003650

But macos-13 works.

EdenEast added a commit to EdenEast/nyx that referenced this issue Jun 16, 2023
There currently is an issue with cachix/install-nix-action see:

cachix/install-nix-action#183

This issue is not present on macos-13 moving to that iamge.
thufschmitt pushed a commit to tweag/nix that referenced this issue Jun 16, 2023
EdenEast added a commit to EdenEast/nyx that referenced this issue Jun 16, 2023
* flake.lock: Update

Flake lock file updates:

• Updated input 'darwin':
    'github:lnl7/nix-darwin/025912529dd0b31dead95519e944ea05f1ad56f2' (2023-04-10)
  → 'github:lnl7/nix-darwin/7c16d31383a90e0e72ace0c35d2d66a18f90fb4f' (2023-06-09)
• Updated input 'fenix':
    'github:nix-community/fenix/94e14fb51056a020a7d8cf44518cca09ba270363' (2023-04-15)
  → 'github:nix-community/fenix/6fbeedcd2fc1fba77152e13fd7492824d77a4060' (2023-06-13)
• Updated input 'fenix/rust-analyzer-src':
    'github:rust-lang/rust-analyzer/b218009f46dd012abcd2d9c2656c3dc498075368' (2023-04-14)
  → 'github:rust-lang/rust-analyzer/1f1fe81f0db301124b3026bd2940294526cdd852' (2023-06-12)
• Updated input 'home-manager':
    'github:nix-community/home-manager/40ebb62101c83de81e5fd7c3cfe5cea2ed21b1ad' (2023-04-15)
  → 'github:nix-community/home-manager/e4aa9fd83b5c2d43b3c9c9de979a8675fcb8e563' (2023-06-13)
• Updated input 'neovim-flake':
    'github:neovim/neovim/54dab9ed9e200f7c5bcac4a8f4901770fa15fa4f?dir=contrib' (2023-04-16)
  → 'github:neovim/neovim/bc67bbe4469b777a958f5ad515dec777777e9f2d?dir=contrib' (2023-06-13)
• Updated input 'neovim-flake/flake-utils':
    'github:numtide/flake-utils/5aed5285a952e0b949eb3ba02c12fa4fcfef535f' (2022-11-02)
  → 'github:numtide/flake-utils/a1720a10a6cfe8234c0e93907ffe81be440f4cef' (2023-05-31)
• Added input 'neovim-flake/flake-utils/systems':
    'github:nix-systems/default/da67096a3b9bf56a91d16901293e51ba5b49a27e' (2023-04-09)
• Updated input 'nixpkgs':
    'github:nixos/nixpkgs/abe7316dd51a313ce528972b104f4f04f56eefc4' (2023-04-14)
  → 'github:nixos/nixpkgs/75a5ebf473cd60148ba9aec0d219f72e5cf52519' (2023-06-11)
• Updated input 'nur':
    'github:nix-community/nur/acc7c1778eb3e81523da0e4ba334110809eaf0ac' (2023-04-16)
  → 'github:nix-community/nur/b6cfdb6488f02ea5bcecf4bea2cbed8f134c5481' (2023-06-13)
• Updated input 'nushell-src':
    'github:nushell/nushell/6b3236715b56450fdfdebed0927d96b72730d3d2' (2023-04-16)
  → 'github:nushell/nushell/2b181bf69c563c628d21a2957ab1b8057988dd44' (2023-06-13)

* fix(nix): add lpeg as a neovim dependency

* fix(ci): move to macos-13 image

There currently is an issue with cachix/install-nix-action see:

cachix/install-nix-action#183

This issue is not present on macos-13 moving to that iamge.

---------

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: EdenEast <[email protected]>
github-merge-queue bot pushed a commit to tweag/nickel that referenced this issue Jun 16, 2023
* Fetch the wasm-bindgen-cli version from Cargo.lock instead of Cargo.toml

* Move the Nickel CLI to a separate crate

* Fix snapshot tests

* Rename the nickel flake output to nickel-lang-cli for consistency

* Move the nickel-lang crate into a subdirectory

* Update documentation for the new crate split

* Tweak snapshot test instructions

* Use project_root instead of ad-hoc environment variables

* Remove the library from nickel-lang-cli for now

* Rename nickel-lang to nickel-lang-lib and nickel-lang-cli to nickel-lang

* Apply suggestions from code review

Co-authored-by: Yann Hamdaoui <[email protected]>

* Tweak documentation for nickel_lang_utilities::project_root

* Use MacOS 13 github runner because of cachix/install-nix-action#183

---------

Co-authored-by: Yann Hamdaoui <[email protected]>
@abathur
Copy link

abathur commented Jun 16, 2023

I haven't seen this myself yet, but going by canonical/multipass#2417 I imagine this line triggers it:

sudo launchctl setenv NIX_SSL_CERT_FILE "$cert_file"

Edit: it looks like a config for this was recently added to Nix (releases 2.15+); maybe that can be a path forward:

@domenkozar
Copy link
Member

Looking into it.

@domenkozar
Copy link
Member

Released https://github.com/cachix/install-nix-action/releases/tag/v22

@domenkozar domenkozar pinned this issue Jun 16, 2023
Anton-4 added a commit to roc-lang/roc that referenced this issue Jun 17, 2023
fixes: Could not set environment: 150: Operation not permitted while System Integrity Protection is engaged
see also: cachix/install-nix-action#183

Signed-off-by: Anton-4 <[email protected]>
@hraban
Copy link

hraban commented Jun 19, 2023

Released https://github.com/cachix/install-nix-action/releases/tag/v22

Fixed it for me 👍 thanks

@yihuang
Copy link
Author

yihuang commented Jun 19, 2023

me too, guess we can close this one now.

@peterbecich
Copy link

I agree install-nix-action@v22 solved this for me, thanks: haskell/hackage-server@8a61547

vkleen added a commit to tweag/nickel that referenced this issue Jun 19, 2023
According to cachix/install-nix-action#183 the
MacOS problem should be resolved by #1376
vkleen added a commit to tweag/nickel that referenced this issue Jun 19, 2023
According to cachix/install-nix-action#183 the
MacOS problem should be resolved by #1376
github-merge-queue bot pushed a commit to tweag/nickel that referenced this issue Jun 19, 2023
yqrashawn added a commit to yqrashawn/yqdotfiles that referenced this issue Jun 26, 2023
yqrashawn added a commit to yqrashawn/yqdotfiles that referenced this issue Jun 26, 2023
ribose-jeffreylau added a commit to ribose-jeffreylau/rnp that referenced this issue Jun 26, 2023
ribose-jeffreylau added a commit to rnpgp/rnp that referenced this issue Jun 26, 2023
mjhoy added a commit to mjhoy/dotfiles that referenced this issue Jun 26, 2023
bors bot pushed a commit to openebs/mayastor-extensions that referenced this issue Jun 27, 2023
264: fix(ci): update cachix/install-nix-action to fix mac builds r=niladrih a=niladrih

Ref: cachix/install-nix-action#183 (comment)

Co-authored-by: Niladri Halder <[email protected]>
ni4 pushed a commit to rnpgp/rnp that referenced this issue Jun 28, 2023
tjdevries pushed a commit to sourcegraph/sg.nvim that referenced this issue Jun 28, 2023
…artifacts discovery (#28)

* docs(nix): more usage info

* feat(nix): build Rust workspace with crane

* fix: even more relaxed sg-cody and libsg_nvim discovery

* feat(nix): .envrc for nix-direnv ergonomics

* fix(nix): plugin derivation should not trigger `make`

* ref+bump: cleaner syntax from flakes-part and bumpb nixpkgs

* fix: add PATH onto sg-cody vim.loop.spawn, solves the case cmd is 'sg-cody'

* fix(ci): update cachix/install-nix-action
- ref: cachix/install-nix-action#183

* ref: move .nix artifacts to contrib/

* bump deps
ahirner added a commit to ahirner/nix-trickle that referenced this issue Jul 2, 2023
ahirner added a commit to ahirner/nix-trickle that referenced this issue Jul 2, 2023
endorama added a commit to endorama/devid that referenced this issue Jul 5, 2023
@domenkozar domenkozar added the bug Something isn't working label Jul 10, 2023
momeemt added a commit to sohosai/labels that referenced this issue Jul 14, 2023
mkenigs added a commit to flox/install-flox-action that referenced this issue Aug 29, 2023
tomberek pushed a commit to flox/install-flox-action that referenced this issue Aug 29, 2023
ni4 pushed a commit to rnpgp/rnp that referenced this issue Feb 26, 2024
ni4 pushed a commit to rnpgp/rnp that referenced this issue Feb 27, 2024
ni4 pushed a commit to rnpgp/rnp that referenced this issue May 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

8 participants