From: "Mathieu Dubois-Briand" <mathieu.dubois-briand@bootlin.com>
To: "Philip Lorenz" <philip.lorenz@bmw.de>,
<bitbake-devel@lists.openembedded.org>
Cc: <richard.purdie@linuxfoundation.org>
Subject: Re: [PATCH v3 0/8] Fix gitsm LFS support
Date: Mon, 28 Apr 2025 18:25:47 +0200 [thread overview]
Message-ID: <D9IEUL8C31XI.2888IIXIFIPAW@bootlin.com> (raw)
In-Reply-To: <20250425144138.4089681-1-philip.lorenz@bmw.de>
On Fri Apr 25, 2025 at 4:41 PM CEST, Philip Lorenz wrote:
> This patch series fixes a number of issues we observed when using the
> gitsm fetcher in conjunction with git-lfs.
>
> I'd like to highlight two patches in this series:
> * 0004-fetch2-Simplify-git-LFS-detection: I could not come up with a
> good reason on why the code so far preferred the content of
> `.gitattributes` on the repository's branch instead of always
> considering the state of the target revision. Please let me know
> if there's something I didn't take into account.
> * 0005-fetch2-Use-git-lfs-fetch-to-download-objects.patch: I could not
> replicate the `git-lfs fetch` behaviour in versions going back to
> 2.13.2 released in 2021. This leads me to believe that the issue
> leading to this workaround is no longer in place. However, if anyone
> remembers the actual issue / versions involved I can also retest to
> confirm that there are no regression.
>
> ---
Hi Philip,
Thanks for the new version.
It works much better than previously. I still have some issues with
bitbake selftests on my branch:
ERROR: test_lfs_enabled_not_installed (bb.tests.fetch.GitLfsTest.test_lfs_enabled_not_installed)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/srv/pokybuild/yocto-worker/oe-selftest-debian/build/bitbake/lib/bb/tests/fetch.py", line 2528, in test_lfs_enabled_not_installed
fetcher.download()
~~~~~~~~~~~~~~~~^^
File "/srv/pokybuild/yocto-worker/oe-selftest-debian/build/bitbake/lib/bb/fetch2/__init__.py", line 1929, in download
raise FetchError("Unable to fetch URL from any source.", u)
bb.fetch2.FetchError: Fetcher failure for URL: 'git:///tmp/bitbake-fetch-m30azy7_/gitsource;protocol=file;lfs=1;branch=master'. Unable to fetch URL from any source.
Stdout:
Cloning into bare repository '/tmp/bitbake-fetch-m30azy7_/download/git2/tmp.bitbake-fetch-m30azy7_.gitsource'...
remote: Enumerating objects: 3, done.
remote: Counting objects: 100% (3/3), done.
remote: Total 3 (delta 0), reused 0 (delta 0), pack-reused 0 (from 0)
Receiving objects: 33% (1/3)
Receiving objects: 100% (3/3), done.
Failed to fetch URL git:///tmp/bitbake-fetch-m30azy7_/gitsource;protocol=file;lfs=1;branch=master, attempting MIRRORS if available
Fetcher failure: Repository file:///tmp/bitbake-fetch-m30azy7_/gitsource has LFS content, install git-lfs on host to download (or set lfs=0 to ignore it)
Failed to fetch URL git:///tmp/bitbake-fetch-m30azy7_/gitsource;protocol=file;lfs=1;branch=master, attempting MIRRORS if available
Fetcher failure: Repository file:///tmp/bitbake-fetch-m30azy7_/gitsource has LFS content, install git-lfs on host to download (or set lfs=0 to ignore it)
https://autobuilder.yoctoproject.org/valkyrie/#/builders/35/builds/1440/steps/12/logs/stdio
--
Mathieu Dubois-Briand, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com
next prev parent reply other threads:[~2025-04-28 16:26 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-04-25 14:41 [PATCH v3 0/8] Fix gitsm LFS support Philip Lorenz
2025-04-25 14:41 ` [PATCH v3 1/8] fetch2: Clean up no longer used name parameter Philip Lorenz
2025-04-25 14:41 ` [PATCH v3 2/8] tests/fetch: Move commonly used imports to top Philip Lorenz
2025-04-25 14:41 ` [PATCH v3 3/8] fetch2: Check for git-lfs existence before using it Philip Lorenz
2025-04-25 14:41 ` [PATCH v3 4/8] fetch2: Simplify git LFS detection Philip Lorenz
2025-04-25 14:41 ` [PATCH v3 5/8] fetch2: Use git-lfs fetch to download objects Philip Lorenz
2025-04-25 14:41 ` [PATCH v3 6/8] fetch2: Fix incorrect lfs parametrization for submodules Philip Lorenz
2025-04-25 14:41 ` [PATCH v3 7/8] fetch2: Fix LFS object checkout in submodules Philip Lorenz
2025-04-25 14:41 ` [PATCH v3 8/8] tests/fetch: Test gitsm with LFS Philip Lorenz
2025-04-28 16:25 ` Mathieu Dubois-Briand [this message]
2025-04-28 21:09 ` [PATCH v3 0/8] Fix gitsm LFS support Richard Purdie
2025-04-29 6:12 ` Philip Lorenz
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=D9IEUL8C31XI.2888IIXIFIPAW@bootlin.com \
--to=mathieu.dubois-briand@bootlin.com \
--cc=bitbake-devel@lists.openembedded.org \
--cc=philip.lorenz@bmw.de \
--cc=richard.purdie@linuxfoundation.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.