Build fails in single-user mode because install tests fail #365

Closed
opened 2024-05-31 17:36:13 +00:00 by alois31 · 4 comments
Member

Describe the bug

When trying to build recent versions of Lix using the Nix packaging in single-user mode, there are a lot of test failures in the installCheckPhase.

Steps To Reproduce

  1. Check out commit ff08d95420 (latest as of time of writing).
  2. Run nix-build -A packages.x86_64-linux.nix --store [some directory].
  3. Observe that during the installCheckPhase, most tests fail with error: home directory '/homeless-shelter' exists; please remove it to assure purity of builds without sandboxing.

Expected behavior

The build succeeds.

nix --version output

nix (Lix, like Nix) 2.90.0-pre0381aacff0be

Additional context

On b6799ab037 (2.90-beta.1), the build succeeds. I'm currently running another bisect because the first result was garbage.

## Describe the bug When trying to build recent versions of Lix using the Nix packaging in single-user mode, there are a lot of test failures in the installCheckPhase. ## Steps To Reproduce 1. Check out commit ff08d954206a557ec7afe7301cdb4bb72114875f (latest as of time of writing). 2. Run `nix-build -A packages.x86_64-linux.nix --store [some directory]`. 3. Observe that during the installCheckPhase, most tests fail with `error: home directory '/homeless-shelter' exists; please remove it to assure purity of builds without sandboxing`. ## Expected behavior The build succeeds. ## `nix --version` output nix (Lix, like Nix) 2.90.0-pre0381aacff0be ## Additional context On b6799ab0374a8e1907a48915d3187e07da41d88c (2.90-beta.1), the build succeeds. I'm currently running another bisect because the first result was garbage.
alois31 added the
bug
label 2024-05-31 17:36:13 +00:00
Owner

Thanks for debugging this! Single user mode on Linux is a kind of bad configuration that I regret that we support but we definitely shouldn't regress it accidentally; honestly it ought to be made to perform identically to multi user because that should be possible. Interested to find the results of your debugging.

Thanks for debugging this! Single user mode on Linux is a kind of bad configuration that I regret that we support but we definitely shouldn't regress it accidentally; honestly it *ought* to be made to perform identically to multi user because that *should* be possible. Interested to find the results of your debugging.
Author
Member

According to the bisect, 0565f97e78 is the first bad commit (which still seems a bit weird). FWIW, the first result gave 677cf75473, which is the commit right before that, so there may be some nondeterminism involved.

According to the bisect, 0565f97e78f9ebd97849f79a3327f51e2157fc53 is the first bad commit (which still seems a bit weird). FWIW, the first result gave 677cf75473d0dd86119c4535d8733a6a0b1100c0, which is the commit right before that, so there may be some nondeterminism involved.
Author
Member

Reverting 0565f97e78 does in fact "fix" the build.

Reverting 0565f97e78f9ebd97849f79a3327f51e2157fc53 does in fact "fix" the build.
Member

This issue was mentioned on Gerrit on the following CLs:

  • commit message in cl/1368 ("tests/libcmd: set HOME to a temporary directory")
<!-- GERRIT_LINKBOT: {"cls": [{"backlink": "https://gerrit.lix.systems/c/lix/+/1368", "number": 1368, "kind": "commit message"}], "cl_meta": {"1368": {"change_title": "tests/libcmd: set HOME to a temporary directory"}}} --> This issue was mentioned on Gerrit on the following CLs: * commit message in [cl/1368](https://gerrit.lix.systems/c/lix/+/1368) ("tests/libcmd: set HOME to a temporary directory")
alois31 reopened this issue 2024-06-04 06:27:31 +00:00
Sign in to join this conversation.
No milestone
No project
No assignees
3 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#365
No description provided.