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

Build failure: git-branchless #338971

Closed
toastal opened this issue Sep 2, 2024 · 8 comments · Fixed by #339023 or #342278
Closed

Build failure: git-branchless #338971

toastal opened this issue Sep 2, 2024 · 8 comments · Fixed by #339023 or #342278
Labels
0.kind: build failure A package fails to build

Comments

@toastal
Copy link
Contributor

toastal commented Sep 2, 2024

Steps To Reproduce

Steps to reproduce the behavior:

  1. build git-branchless

Build log

https://hydra.nixos.org/search?query=git-branchless

Additional context

No longer builds with latest Nixpkgs

Notify maintainers

@arxanas

Metadata

Please run nix-shell -p nix-info --run "nix-info -m" and paste the result.

$ nix run nixpkgs#nix-info -- "-m"
 - system: `"x86_64-linux"`
 - host os: `Linux 6.10.6, NixOS, 24.11 (Vicuna), 24.11.20240828.71e91c4`
 - multi-user?: `yes`
 - sandbox: `yes`
 - version: `nix-env (Lix, like Nix) 2.92.0-dev-pre20240813-f9a3bf6
System type: x86_64-linux
Additional system types: i686-linux, x86_64-v1-linux, x86_64-v2-linux, x86_64-v3-linux
Features: gc, signed-caches
System configuration file: /etc/nix/nix.conf
User configuration files: /home/toastal/.config/nix/nix.conf:/etc/xdg/nix/nix.conf:/home/toastal/.nix-profile/etc/xdg/nix/nix.conf:/nix/profile/etc/xdg/nix/nix.conf:/home/toastal/.local/state/nix/profile/etc/xdg/nix/nix.conf:/etc/profiles/per-user/toastal/etc/xdg/nix/nix.conf:/nix/var/nix/profiles/default/etc/xdg/nix/nix.conf:/run/current-system/sw/etc/xdg/nix/nix.conf
Store directory: /nix/store
State directory: /nix/var/nix
Data directory: /nix/store/3g35mlki1l0p3xx68q6gpwpi5xavgrky-lix-2.92.0-dev-pre20240813-f9a3bf6/share`
 - nixpkgs: `/nix/store/887hpp8a2i99n9jjwcvz6qkhhhqsvzkg-source`

Add a 👍 reaction to issues you find important.

1

Footnotes

  1. Please consider giving up MS GitHub or offering a non-proprietary, non-US-corporate-controlled mirror for this free software project. I wish to delete this Microsoft account in the future, but I need more projects like this to support alternative methods to send patches & contribute.

@toastal toastal added the 0.kind: build failure A package fails to build label Sep 2, 2024
@eclairevoyant eclairevoyant reopened this Sep 9, 2024
@eclairevoyant
Copy link
Contributor

As mentioned in #339023 (comment):

Why are there tests that are not _pty or _interactive in there? These shouldn't fail.

I did run a git bisect the other day and it started failing with the update of Git in nixos-unstable to 2.46.0. Users seem to be reporting issues with Git 2.46.0 as well, so I'm not sure we should disable those tests indeed:

Those issues don't seem to have been traced back to Git 2.46.0 yet, but "updates to Git" are mentioned in arxanas/git-branchless#1321 (comment)

@niklaskorz
Copy link
Contributor

The incompatibility with Git 2.45 and 2.46 is already fixed upstream, but pending a new release. Maybe the relevant PR could be applied as a patch until the release of 0.10.0.

@eclairevoyant
Copy link
Contributor

Thanks for the link, it seems that test_amend is still failing though (see arxanas/git-branchless#1322 (comment) for context)

@niklaskorz
Copy link
Contributor

niklaskorz commented Sep 9, 2024

Thanks for the link, it seems that test_amend is still failing though (see arxanas/git-branchless#1322 (comment) for context)

You are unfortunately correct, building the latest master branch still gives these failing tests with Git 2.46:

       > failures:
       >     test_amend_merge
       >     test_amend_undo
       >     test_amend_undo_detached_head
       >     test_amend_with_children
       >     test_amend_with_working_copy

Edit: never mind, it's again the issue of darwin git using my system locale (German), which is completely oblivious to any environment variables I set :')

@eclairevoyant
Copy link
Contributor

eclairevoyant commented Sep 9, 2024

Well for me on linux in english locale, there's only one test failing, but nevertheless...


failures:
    test_amend_undo

test result: FAILED. 16 passed; 1 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.75s

@niklaskorz
Copy link
Contributor

Well for me on linux in english locale, there's only one test failing, but nevertheless...


failures:
    test_amend_undo

test result: FAILED. 16 passed; 1 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.75s

In this issue, @arxanas states a failing test_amend_undo is safe to ignore.

@bryango
Copy link
Member

bryango commented Oct 2, 2024

I am trying to revive the fix in #342278, please check out the comments there! Thanks!

@niklaskorz
Copy link
Contributor

arxanas is preparing the release of 0.10.0: arxanas/git-branchless#1418

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
0.kind: build failure A package fails to build
Projects
None yet
4 participants