Tests always run with sandbox disabled on darwin #755

Open
opened 2025-03-21 21:25:49 +00:00 by jade · 1 comment
Owner

Due to the following and pkgs.mkShell putting NIX_STORE in the environment somewhere such that it's in nix develop, as well as NIX_STORE being set in local-derivation-goal in the sandbox, the sandbox is never actually tested on Darwin!!

Busted:
https://git.lix.systems/lix-project/lix/src/fb1b21103733a2800aede0ffead2f0e91573c0c8/tests/functional/common/vars-and-functions.sh.in#L23-L25

Due to the following and `pkgs.mkShell` putting `NIX_STORE` in the environment somewhere such that it's in `nix develop`, as well as `NIX_STORE` being set in local-derivation-goal in the sandbox, the sandbox is never actually tested on Darwin!! Busted: https://git.lix.systems/lix-project/lix/src/fb1b21103733a2800aede0ffead2f0e91573c0c8/tests/functional/common/vars-and-functions.sh.in#L23-L25
Member

Note that testing the sandbox on Darwin is hard because it doesn’t nest and even unsandboxed builds use the sandboxing machinery. https://gerrit.lix.systems/c/lix/+/3500 and https://gerrit.lix.systems/c/lix/+/3521 have some discussion of this.

Note that testing the sandbox on Darwin is hard because it doesn’t nest and even unsandboxed builds use the sandboxing machinery. https://gerrit.lix.systems/c/lix/+/3500 and https://gerrit.lix.systems/c/lix/+/3521 have some discussion of this.
Sign in to join this conversation.
No milestone
No project
No assignees
2 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: lix-project/lix#755
No description provided.