Skip to content

nixosTests.gocryptfs: fix test - #527254

Merged
prusnak merged 2 commits into
NixOS:masterfrom
flokli:gocryptfs-fix-test
Jun 3, 2026
Merged

prusnak merged 2 commits into
NixOS:masterfrom
flokli:gocryptfs-fix-test

Conversation

@flokli

@flokli flokli commented Jun 2, 2026

Copy link
Copy Markdown
Member

This actually didn't work due to multiple issues:

  • Some statements used machine.execute, swallowing nonzero exit codes. In this particular case, it caused the mountpoint to stick around.
  • using fileSytems."/plain" has no effect in VM tests, virtualisation.fileSystems."/plain" needs to be used instead
  • switch-to-configuration test was invoked, so not actually switching at all.
  • Checking for data.txt to be present is a bit brittle. /tmp can be cleaned up. We can just add a known text and grep for that.

Things done

flokli added 2 commits June 2, 2026 20:57
This actually didn't work due to multiple issues:

 - Some statements used machine.execute, swallowing nonzero exit codes.
   In this particular case, it caused the mountpoint to stick around.
 - using `fileSytems."/plain"` has no effect in VM tests,
   virtualisation.fileSystems."/plain" needs to be used instead
 - `switch-to-configuration test` was invoked, so not actually switching
   at all.
 - Checking for `data.txt` to be present is a bit brittle. /tmp can be
   cleaned up. We can just add a known text and grep for that.
@flokli
flokli requested a review from aktaboot June 2, 2026 19:01
@flokli flokli mentioned this pull request Jun 2, 2026
3 of 14 tasks
@nixpkgs-ci
nixpkgs-ci Bot requested a review from prusnak June 2, 2026 19:09
@nixpkgs-ci nixpkgs-ci Bot added 10.rebuild-darwin: 0 This PR does not cause any packages to rebuild on Darwin. 10.rebuild-linux: 0 This PR does not cause any packages to rebuild on Linux. 11.by: package-maintainer This PR was created by a maintainer of all the package it changes. 6.topic: nixos Issues or PRs affecting NixOS modules, or package usability issues specific to NixOS labels Jun 2, 2026
@a-kenji

a-kenji commented Jun 3, 2026 •

Copy link
Copy Markdown
Member

nixpkgs-review result

Generated using nixpkgs-review.

Command: nixpkgs-review pr 527254 --package nixosTests.gocryptfs
Commit: d31f1369fb6e76feac0b96bdd6ff563010927b69


x86_64-linux

✅ 1 test built:
  • nixosTests.gocryptfs

Ran the test, looked at the code. Seems good.

@nixpkgs-ci nixpkgs-ci Bot added the 12.approvals: 1 This PR was reviewed and approved by one person. label Jun 3, 2026
@prusnak
prusnak added this pull request to the merge queue Jun 3, 2026
Merged via the queue into NixOS:master with commit b5280b9 Jun 3, 2026
30 checks passed
@flokli
flokli deleted the gocryptfs-fix-test branch June 3, 2026 12:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

6.topic: nixos Issues or PRs affecting NixOS modules, or package usability issues specific to NixOS 10.rebuild-darwin: 0 This PR does not cause any packages to rebuild on Darwin. 10.rebuild-linux: 0 This PR does not cause any packages to rebuild on Linux. 11.by: package-maintainer This PR was created by a maintainer of all the package it changes. 12.approvals: 1 This PR was reviewed and approved by one person.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants