Feature Request: redeploying to interactive nixos tests #281332
Labels
0.kind: enhancement
Add something new
6.topic: nixos
Issues or PRs affecting NixOS modules, or package usability issues specific to NixOS
6.topic: testing
Tooling for automated testing of packages and modules
Issue description
When developing NixOS tests, it is usually slow and tedious to re-run the test every time one makes a change. For this reason, I usually use
driverInteractive
, which allows me to muck around on the machines and see what happens in real time, re-run parts of tests that have failed, etc.However, it often happens that I want to modify the NixOS configuration for one or more machines and redeploy. In this case I am back to re-running the driver every time I make a change.
I would like a way to modify the configuration and re-deploy, as I would with
nixos-rebuild switch
normally.proposed solution
I developed a solution that I've been using privately #281331. It adds a command to the output of
driverInteractive
that can be used to push that configuration to the actively running test.alternate solutions
we can just continue re-running the driver and restarting the machines every time we make a change to the configuration.
getting the configuration somehow into
/etc/nixos/configuration.nix
. This way people could modify the configuration on the machine and runnixos-rebuild switch
.configuration.nix
, and it's not clear which options to include and which not. It will end up in a different form than people are editing it in their test.iterating on your tests in a separate environment (e.g.
nixos-shell
)The text was updated successfully, but these errors were encountered: