public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/git-lfs] f44: fix(git-lfs): run git maintenance synchronously during %check to stop flaky t-prune.sh
@ 2026-08-16 2:49 Filipe Rosset
0 siblings, 0 replies; only message in thread
From: Filipe Rosset @ 2026-08-16 2:49 UTC (permalink / raw)
To: git-commits
A new commit has been pushed.
Repo : rpms/git-lfs
Branch : f44
Commit : 07a19b0f5e841934354eafe2282bb0c1633a244a
Author : Filipe Rosset <rosset.filipe@gmail.com>
Date : 2026-08-13T21:33:16-03:00
Stats : +7/-0 in 1 file(s)
URL : https://src.fedoraproject.org/rpms/git-lfs/c/07a19b0f5e841934354eafe2282bb0c1633a244a?branch=f44
Log:
fix(git-lfs): run git maintenance synchronously during %check to stop flaky t-prune.sh
Git 2.54 switched the post-commit `git maintenance run --auto` job to the 'geometric' strategy, dropping the repack trigger from 6700 to ~100 loose objects. t-prune.sh commits 1000 files then runs `git lfs prune`, so the detached background repack races prune and intermittently fails with 'missing object'.
Set maintenance.autoDetach=false for the test suite so the post-commit repack runs in the foreground and finishes before prune, closing the race while keeping the maintenance path exercised. Mirrors git's own test-suite fix for the same geometric-strategy race (git.git 09505b1). Scoped to the throwaway test repos; the shipped binary is unchanged.
Reported upstream: git-lfs/git-lfs#6309
Resolves: rhbz#2503921
---
diff --git a/git-lfs.spec b/git-lfs.spec
index e8f1af3..9a9e826 100644
--- a/git-lfs.spec
+++ b/git-lfs.spec
@@ -127,6 +127,13 @@ exit 0
%check
+# t-prune.sh commits 1000 files then runs `git lfs prune`. On git 2.54+ the default 'geometric'
+# maintenance strategy fires a detached background repack (at ~100 loose objects) that races
+# prune and intermittently fails with 'missing object'. Run maintenance synchronously so the
+# repack finishes first -- same fix as git's own test suite (git.git 09505b1). Upstream:
+# https://github.com/git-lfs/git-lfs/issues/6309
+export GIT_CONFIG_COUNT=1 GIT_CONFIG_KEY_0=maintenance.autoDetach GIT_CONFIG_VALUE_0=false
+
%go_vendor_license_check -c %{S:5}
%if %{with check}
%gocheck2
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2026-08-16 2:49 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-08-16 2:49 [rpms/git-lfs] f44: fix(git-lfs): run git maintenance synchronously during %check to stop flaky t-prune.sh Filipe Rosset
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox