Deployment and lifecycle management for Nix
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

e2e: fix systemd user tests

+10 -12
+4
AGENTS.md
··· 11 11 - Do not create worktrees unless explicitly asked. When asked, use: `git worktree add .worktrees/<name> -b <name>` 12 12 - elixir dependencies are available in `deps`. Read code from there instead of using accessing the web or prompting the user. 13 13 14 + ## testing 15 + 16 + - test nix end to end with `just check-e2e` 17 + 14 18 15 19 ## Worktree setup 16 20
+3 -3
justfile
··· 3 3 4 4 check: check-elixir check-go 5 5 6 + check-e2e: 7 + nix build .#checks.x86_64-linux.default --print-build-logs 8 + 6 9 check-elixir: check-elixir-format check-elixir-test 7 10 8 11 check-elixir-format: ··· 19 22 20 23 check-go-test: 21 24 go test ./... 22 - 23 - check-nix: 24 - nix build .#checks.x86_64-linux.default --print-build-logs 25 25 26 26 clean: 27 27 mix ecto.drop
+3 -9
nix/tests/e2e.nix
··· 223 223 server.wait_for_unit("home-manager-testuser.service") 224 224 server.succeed("loginctl enable-linger testuser") 225 225 # HM activation ran before user manager was up, so reload and start manually 226 - server.wait_until_succeeds( 227 - "systemctl --user -M testuser@ daemon-reload", 228 - timeout=15, 229 - ) 230 - server.succeed("systemctl --user -M testuser@ start sower-agent.service") 231 - server.wait_until_succeeds( 232 - "systemctl --user -M testuser@ is-active sower-agent.service", 233 - timeout=15, 234 - ) 226 + server.systemctl("daemon-reload", "testuser") 227 + server.systemctl("start sower-agent.service", "testuser") 228 + server.wait_for_unit("sower-agent.service", "testuser") 235 229 236 230 with subtest("home-manager agent registration"): 237 231 server.wait_until_succeeds(