Mysterious guessOrInventPath.sockets unit test failure on macOS after libexec changes #1113
Labels
No labels
Affects/CppNix
Affects/Nightly
Affects/Only nightly
Affects/Stable
Area/build-packaging
Area/cli
Area/evaluator
Area/fetching
Area/flakes
Area/language
Area/lix ci
Area/nix-eval-jobs
Area/profiles
Area/protocol
Area/releng
Area/remote-builds
Area/repl
Area/repl/debugger
Area/store
awaiting
author
awaiting
contributors
bug
Context
contributors
Context
drive-by
Context
maintainers
Context
RFD
crash 💥
Cross Compilation
devx
docs
Downstream Dependents
E/easy
E/hard
E/help wanted
E/reproducible
E/requires rearchitecture
Feature/S3
imported
Language/Bash
Language/C++
Language/NixLang
Language/Python
Language/Rust
Needs Langver
OS/Linux
OS/macOS
performance
regression
release-blocker
stability
Status
blocked
Status
invalid
Status
postponed
Status
wontfix
testing
testing/flakey
Topic/Large Scale Installations
ux
No milestone
No project
No assignees
2 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
lix-project/lix#1113
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Describe the bug
I can't build Lix as a derivation (with or without sandboxing) due to an odd test failure that seem to only occur on my machine at the moment. The log is attached but essentially it seems to be looking into the wrong path for
unix-bind-connectwhile doing specificallyguessOrInventPath.socketsunit test.If I try to build the same revision in a development environment a seemingly related issue occurs when running the tests but in the form a timeout instead in one of the functional(2?) tests, while the unit test that was failing inside the derivation build passes fine.
The core error is
Steps To Reproduce
56988d8605or later of Lix.ProfitFailure.Expected behavior
Not this.
nix --versionoutputAdditional context
I'm going to start bisecting this more specifically to confirm which revision introduced this more specifically but probably tomorrow.
oh dear, unix sockets again 🫠 the ENOENT is likely due to the packaging not running the install phase before the check phase, so the helper isn't available yet. do you have a non-default tmpdir setting on your system? iwrc the default setting should not lead to socket paths that are long enough to require the connect helper to use
I shouldn't have a non-standard tmpdir
temp-dir =this is just based off the default install from https://lix.systems/install followed by updating the profile to the shown revisionthat is super strange then. can you add a print of the generated socket path to the guessOrInventPath sockets test in
lix/tests/unit/libutil/tests.cc? if it fails on your machine tht path must be longer than it is in ci, and figuring out where that difference comes from sounds pretty important right nowworst case we can disable that specific test on macos, or shuffle phases?