threads / patch / 64560

patcht/t1517: indicate that `gui--askyesno` fails with GIT_TEST_INSTALLED

Subject: [PATCH] t/t1517: indicate that `gui--askyesno` fails with GIT_TEST_INSTALLED

## tl;dr

2 messages between Dec 1, 2025 and Dec 31, 2025. Diffs are folded; open one to read it.

replies: 1people: 2as markdown or json

Brian Lyles· Dec 1, 2025, 03:10 UTC · lore

Commit e749c87e75 (git-gui: provide question helper for retry fallback on Windows, 2025-08-28) causes `git-gui--askyesno` to be installed when running `make install`. This triggers a new occurrence of the issue noted in commit c4cf8caadd (t/t1517: mark tests that fail with GIT_TEST_INSTALLED, 2025-08-19), which prevents Git v2.52.0 from building in nixpkgs [1]. Indicate that this is an expected failure.

[1]: https://github.com/NixOS/nixpkgs/issues/465178#issuecomment-3580790826
Signed-off-by: Brian Lyles <brianmlyles@gmail.com>
---

Note that while this does allow nixpkgs to build v2.52.0, I suspect that this sort of issue is likely to crop up again in the future. I wonder if it may be beneficial to make some more fundamental change to this test to avoid future occurrences. If that is preferred (and something that someone has time to tackle in the near future), I am happy to allow this patch to be obviated by such a change.

 t/t1517-outside-repo.sh | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
Show changes to t/t1517-outside-repo.sh +1 −2
diff --git a/t/t1517-outside-repo.sh b/t/t1517-outside-repo.sh
index c824c1a25c..13540388f9 100755
--- a/t/t1517-outside-repo.sh
+++ b/t/t1517-outside-repo.sh
@@ -115,7 +115,7 @@ do
 	credential-osxkeychain | cvsexportcommit | cvsimport | cvsserver | \
 	daemon | \
 	difftool--helper | filter-branch | fsck-objects | get-tar-commit-id | \
-	gui | gui--askpass | \
+	gui | gui--askpass | gui--askyesno | \
 	http-backend | http-fetch | http-push | init-db | \
 	merge-octopus | merge-one-file | merge-resolve | mergetool | \
 	mktag | p4 | p4.py | pickaxe | remote-ftp | remote-ftps | \
--
2.51.2
Adam Dinwoodie· Dec 31, 2025, 19:09 UTC · re: Brian Lyles · lore

Re: [PATCH] t/t1517: indicate that `gui--askyesno` fails with GIT_TEST_INSTALLED

On Mon, 1 Dec 2025 at 03:10, Brian Lyles <brianmlyles@gmail.com> wrote:
Show 22 quoted lines
>
> Commit e749c87e75 (git-gui: provide question helper for retry fallback
> on Windows, 2025-08-28) causes `git-gui--askyesno` to be installed when
> running `make install`. This triggers a new occurrence of the issue
> noted in commit c4cf8caadd (t/t1517: mark tests that fail with
> GIT_TEST_INSTALLED, 2025-08-19), which prevents Git v2.52.0 from
> building in nixpkgs [1]. Indicate that this is an expected failure.
>
> [1]: https://github.com/NixOS/nixpkgs/issues/465178#issuecomment-3580790826
>
> Signed-off-by: Brian Lyles <brianmlyles@gmail.com>
> ---
>
> Note that while this does allow nixpkgs to build v2.52.0, I suspect that
> this sort of issue is likely to crop up again in the future. I wonder if
> it may be beneficial to make some more fundamental change to this test
> to avoid future occurrences. If that is preferred (and something that
> someone has time to tackle in the near future), I am happy to allow this
> patch to be obviated by such a change.
>
>  t/t1517-outside-repo.sh | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)

Notwithstanding the discussion at https://lore.kernel.org/git/xmqqect7fhnp.fsf@gitster.g/ et seq, it'd be good to get this fix in a release. Ideally we'd have a better long-term fix, but I don't think that should prevent fixing the problems we have right now.

Signed-off-by: Adam Dinwoodie <adam@dinwoodie.org>

← back to recent threads