-
-
Notifications
You must be signed in to change notification settings - Fork 14.5k
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
Build failure: borgbackup-1.2.6 on x86_64-darwin #267536
Comments
Is this on aarch64-darwin as the title says or x86_64-darwin as nix-info says? |
Sorry for the error. It's x86_64-darwin. I have fixed the title. |
I updated to 23.11 recently, and this issue is still affecting me. It seems that the build has been broken for x86_64-darwin since 2023-07: https://hydra.nixos.org/build/227859438 |
@dotlambda @globin How do you feel about disabling the offending tests? I have personally installed a version of borg by just disabling tests and it seems to work fine.
|
hi, I just ran into this issue on 24.05 on x86_64-darwin. trying to compile borgmatic (which has borgbackup as dependency) results in these tests failing:
Another puzzling thing is that sometimes, The errors seem to be from some file operation which does not end up as expected. I am not familiar with the borg codebase so I don't know what this is or why it happens. Here's the part of the logs that includes the failures:
|
trying to compile the package a few more times shows that this test case also fails, randomly (sometimes it does, sometimes it doesn't), with no changes to nix code. |
an overlay disabling those tests does the trick: # ../packages/overlays/borgbackup.nix
final: prev: {
borgbackup = prev.borgbackup.overrideAttrs (oldAttrs: rec {
disabledTests =
oldAttrs.disabledTests
++ prev.lib.optionals prev.stdenv.isDarwin [
"test_overwrite"
"test_can_read_repo_even_if_nonce_is_deleted"
"test_sparse_file"
];
});
} # darwin.nix
nixpkgs.overlays = [ (import ../packages/overlays/borgbackup.nix) ]; |
The build succeeded in current master https://hydra.nixos.org/job/nixpkgs/trunk/borgbackup.x86_64-darwin/all, maybe fixed by #346043. |
i tried to build it again with the current master but it is still failing. I actually had to disable an additional test this time, not sure if it's an issue with my machine? no clue how to debug that honestly |
Steps To Reproduce
Steps to reproduce the behavior:
Build log
https://gist.github.com/bcc32/d32b32d2a3b93f09b51b7b2c02eef2ba
I wasn't able to figure out how to prevent
nix log
from outputting escape sequences (even when redirecting to a file), but if there's a good way I'm happy to run it again and provide the output.Additional context
This package builds fine on an x86_64-linux box I have.
Notify maintainers
@dotlambda @globin
Metadata
Please run
nix-shell -p nix-info --run "nix-info -m"
and paste the result.The text was updated successfully, but these errors were encountered: