Skip to contentSkip to conversation

[2.8][PATCH 0/1] Pull request

bitbake Yoann Congal 1 participant 2 messages May 14

lore
Share & tools
lore
#0 lore raw

Note: This PR has not followed the usual 2 days review cycle and is aimed at (quikly) fixing the 5.0.18 build.

This is the last piece (I hope) of the migration out of git:// URLs for YP/OE infra.

Passed a-full on autobuilder:
https://autobuilder.yoctoproject.org/valkyrie/#/builders/29/builds/3827
* oe-selftest-debian failed on a slow yp.org mirror access that I
attribute to current heavy load created by bots
https://autobuilder.yoctoproject.org/valkyrie/#/builders/35/builds/3855
* Successfully retried as https://autobuilder.yoctoproject.org/valkyrie/#/builders/35/builds/3860

The following changes since commit 1a62878a790ed9630d5ca2fa099d1604540e153a:

fetch/git: Fix leaking of temporary directory (2026-05-13 17:51:42 +0100)

are available in the Git repository at:

https://git.openembedded.org/bitbake-contrib stable/2.8-next
https://git.openembedded.org/bitbake-contrib/log/?h=stable/2.8-next

for you to fetch changes up to 82abbfcdbda949851a03bb2cb2049ea689564ad6:

tests/fetch: Avoid using git protocol in tests (2026-05-13 22:22:20 +0200)

----------------------------------------------------------------

Richard Purdie (1):
tests/fetch: Avoid using git protocol in tests

 lib/bb/tests/fetch.py | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)
#1 lore raw

[bitbake][scarthgap][2.8][PATCH 1/1] tests/fetch: Avoid using git protocol in tests

From: Richard Purdie <[email protected]>

Two of the tests were still using git protocol to access git services. For the submodule test, the upstream repo has been updated.

In the other case, we need to pass the correct command to the manual git commandline, we can't use a recipe url that previously just happened to work.

(cherry picked from commit 5d722b5d65e4eef7befe6376983385421e993f86)
---
 lib/bb/tests/fetch.py | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)
lib/bb/tests/fetch.py +3 -2
index b57cf511a..3775ab0f3 100644
@@ -1107,7 +1107,7 @@ class FetcherNetworkTest(FetcherTest):
         # URL with ssh submodules
         url = "gitsm://git.yoctoproject.org/git-submodule-test;branch=ssh-gitsm-tests;rev=049da4a6cb198d7c0302e9e8b243a1443cb809a7;branch=master;protocol=https"
         # Original URL (comment this if you have ssh access to git.yoctoproject.org)
-        url = "gitsm://git.yoctoproject.org/git-submodule-test;branch=master;rev=a2885dd7d25380d23627e7544b7bbb55014b16ee;branch=master;protocol=https"
+        url = "gitsm://git.yoctoproject.org/git-submodule-test;branch=master;rev=38e61644af90dccd73c03ed3acaed98c8dda9294;branch=master;protocol=https"
         fetcher = bb.fetch.Fetch([url], self.d)
         fetcher.download()
         # Previous cwd has been deleted
@@ -3267,6 +3267,7 @@ class FetchPremirroronlyNetworkTest(FetcherTest):
         self.reponame = "fstests"
         self.clonedir = os.path.join(self.tempdir, "git")
         self.gitdir = os.path.join(self.tempdir, "git", "{}.git".format(self.reponame))
+        self.giturl = "https://git.yoctoproject.org/fstests"
         self.recipe_url = "git://git.yoctoproject.org/fstests;protocol=https"
         self.d.setVar("BB_FETCH_PREMIRRORONLY", "1")
         self.d.setVar("BB_NO_NETWORK", "0")
@@ -3276,7 +3277,7 @@ class FetchPremirroronlyNetworkTest(FetcherTest):
         import shutil
         self.mirrorname = "git2_git.yoctoproject.org.fstests.tar.gz"
         os.makedirs(self.clonedir)
-        self.git("clone --bare --shallow-since=\"01.01.2013\" {}".format(self.recipe_url), self.clonedir)
+        self.git("clone --bare --shallow-since=\"01.01.2013\" {}".format(self.giturl), self.clonedir)
         bb.process.run('tar -czvf {} .'.format(os.path.join(self.mirrordir, self.mirrorname)), cwd =  self.gitdir)
         shutil.rmtree(self.clonedir)