You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
tailscale/.github/workflows
Christine Dodrill b131a74f99
tstest/integration/vms: build and run NixOS (#2190)
Okay, so, at a high level testing NixOS is a lot different than
other distros due to NixOS' determinism. Normally NixOS wants packages to
be defined in either an overlay, a custom packageOverrides or even
yolo-inline as a part of the system configuration. This is going to have
us take a different approach compared to other distributions. The overall
plan here is as following:

1. make the binaries as normal
2. template in their paths as raw strings to the nixos system module
3. run `nixos-generators -f qcow -o $CACHE_DIR/tailscale/nixos/version -c generated-config.nix`
4. pass that to the steps that make the virtual machine

It doesn't really make sense for us to use a premade virtual machine image
for this as that will make it harder to deterministically create the image.

Nix commands generate a lot of output, so their output is hidden behind the
`-verbose-nix-output` flag.

This unfortunately makes this test suite have a hard dependency on
Nix/NixOS, however the test suite has only ever been run on NixOS (and I
am not sure if it runs on other distros at all), so this probably isn't too
big of an issue.

Signed-off-by: Christine Dodrill <xe@tailscale.com>
3 years ago
..
cross-darwin.yml Switch to Go 1.16. 4 years ago
cross-freebsd.yml Switch to Go 1.16. 4 years ago
cross-openbsd.yml Switch to Go 1.16. 4 years ago
cross-windows.yml Switch to Go 1.16. 4 years ago
depaware.yml Switch to Go 1.16. 4 years ago
license.yml Switch to Go 1.16. 4 years ago
linux-race.yml workflows: execute benchmarks 4 years ago
linux.yml workflows: execute benchmarks 4 years ago
linux32.yml workflows: execute benchmarks 4 years ago
staticcheck.yml workflows: run staticcheck on more platforms 4 years ago
windows-race.yml workflows: execute benchmarks 4 years ago
windows.yml workflows: execute benchmarks 4 years ago
xe-experimental-vm-test.yml tstest/integration/vms: build and run NixOS (#2190) 3 years ago