Thread View: linux.kernel.git
2 messages
2 total messages
Started by "Patrick Ohly"
Tue, 03 Nov 2026 13:24
[BUG] Lazy fetch in partial clone fails with "not our ref" since 5946a564 (odb/source: make read_object_info() pluggable)
Author: "Patrick Ohly"
Date: Tue, 03 Nov 2026 13:24
Date: Tue, 03 Nov 2026 13:24
63 lines
13676 bytes
13676 bytes
Hello, "git merge" in a blobless partial clone fails with "not our ref" while lazily fetching a missing object. This started to occur today in the Kubernetes CI, completely breaking the merging of PRs. We should have been using git 2.54.0, the affected version, for a few days at least without issues, so it can't be ruled out that this is at least partly caused by a change on the GitHub side. We are about to revert to git 2.52.0 to unblock the Kubernetes project. What follows is an agent analysis of the problem. I'm not rewriting it because it seems succinct and useful as-is: What did you do before the bug happened? (Steps to reproduce) git init k && cd k R=https://github.com/kubernetes/kubernetes.git git fetch --filter=blob:none $R 6575724b63e50cd5dd454e774bc293c6de1e4e12 git checkout 6575724b63e50cd5dd454e774bc293c6de1e4e12 git fetch --filter=blob:none $R 787dd27af44c14c22d3bae46bf62b4a0271efc06 git -c user.name=a -c user.email=a@b merge --no-ff 787dd27af44c14c22d3bae46bf62b4a0271efc06 What did you expect to happen? The merge succeeds, with missing blobs fetched lazily from the promisor remote. What happened instead? fatal: remote error: upload-pack: not our ref 27b64cc863187e62d8b47196a78c045412d32ac9 fatal: could not fetch 3c804b88bcf177a1435ba770fa9054c25e1315c3 from promisor remote Bisect result I bisected v2.52.0 (good) to v2.54.0 (bad). The first bad commit is: 5946a564cddc0bf471f27ae4c3fe205441e3ef65 odb/source: make `read_object_info()` function pluggable The parent, 3bc3177ad7 (Β 2.53.0.185.g3bc3177ad7Β ), is good. Versions tested βββββββββββββββββββββββββββββββββββββββββββββββββββββββββ¬βββββββββ β Version β Result β βββββββββββββββββββββββββββββββββββββββββββββββββββββββββΌβββββββββ€ β 2.39.5, 2.43.4, 2.45.2, 2.47.2, 2.49.1, 2.52.0 β OK β βββββββββββββββββββββββββββββββββββββββββββββββββββββββββΌβββββββββ€ β 2.54.0, 2.56.0 β fail β βββββββββββββββββββββββββββββββββββββββββββββββββββββββββΌβββββββββ€ β master (v2.56.0-341-gebdc087dc, built with NO_RUST=1) β fail β βββββββββββββββββββββββββββββββββββββββββββββββββββββββββ΄βββββββββ Notes β’ The remote is github.com over HTTPS. I haven't tried other hosts. β’ I haven't analysed the cause. My guess is that the new Β OBJECT_INFO_SECOND_READΒ and reprepare path changes how the promisor lazy fetch is triggered. The client then requests an object by OID that the server refuses with "not our ref". β’ The failure is deterministic. The first PR head merges fine on 2.52.0 and older. [System Info] git version 2.56.GIT (also 2.54.0 and 2.56.0), Linux x86_64 (Debian stable container) -- Best Regards Patrick Ohly Cloud Software Architect
Re: [BUG] Lazy fetch in partial clone fails with "not our ref" since 5946a564 (odb/source: make read_object_info() pluggable)
Author: "Patrick Ohly"
Date: Wed, 04 Nov 2026 11:56
Date: Wed, 04 Nov 2026 11:56
44 lines
10718 bytes
10718 bytes
Kristofer Karlsson <krka@spotify.com> writes: > On Tue, 3 Nov 2026 at 14:31, Patrick Ohly <patrick.ohly@intel.com> wrote: >> >> Hello, >> >> "git merge" in a blobless partial clone fails with "not our ref" while >> lazily fetching a missing object. This started to occur today in the >> Kubernetes CI, completely breaking the merging of PRs. We should have >> been using git 2.54.0, the affected version, for a few days at least >> without issues, so it can't be ruled out that this is at least partly >> caused by a change on the GitHub side. We are about to revert to git >> 2.52.0 to unblock the Kubernetes project. >> >> [...] >> >> I bisected v2.52.0 (good) to v2.54.0 (bad). The first bad commit is: >> >> 5946a564cddc0bf471f27ae4c3fe205441e3ef65 >> odb/source: make `read_object_info()` function pluggable >> >> The parent, 3bc3177ad7 ( 2.53.0.185.g3bc3177ad7 ), is good. > > Thanks for the detailed report. I think I have found the cause: I > can reproduce the failure with your steps and make it go away with a > small change to the loose object cache. Any idea why this suddenly started to occur? We were using 2.54.0 for several days without issues prior to the failure. For example, https://storage.googleapis.com/kubernetes-ci-logs/pr-logs/pull/batch/pull-kubernetes-cmd/2117551425255903232/clone-log.txt merged several different PRs for https://prow.k8s.io/view/gs/kubernetes-ci-logs/pr-logs/pull/batch/pull-kubernetes-cmd/2117551425255903232 using us-docker.pkg.dev/k8s-infra-prow/images/clonerefs:v20261028-c06373a3e as environment. It contains 2.54.0. -- Best Regards Patrick Ohly Cloud Software Architect
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads