Use nix daemon in the test suite#9632
Conversation
As part of the CLI stabilization effort, the last remaining checkbox (at the moment) for `nix daemon` is that it "needs testing". This implements the proposal of using `nix daemon` in place of `nix-daemon` in the test suite.
b471a69 to
1f7b62f
Compare
|
Thanks! I don't think we can just replace @edolstra, is there a reason why these are separate, or can we have |
|
I think they're separate because originally we didn't have a single binary, so |
Yay! How do we do that? (technically I mean) |
|
I don't get what is so surprising? I don't think we've ever tried to make a legacy command new-style before. Maybe it's fine in this case, but it does mean we have to be careful about modifying |
|
@Ericson2314 : Nothing surprising, just a potential for simplification |
|
@cole-h Maybe we can arbitrarily keep some of the calls to |
This means that both `nix daemon` and `nix-daemon` will be (somewhat) tested.
|
I opted to keep I wonder if it would be better to have another set of |
As you hinted, this strategy is quite expensive. The right solution is to write a proper tests for the daemon command(s). If we don't merge their implementations, we can have two tiny tests that |
|
This pull request has been mentioned on NixOS Discourse. There might be relevant details there: |
Use `nix daemon` in the test suite (cherry picked from commit e6e160a) Change-Id: I537a25d3d48f609cd77b2c3a8ad68e87aebabfe8
Motivation
As part of the CLI stabilization effort (#7701), the last remaining checkbox (at the moment) for
nix daemonis that it "needs testing". This implements the proposal of usingnix daemonin place ofnix-daemonin the test suite.Context
The box for
nix daemonis unchecked, and this is supposedly the only thing blocking it, so I figured I'd propose the most minimal diff to address it.I grepped for
nix-daemonin thetests/subdirectory -- hopefully I didn't miss anything.Priorities and Process
Add 👍 to pull requests you find important.
The Nix maintainer team uses a GitHub project board to schedule and track reviews.