Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

tstest/integration/vms: unbreak nixos builds #2372

Merged
merged 1 commit into from
Jul 9, 2021
Merged

Conversation

Xe
Copy link
Contributor

@Xe Xe commented Jul 9, 2021

To avoid the generated nixos disk images from becoming immune from the
GC, I delete the symlink to the nix store at the end of tests.
t.Cleanup runs at the end of a test. I changed this part of the code
to have a separate timer for how long it takes to run NixOS builds, but
I did that by using a subtest. This means that it was creating the NixOS
image, deleting its symlink and then trying to use that symlink to find
the resulting disk image, making the whole thing ineffectual.

This was a mistake. I am reverting this change made in
#2360 to remove this layer of
subtesting.

Signed-off-by: Christine Dodrill xe@tailscale.com

@Xe Xe self-assigned this Jul 9, 2021
@Xe Xe force-pushed the Xe/fix-nixos-builds branch 2 times, most recently from 271cd54 to 2c2e52b Compare July 9, 2021 14:39
Xe pushed a commit that referenced this pull request Jul 9, 2021
Hopefully this will catch situations like
#2372

Signed-off-by: Christine Dodrill <xe@tailscale.com>
@Xe Xe requested a review from crawshaw July 9, 2021 14:45
Xe pushed a commit that referenced this pull request Jul 9, 2021
Hopefully this will catch situations like
#2372

Signed-off-by: Christine Dodrill <xe@tailscale.com>
To avoid the generated nixos disk images from becoming immune from the
GC, I delete the symlink to the nix store at the end of tests.
`t.Cleanup` runs at the end of a test. I changed this part of the code
to have a separate timer for how long it takes to run NixOS builds, but
I did that by using a subtest. This means that it was creating the NixOS
image, deleting its symlink and then trying to use that symlink to find
the resulting disk image, making the whole thing ineffectual.

This was a mistake. I am reverting this change made in
#2360 to remove this layer of
subtesting.

Signed-off-by: Christine Dodrill <xe@tailscale.com>
@Xe Xe merged commit 33cacb5 into main Jul 9, 2021
@Xe Xe deleted the Xe/fix-nixos-builds branch July 9, 2021 15:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants