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
python3Packages.git-annex-adapter: fix build #45061
Conversation
patches = [ | ||
./not-a-git-repo-testcase.patch | ||
(fetchpatch { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please add a comment explaining the reason for the patch and a link to upstream. Would also be nice for the other patches.
This isn't python3 only right? If that is the case, the commit message should have the @GrahamcOfBorg build python2Packages.git-annex-adapter python3Packages.git-annex-adapter |
Success on x86_64-linux (full log) Attempted: python3Packages.git-annex-adapter The following builds were skipped because they don't evaluate on x86_64-linux: python2Packages.git-annex-adapter Partial log (click to expand)
|
No attempt on aarch64-linux (full log) The following builds were skipped because they don't evaluate on aarch64-linux: python2Packages.git-annex-adapter, python3Packages.git-annex-adapter Partial log (click to expand)
|
Failure on x86_64-darwin (full log) Attempted: python3Packages.git-annex-adapter The following builds were skipped because they don't evaluate on x86_64-darwin: python2Packages.git-annex-adapter Partial log (click to expand)
|
923d6fb
to
f842715
Compare
@timokau I documented each of the patches now. Python2 isn't supported by the expression ATM. |
Okay. what about the darwin failure? |
I'll look into it. But please keep in mind that I don't have a machine to actually test/debug the error. We may want to disable the darwin build temporarily as this patch fixes the Linux build at least. But let's see when I know more:) |
Yes, I understand. Since its not a regression (quite the opposite), I wouldn't mind if you disable the darwin build for now. |
Hi, upstream author here. I merged the relevant patch ( The darwin build fails probably because I (wrongly) assumed everything would have Edit: I've committed |
thanks! I'll apply the patch for the darwin build:) |
f842715
to
af23709
Compare
@timokau I applied the fix for Darwin, let's see if that helps |
No attempt on aarch64-linux (full log) The following builds were skipped because they don't evaluate on aarch64-linux: python3Packages.git-annex-adapter Partial log (click to expand)
|
Success on x86_64-linux (full log) Attempted: python3Packages.git-annex-adapter Partial log (click to expand)
|
Thank you @alpernebbi for the fix and @Ma27 for indulging all my requests :) LGTM now. It looks like you may not have ofBorg permission for darwin (see trusted vs known users in the ofBorg repo). |
Success on x86_64-linux (full log) Attempted: python3Packages.git-annex-adapter Partial log (click to expand)
|
No attempt on aarch64-linux (full log) The following builds were skipped because they don't evaluate on aarch64-linux: python3Packages.git-annex-adapter Partial log (click to expand)
|
Unexpected error: command failed with exit code 1 on x86_64-darwin (full log) Attempted: python3Packages.git-annex-adapter Partial log (click to expand)
|
# https://logs.nix.ci/?key=nixos/nixpkgs.45061&attempt_id=271763ba-2ae7-4098-b469-b82b1d8edb9b | ||
(fetchpatch { | ||
url = "https://github.com/alpernebbi/git-annex-adapter/commit/0b60b4577528b309f6ac9d47b55a00dbda9850ea.patch"; | ||
sha256 = "0yh66gial6bx7kbl7s7lkzljnkpgvgr8yahqqcq9z76d0w752did"; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks like this hash is wrong.
`git-annex` version 6.20180719 enhances the output of `git-annex info` with a description and UUID of the repository which broke the testcase `test_process_annex_info_batch` which parses the output of the info command. The testcase has been fixed accordingly and the patch was filed upstream here: alpernebbi/git-annex-adapter#6 I rechecked the functionality in a simple python environment with the following expression: ``` with import ./. {}; python3.withPackages (ps: with ps; [ git-annex-adapter ]) ``` Furthermore I tested the main functionality in a Python REPL within the environment. The Darwin patch fixes tests that rely on `rev`, a binary which is distributed in the `utillinux` package and not available on Nix with Darwin. To make the purpose of the patches for future contributors clear I documented the purpose for each patch.
af23709
to
1022c3c
Compare
@timokau, can this be merged, please? :) |
Thanks for the notification, for some reason github doesn't send emails on force-pushes :/ @GrahamcOfBorg build python3Packages.git-annex-adapter |
No attempt on aarch64-linux (full log) The following builds were skipped because they don't evaluate on aarch64-linux: python3Packages.git-annex-adapter Partial log (click to expand)
|
Success on x86_64-darwin (full log) Attempted: python3Packages.git-annex-adapter Partial log (click to expand)
|
Success on x86_64-linux (full log) Attempted: python3Packages.git-annex-adapter Partial log (click to expand)
|
Thank you! |
Motivation for this change
git-annex
version 6.20180719 enhances the output ofgit-annex info
with a description and UUID of the repository which broke the testcase
test_process_annex_info_batch
which parses the output of the infocommand.
The testcase has been fixed accordingly and the patch was filed upstream
here: alpernebbi/git-annex-adapter#6
I rechecked the functionality in a simple python environment with the
following expression:
And tested the main in a Python REPL within the environment.
Things done
sandbox
innix.conf
on non-NixOS)nix-shell -p nox --run "nox-review wip"
./result/bin/
)nix path-info -S
before and after)