* [bitbake][dunfell][1.46][PATCH 0/1] Patch review
@ 2021-02-15 14:46 Steve Sakoman
0 siblings, 0 replies; 6+ messages in thread
From: Steve Sakoman @ 2021-02-15 14:46 UTC (permalink / raw)
To: bitbake-devel
This patch is associated with the python3targetconfig patches currently being
reviewed for oe-core.
Passed a-full when tested with those patches on autobuilder:
https://autobuilder.yoctoproject.org/typhoon/#/builders/83/builds/1852
The following changes since commit 2351b496bb63b96920d4ae67bec816f00d510df2:
fetch/git: download LFS content too during do_fetch (2021-02-05 12:18:26 +0000)
are available in the Git repository at:
git://git.openembedded.org/bitbake-contrib stable/1.46-nut
http://cgit.openembedded.org/bitbake-contrib/log/?h=stable/1.46-nut
Alexander Kanavin (1):
lib/bb/fetch2/__init__.py: drop _PYTHON_SYSCONFIGDATA_NAME unsetting
lib/bb/fetch2/__init__.py | 5 -----
1 file changed, 5 deletions(-)
--
2.25.1
^ permalink raw reply [flat|nested] 6+ messages in thread
* [bitbake][dunfell][1.46][PATCH 0/1] Patch review
@ 2022-01-20 21:38 Steve Sakoman
0 siblings, 0 replies; 6+ messages in thread
From: Steve Sakoman @ 2022-01-20 21:38 UTC (permalink / raw)
To: bitbake-devel
This patch fixes the bitbake timeout errors seen in distros still using python 3.5
Verified with oe-selftest-ubuntu on autobuilder worker ubuntu1604-ty-1:
https://autobuilder.yoctoproject.org/typhoon/#/builders/87/builds/3088
As well as a-full on other distros:
https://autobuilder.yoctoproject.org/typhoon/#/builders/83/builds/3141
The following changes since commit e6d75e0beb95aa0cdf82bbc0a6b767c7f6cfcfc0:
tests/fetch: Drop gnu urls from wget connectivity test (2022-01-17 21:53:02 +0000)
are available in the Git repository at:
git://git.openembedded.org/bitbake-contrib stable/1.46-nut
http://cgit.openembedded.org/bitbake-contrib/log/?h=stable/1.46-nut
Jate Sujjavanich (1):
hashserv: specify loop for asyncio in python < 3.7
lib/hashserv/server.py | 23 +++++++++++++++++------
1 file changed, 17 insertions(+), 6 deletions(-)
--
2.25.1
^ permalink raw reply [flat|nested] 6+ messages in thread
* [bitbake][dunfell][1.46][PATCH 0/1] Patch review
@ 2022-03-30 16:39 Steve Sakoman
0 siblings, 0 replies; 6+ messages in thread
From: Steve Sakoman @ 2022-03-30 16:39 UTC (permalink / raw)
To: bitbake-devel
Passed a-full on autobuilder:
https://autobuilder.yoctoproject.org/typhoon/#/builders/83/builds/3445
The following changes since commit 41bf1fa85a540232dcf92fe473c3b3c4cd7259dd:
tinfoil: Allow run_command not to wait on events (2022-03-28 13:30:40 +0100)
are available in the Git repository at:
git://git.openembedded.org/bitbake-contrib stable/1.46-nut
http://cgit.openembedded.org/bitbake-contrib/log/?h=stable/1.46-nut
Scott Weaver (1):
fetch2: add check for empty SRC_URI hash string
lib/bb/fetch2/__init__.py | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
--
2.25.1
^ permalink raw reply [flat|nested] 6+ messages in thread
* [bitbake][dunfell][1.46][PATCH 0/1] Patch review
@ 2022-07-07 22:08 Steve Sakoman
2022-07-07 22:08 ` [bitbake][dunfell][1.46][PATCH 1/1] fetch/git: Fix usehead for non-default names Steve Sakoman
0 siblings, 1 reply; 6+ messages in thread
From: Steve Sakoman @ 2022-07-07 22:08 UTC (permalink / raw)
To: bitbake-devel
Just a single patch this time, please have any comments back by end of
day Monday.
Passed a-full on autobuilder:
https://autobuilder.yoctoproject.org/typhoon/#/builders/83/builds/3880
The following changes since commit a496a8952d8542ce814b13f460811d8849d25a3c:
knotty: reduce keep-alive timeout from 5000s (83 minutes) to 10 minutes (2022-06-16 07:15:39 -1000)
are available in the Git repository at:
git://git.openembedded.org/bitbake-contrib stable/1.46-nut
http://cgit.openembedded.org/bitbake-contrib/log/?h=stable/1.46-nut
Joey Degges (1):
fetch/git: Fix usehead for non-default names
lib/bb/fetch2/git.py | 7 +++++-
lib/bb/tests/fetch.py | 52 +++++++++++++++++++++++++++++++++++++++++++
2 files changed, 58 insertions(+), 1 deletion(-)
--
2.25.1
^ permalink raw reply [flat|nested] 6+ messages in thread
* [bitbake][dunfell][1.46][PATCH 1/1] fetch/git: Fix usehead for non-default names
2022-07-07 22:08 [bitbake][dunfell][1.46][PATCH 0/1] Patch review Steve Sakoman
@ 2022-07-07 22:08 ` Steve Sakoman
0 siblings, 0 replies; 6+ messages in thread
From: Steve Sakoman @ 2022-07-07 22:08 UTC (permalink / raw)
To: bitbake-devel
From: Joey Degges <jdegges@gmail.com>
The usehead url parameter for git repositories causes bitbake to use
whatever commit the repository HEAD is pointing to if the repository
happens to have the name 'default'. This is the default name so in many
cases it works just fine, but if a different name is specified with the
url parameter 'name=newName' then it will fail to parse the recipe with
an error along the lines of:
ERROR: ExpansionError during parsing /path/to/my/recipe.bb
Traceback (most recent call last):
File "/path/to/poky/bitbake/lib/bb/fetch2/git.py", line 235, in Git.urldata_init:
> ud.setup_revisions(d)
File "/path/to/poky/bitbake/lib/bb/fetch2/__init__.py", line 1302, in FetchData.setup_revisions:
for name in self.names:
> self.revisions[name] = srcrev_internal_helper(self, d, name)
File "/path/to/poky/bitbake/lib/bb/fetch2/__init__.py", line 1167, in srcrev_internal_helper(name='newName'):
if srcrev == "AUTOINC":
> srcrev = ud.method.latest_revision(ud, d, name)
File "/path/to/poky/bitbake/lib/bb/fetch2/__init__.py", line 1562, in Git.latest_revision(name='newName'):
except KeyError:
> revs[key] = rev = self._latest_revision(ud, d, name)
return rev
File "/path/to/poky/bitbake/lib/bb/fetch2/git.py", line 650, in Git._latest_revision(name='newName'):
raise bb.fetch2.FetchError("Unable to resolve '%s' in upstream git repository in git ls-remote output for %s" % \
> (ud.unresolvedrev[name], ud.host+ud.path))
bb.data_smart.ExpansionError: Failure expanding variable SRCPV, expression was ${@bb.fetch2.get_srcrev(d)} which triggered exception FetchError: Fetcher failure: Unable to resolve 'master' in upstream git repository in git ls-remote output for /path/to/local/git/repo
Let's fix this by setting the unresolved rev of _all_ repository names
to 'HEAD' when the usehead url parameter is specified. Update the
currently failing test, test_local_gitfetch_usehead_withname, to now
expect success.
This change preserves existing behavior that allows usehead to be
overridden by a valid looking revision if one happens to be specified
instead of AUTOREV.
Signed-off-by: Joey Degges <jdegges@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit 01e901c44ab0f496606b1d45c8953dc54970204c)
Signed-off-by: Paulo Neves <ptsneves@gmail.com>
Signed-off-by: Steve Sakoman <steve@sakoman.com>
---
lib/bb/fetch2/git.py | 7 +++++-
lib/bb/tests/fetch.py | 52 +++++++++++++++++++++++++++++++++++++++++++
2 files changed, 58 insertions(+), 1 deletion(-)
diff --git a/lib/bb/fetch2/git.py b/lib/bb/fetch2/git.py
index f6f6b63a..63a9f92b 100644
--- a/lib/bb/fetch2/git.py
+++ b/lib/bb/fetch2/git.py
@@ -224,7 +224,12 @@ class Git(FetchMethod):
ud.shallow = False
if ud.usehead:
- ud.unresolvedrev['default'] = 'HEAD'
+ # When usehead is set let's associate 'HEAD' with the unresolved
+ # rev of this repository. This will get resolved into a revision
+ # later. If an actual revision happens to have also been provided
+ # then this setting will be overridden.
+ for name in ud.names:
+ ud.unresolvedrev[name] = 'HEAD'
ud.basecmd = d.getVar("FETCHCMD_git") or "git -c core.fsyncobjectfiles=0"
diff --git a/lib/bb/tests/fetch.py b/lib/bb/tests/fetch.py
index 301c4683..484fa582 100644
--- a/lib/bb/tests/fetch.py
+++ b/lib/bb/tests/fetch.py
@@ -650,6 +650,58 @@ class FetcherLocalTest(FetcherTest):
with self.assertRaises(bb.fetch2.UnpackError):
self.fetchUnpack(['file://a;subdir=/bin/sh'])
+ def test_local_gitfetch_usehead(self):
+ # Create dummy local Git repo
+ src_dir = tempfile.mkdtemp(dir=self.tempdir,
+ prefix='gitfetch_localusehead_')
+ src_dir = os.path.abspath(src_dir)
+ bb.process.run("git init", cwd=src_dir)
+ bb.process.run("git commit --allow-empty -m'Dummy commit'",
+ cwd=src_dir)
+ # Use other branch than master
+ bb.process.run("git checkout -b my-devel", cwd=src_dir)
+ bb.process.run("git commit --allow-empty -m'Dummy commit 2'",
+ cwd=src_dir)
+ stdout = bb.process.run("git rev-parse HEAD", cwd=src_dir)
+ orig_rev = stdout[0].strip()
+
+ # Fetch and check revision
+ self.d.setVar("SRCREV", "AUTOINC")
+ url = "git://" + src_dir + ";protocol=file;usehead=1"
+ fetcher = bb.fetch.Fetch([url], self.d)
+ fetcher.download()
+ fetcher.unpack(self.unpackdir)
+ stdout = bb.process.run("git rev-parse HEAD",
+ cwd=os.path.join(self.unpackdir, 'git'))
+ unpack_rev = stdout[0].strip()
+ self.assertEqual(orig_rev, unpack_rev)
+
+ def test_local_gitfetch_usehead_withname(self):
+ # Create dummy local Git repo
+ src_dir = tempfile.mkdtemp(dir=self.tempdir,
+ prefix='gitfetch_localusehead_')
+ src_dir = os.path.abspath(src_dir)
+ bb.process.run("git init", cwd=src_dir)
+ bb.process.run("git commit --allow-empty -m'Dummy commit'",
+ cwd=src_dir)
+ # Use other branch than master
+ bb.process.run("git checkout -b my-devel", cwd=src_dir)
+ bb.process.run("git commit --allow-empty -m'Dummy commit 2'",
+ cwd=src_dir)
+ stdout = bb.process.run("git rev-parse HEAD", cwd=src_dir)
+ orig_rev = stdout[0].strip()
+
+ # Fetch and check revision
+ self.d.setVar("SRCREV", "AUTOINC")
+ url = "git://" + src_dir + ";protocol=file;usehead=1;name=newName"
+ fetcher = bb.fetch.Fetch([url], self.d)
+ fetcher.download()
+ fetcher.unpack(self.unpackdir)
+ stdout = bb.process.run("git rev-parse HEAD",
+ cwd=os.path.join(self.unpackdir, 'git'))
+ unpack_rev = stdout[0].strip()
+ self.assertEqual(orig_rev, unpack_rev)
+
class FetcherNoNetworkTest(FetcherTest):
def setUp(self):
super().setUp()
--
2.25.1
^ permalink raw reply related [flat|nested] 6+ messages in thread
* [bitbake][dunfell][1.46][PATCH 0/1] Patch review
@ 2022-08-18 17:08 Steve Sakoman
0 siblings, 0 replies; 6+ messages in thread
From: Steve Sakoman @ 2022-08-18 17:08 UTC (permalink / raw)
To: bitbake-devel
Please review this patch for the upcoming dunfell 3.1.19 release.
Passed a-full on autobuilder:
https://autobuilder.yoctoproject.org/typhoon/#/builders/83/builds/4098
The following changes since commit 7fc4cffebf5dcc1d050416c0b7f7d58c765c1d69:
fetch/wget: Move files into place atomically (2022-07-08 06:48:38 -1000)
are available in the Git repository at:
git://git.openembedded.org/bitbake-contrib stable/1.46-nut
http://cgit.openembedded.org/bitbake-contrib/log/?h=stable/1.46-nut
Christophe Priouzeau (1):
fetch2/wget: Update user-agent
lib/bb/fetch2/wget.py | 11 ++++++++---
1 file changed, 8 insertions(+), 3 deletions(-)
--
2.25.1
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2022-08-18 17:09 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-07-07 22:08 [bitbake][dunfell][1.46][PATCH 0/1] Patch review Steve Sakoman
2022-07-07 22:08 ` [bitbake][dunfell][1.46][PATCH 1/1] fetch/git: Fix usehead for non-default names Steve Sakoman
-- strict thread matches above, loose matches on Subject: below --
2022-08-18 17:08 [bitbake][dunfell][1.46][PATCH 0/1] Patch review Steve Sakoman
2022-03-30 16:39 Steve Sakoman
2022-01-20 21:38 Steve Sakoman
2021-02-15 14:46 Steve Sakoman
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.