Remote builds are not stopped on C-c #540
Labels
No labels
Area/build-packaging
Area/cli
Area/evaluator
Area/fetching
Area/flakes
Area/language
Area/profiles
Area/protocol
Area/releng
Area/remote-builds
Area/repl
Area/store
bug
crash 💥
Cross Compilation
devx
docs
Downstream Dependents
E/easy
E/hard
E/help wanted
E/reproducible
E/requires rearchitecture
imported
Needs Langver
OS/Linux
OS/macOS
performance
regression
release-blocker
RFD
stability
Status
blocked
Status
invalid
Status
postponed
Status
wontfix
testing
testing/flakey
ux
No milestone
No project
No assignees
4 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: lix-project/lix#540
Loading…
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
When stopping a remote-build, the SSH process etc. is not removed. As a result, there's a
waiting on lock
message when restarting the build.Steps To Reproduce
pkgs.hello
innixpkgs
slightly (e.g. by adding a custompostPath
attribute)ssh-ng
configurednix-build -A hello -j0
in your nixpkgs checkoutC-c
.nix-build -A hello -j0
. Now you should get a message like this:systemctl status nix-daemon
shows me that there are indeed leftover processes:Expected behavior
I would expect all processes related to this build to be killed and to not wait on a stale lock when running
nix-build -A hello -j0
again.nix --version
outputnix (Lix, like Nix) 2.92.0-devpre20241005_ed9b7f4
(both locally and on the remote builder)Additional context
I've seen this a few years ago in CppNix, but I could've sworn it got fixed eventually. I may be wrong about this, though.
in our experience remote builds usually end by crashing the remote daemon when ssh exits due to tcp timeouts. :/ we want to fix this properly with the new protocols, but that may take a bit yet
i suspect this is possibly a regression against 2.91 or 2.90 but we should verify that.
Yep, cannot reproduce with 2.91.
Guess I'll do a bisect then.
bf32085d63
is the first commit I can reproduce the behavior with, the previous one is fine.Didn't dig deep enough into the changes in libstore so far, so I can't really say much about the why I'm afraid.
(sob quietly)
This issue was mentioned on Gerrit on the following CLs:
sudo nix-build
")sudo nix-build
")