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

nixos/borgbackup: add test #33315

Merged
merged 1 commit into from Jan 29, 2018
Merged

nixos/borgbackup: add test #33315

merged 1 commit into from Jan 29, 2018

Conversation

Mic92
Copy link
Member

@Mic92 Mic92 commented Jan 2, 2018

We had problems to get borg's own test suite running.
This test is intended to perform a quick smoke test to see whether we
have missed not any important dependency necessary to create backups
with borg.

Motivation for this change
Things done
  • Tested using sandboxing (nix.useSandbox on NixOS, or option build-use-sandbox in nix.conf on non-NixOS)
  • Built on platform(s)
    • NixOS
    • macOS
    • other Linux distributions
  • Tested via one or more NixOS test(s) if existing and applicable for the change (look inside nixos/tests)
  • Tested compilation of all pkgs that depend on this change using nix-shell -p nox --run "nox-review wip"
  • Tested execution of all binary files (usually in ./result/bin/)
  • Fits CONTRIBUTING.md.

@Mic92
Copy link
Member Author

Mic92 commented Jan 2, 2018

@GrahamcOfBorg test borgbackup

Copy link

@GrahamcOfBorg GrahamcOfBorg left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Failure for system: x86_64-linux

building path(s) ‘/nix/store/rf0mrp2hrp2pzikqhzdqxpq483d9qpkw-append-initrd-secrets’
fetching path ‘/nix/store/b0gdv17dgjz20dnk6sxvxj8jai63zv7a-btrfs-progs-4.14’...

*** Downloading ‘https://nix-cache.s3.amazonaws.com/nar/0pna9z9zg8qjdrxpvi6d6vwzy4ibl6l5d6i21izsns9aqa36l5ky.nar.xz’ (signed by ‘cache.nixos.org-1’) to ‘/nix/store/b0gdv17dgjz20dnk6sxvxj8jai63zv7a-btrfs-progs-4.14’...
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed

  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
100  725k  100  725k    0     0   725k      0  0:00:01 --:--:--  0:00:01 4096k

building path(s) ‘/nix/store/ak91ifdh7dj5l1414icds7a6y11qbjlb-append-initrd-secrets’
error: a ‘aarch64-linux’ is required to build ‘/nix/store/rbg3lfysljzj8nmaszm56dg03lv6lxg7-append-initrd-secrets.drv’, but I am a ‘x86_64-linux’

@Mic92
Copy link
Member Author

Mic92 commented Jan 2, 2018

@grahamc do you have insights on this error? I assume it tried to run aarch64 nixos tests on a x86_64 machine?

We had problems to get borg's own test suite running.
This test is intended to perform a quick smoke test to see whether we
have missed not any important dependency necessary to create backups
with borg.

tested with:

$ nix-build nixos/release.nix -A tests.borgbackup.x86_64-linux
@Mic92
Copy link
Member Author

Mic92 commented Jan 29, 2018

@GrahamcOfBorg test borgbackup.x86_64-linux

Copy link

@GrahamcOfBorg GrahamcOfBorg left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Failure on x86_64-linux (full log)

Partial log (click to expand)

error: attribute ‘x86_64-linux’ in selection path ‘tests.borgbackup.x86_64-linux.x86_64-linux’ not found

@Mic92
Copy link
Member Author

Mic92 commented Jan 29, 2018

@GrahamcOfBorg test borgbackup

Copy link

@GrahamcOfBorg GrahamcOfBorg left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Success on x86_64-linux (full log)

Partial log (click to expand)

machine: exit status 1
syncing
machine: running command: sync
machine: exit status 0
test script finished in 15.57s
cleaning up
killing machine (pid 593)
vde_switch: EOF on stdin, cleaning up and exiting
vde_switch: Could not remove ctl dir '/tmp/nix-build-vm-test-run-borgbackup.drv-0/vde1.ctl': Directory not empty
/nix/store/2rkqy6w47i0rrlc5r8wdn1dgi6snjipk-vm-test-run-borgbackup

@Mic92 Mic92 merged commit 4e9756d into NixOS:master Jan 29, 2018
@Mic92 Mic92 deleted the borgbackup branch January 29, 2018 14:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants