From: Robert Yang <liezhi.yang@windriver.com>
To: alexandre.belloni@bootlin.com
Cc: bitbake-devel@lists.openembedded.org, andre.draszik@linaro.org,
kergoth@gmail.com
Subject: Re: [bitbake-devel] [PATCH 0/2] fetch2/git: Use git shallow fetch to implement clone_shallow_local()
Date: Sun, 7 Jul 2024 15:11:46 +0800 [thread overview]
Message-ID: <fb0a5c12-0ef2-487b-acec-41ae7c94407f@windriver.com> (raw)
In-Reply-To: <afe47796-7e3d-4666-8bda-c6c0e6486c02@windriver.com>
On 7/2/24 15:31, Robert Yang wrote:
>
>
> On 7/2/24 06:13, Alexandre Belloni via lists.openembedded.org wrote:
>> Hello,
>>
>> This fails on our ubuntu 20.04 workers:
>>
>> https://autobuilder.yoctoproject.org/typhoon/#/builders/87/builds/6923/steps/11/logs/stdio
>> https://autobuilder.yoctoproject.org/typhoon/#/builders/127/builds/3542/steps/11/logs/stdio
>
> Sorry, it might because the git version on ubuntu 20.04 is old, let me check how > to fix it.
I had a ppa on my ubuntu host 20.04 which installed a higher version git, that
made me didn't meet the error. I've tried pure ubuntu 20.04 from docker hub, and
then reproduced the error, the fix is:
+ # Advertise the revision for lower version git such as 2.25.1:
+ # error: Server does not allow request for unadvertised object.
+ # The ud.clonedir is a local temporary dir, will be removed when
+ # fetch is done, so we can do anything on it.
+ adv_cmd = 'git branch -f advertise-%s %s' % (revision, revision)
+ runfetchcmd(adv_cmd, d, workdir=ud.clonedir)
I will send a V2 for it.
// Robert
>
> // Robert
>
>>
>> On 20/06/2024 05:44:39-0700, Robert Yang via lists.openembedded.org wrote:
>>> From: Robert Yang <liezhi.yang@windriver.com>
>>>
>>> * Test info
>>> bitbake-selftest works well
>>> bitbake world works well with the shallow tarballs
>>>
>>> // Robert
>>>
>>> The following changes since commit 5d88faa0f35f0205c1475893d8589d1e6533dcc0:
>>>
>>> bitbake: siggen: catch FileNotFoundError everywhere and ConnectionError
>>> also in get_unihashes (2024-06-18 08:45:22 +0100)
>>>
>>> are available in the Git repository at:
>>>
>>> https://github.com/robertlinux/yocto rbt/shallow
>>> https://github.com/robertlinux/yocto/tree/rbt/shallow
>>>
>>> Robert Yang (2):
>>> fetch2/git: Use git shallow fetch to implement clone_shallow_local()
>>> bitbake: tests/fetch: Update GitShallowTest for clone_shallow_local()
>>>
>>> bitbake/lib/bb/fetch2/git.py | 71 ++++++++++++++++++++++-------------
>>> bitbake/lib/bb/tests/fetch.py | 13 ++++---
>>> 2 files changed, 53 insertions(+), 31 deletions(-)
>>>
>>> --
>>> 2.45.1
>>>
>>
>>>
>>>
>>>
>>
>>
>>
>>
>> -=-=-=-=-=-=-=-=-=-=-=-
>> Links: You receive all messages sent to this group.
>> View/Reply Online (#16383):
>> https://lists.openembedded.org/g/bitbake-devel/message/16383
>> Mute This Topic: https://lists.openembedded.org/mt/106779045/3616940
>> Group Owner: bitbake-devel+owner@lists.openembedded.org
>> Unsubscribe: https://lists.openembedded.org/g/bitbake-devel/unsub
>> [liezhi.yang@windriver.com]
>> -=-=-=-=-=-=-=-=-=-=-=-
>>
prev parent reply other threads:[~2024-07-07 7:12 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-06-20 12:44 [PATCH 0/2] fetch2/git: Use git shallow fetch to implement clone_shallow_local() liezhi.yang
2024-06-20 12:44 ` [PATCH 1/2] " liezhi.yang
2024-06-20 12:44 ` [PATCH 2/2] bitbake: tests/fetch: Update GitShallowTest for clone_shallow_local() liezhi.yang
2024-06-27 5:46 ` [bitbake-devel] [PATCH 0/2] fetch2/git: Use git shallow fetch to implement clone_shallow_local() Robert Yang
2024-07-01 22:13 ` Alexandre Belloni
2024-07-02 7:31 ` Robert Yang
2024-07-07 7:11 ` Robert Yang [this message]
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=fb0a5c12-0ef2-487b-acec-41ae7c94407f@windriver.com \
--to=liezhi.yang@windriver.com \
--cc=alexandre.belloni@bootlin.com \
--cc=andre.draszik@linaro.org \
--cc=bitbake-devel@lists.openembedded.org \
--cc=kergoth@gmail.com \
/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.