Openembedded Core Discussions
 help / color / mirror / Atom feed
From: "Mathieu Dubois-Briand" <mathieu.dubois-briand@bootlin.com>
To: <ecordonnier@snap.com>, <openembedded-core@lists.openembedded.org>
Subject: Re: [OE-core] [PATCH v4 2/2] archiver.bbclass: remove .git from original git source archives
Date: Fri, 04 Dec 2026 07:54:33 +0100	[thread overview]
Message-ID: <DNBR1X3O29DU.13N1NI6YVYR7N@bootlin.com> (raw)
In-Reply-To: <20261202205446.2442999-3-ecordonnier@snap.com>

On Wed Dec 2, 2026 at 9:54 PM CET, Etienne Cordonnier via openembedded-core wrote:
> From: Etienne Cordonnier <ecordonnier@snap.com>
>
> The unpacked tree of a git source includes its .git, which has no use in the
> archive. The .git of a clone has no objects, only a reference to DL_DIR via
> objects/info/alternates, and the .git of a shallow tarball duplicates the
> sources, which roughly doubles the archive. Remove it, and the .git files of
> submodules. Keep it with nocheckout (and bareclone), where the repository is
> the source.
>
> AI-Generated: Claude Code with Claude Haiku 5.5
> Signed-off-by: Etienne Cordonnier <ecordonnier@snap.com>
> ---

Hi Etienne,

Thanks for the new version.

It looks like one of the tests is now failing:

2026-12-03 19:33:27,668 - oe-selftest - INFO - archiver.Archiver.test_archiver_mode_original_git_shallow (subunit.RemotedTestCase)
2026-12-03 19:33:27,668 - oe-selftest - INFO -  ... FAIL

Stderr:
NOTE: Reconnecting to bitbake server...
2026-12-03 19:33:27,668 - oe-selftest - INFO - 1: 16/57 655/844 (546.88s) (1 failed) (archiver.Archiver.test_archiver_mode_original_git_shallow)
2026-12-03 19:33:27,668 - oe-selftest - INFO - testtools.testresult.real._StringException: Traceback (most recent call last):
  File "/srv/pokybuild/yocto-worker/oe-selftest-debian/build/layers/openembedded-core/meta/lib/oeqa/selftest/cases/archiver.py", line 213, in test_archiver_mode_original_git_shallow
    names = self._get_original_git_archive_names(target)
  File "/srv/pokybuild/yocto-worker/oe-selftest-debian/build/layers/openembedded-core/meta/lib/oeqa/selftest/cases/archiver.py", line 286, in _get_original_git_archive_names
    self.assertEqual(len(archives), 1, 'Expected one source archive for %s, found %s' % (target, archives))
    ~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.14/unittest/case.py", line 925, in assertEqual
    assertion_func(first, second, msg=msg)
    ~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.14/unittest/case.py", line 918, in _baseAssertEqual
    raise self.failureException(msg)
AssertionError: 0 != 1 : Expected one source archive for gitrepotest, found []

https://autobuilder.yoctoproject.org/valkyrie/#/builders/35/builds/5404
https://autobuilder.yoctoproject.org/valkyrie/#/builders/48/builds/5208
https://autobuilder.yoctoproject.org/valkyrie/#/builders/23/builds/5427

Can you have a look at the issue?

Thanks,
Mathieu

-- 
Mathieu Dubois-Briand, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com


  reply	other threads:[~2026-12-04  6:54 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-12-02 20:54 [PATCH v4 0/2] archiver.bbclass: archive shallow git sources without a clone, drop .git ecordonnier
2026-12-02 20:54 ` [PATCH v4 1/2] archiver.bbclass: unpack original sources without a localpath ecordonnier
2026-12-02 20:54 ` [PATCH v4 2/2] archiver.bbclass: remove .git from original git source archives ecordonnier
2026-12-04  6:54   ` Mathieu Dubois-Briand [this message]
2026-12-04 17:02     ` [OE-core] " Etienne Cordonnier
2026-12-04 17:22       ` Mathieu Dubois-Briand

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=DNBR1X3O29DU.13N1NI6YVYR7N@bootlin.com \
    --to=mathieu.dubois-briand@bootlin.com \
    --cc=ecordonnier@snap.com \
    --cc=openembedded-core@lists.openembedded.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox