Improvements and fixes for the 5.2 release
cover Improvements and fixes for the 5.2 release
Address some of the reviews on the list regarding the release notes and migration for 5.2.
Previous patches were already merged so address the issues in separate patches.
---
Antonin Godard (2):
ref-manual/classes: ptest-python-pytest: improve the current documentation migration-guides/{migration,release-note}-5.2: improvements and fixes
documentation/migration-guides/migration-5.2.rst | 10 +++++++++- documentation/migration-guides/release-notes-5.2.rst | 7 ++----- documentation/ref-manual/classes.rst | 7 +++---- documentation/ref-manual/variables.rst | 2 +- 4 files changed, 15 insertions(+), 11 deletions(-)
---
base-commit: 7494df521ed9c70e877dbdef1adfe38ad717682f
change-id: 20250403-release-note-5-2-updates-fixes-e8a11355180e
Best regards,
Signature · 1 line
Antonin Godard <[email protected]>
PATCH 1/2 ref-manual/classes: ptest-python-pytest: improve the current documentation
Improve the current ptest-python-pytest documentation and PTEST_PYTEST_DIR variable definition. Namely remove the default value that may evolve over time.
--- documentation/ref-manual/classes.rst | 7 +++---- documentation/ref-manual/variables.rst | 2 +- 2 files changed, 4 insertions(+), 5 deletions(-)
documentation/ref-manual/classes.rst +3 -4
@@ -2712,13 +2712,12 @@ section in the Yocto Project Development Tasks Manual. ``ptest-python-pytest`` ======================= -The :ref:`ref-classes-ptest-python-pytest` class can be used in Python-based +The :ref:`ref-classes-ptest-python-pytest` class can be inherited in Python-based recipes to automatically configure the :ref:`ref-classes-ptest` class for Python packages leveraging the `pytest <https://docs.pytest.org>`__ unit test framework. -Within the recipe, the :term:`PTEST_PYTEST_DIR` variable can be overridden to -specify the path to the directory containing the tests (default value: -``tests``). Test contained in this directory are installed in :term:`D` by the +Within the recipe, the :term:`PTEST_PYTEST_DIR` variable specifies the path to +the directory containing the tests that will be installed in :term:`D` by the :ref:`ref-tasks-install_ptest_base` task, as well as a specific ``run-ptest`` script for this task.
documentation/ref-manual/variables.rst +1 -1
@@ -7393,7 +7393,7 @@ system and gives an overview of their function and contents. :term:`PTEST_PYTEST_DIR` Within the :ref:`ref-classes-ptest-python-pytest` class, the :term:`PTEST_PYTEST_DIR` variable represents the path within the source - tree of a Python package holding the unit tests to be tested with the + tree of a Python package holding the unit tests to be run with the `pytest <https://docs.pytest.org>`__ framework. The default value for this variable is ``tests``.
Signature · 1 line
2.47.0
Re: [PATCH 1/2] ref-manual/classes: ptest-python-pytest: improve the current documentation
Hi Antonin,
Quoted 5 lines · Antonin Godard
Improve the current ptest-python-pytest documentation and
PTEST_PYTEST_DIRvariable definition. Namely remove the default value that may evolve over time.Suggested-by Quentin Schulz <[email protected]>
Thanks!
Quentin
PATCH 2/2 migration-guides/{migration,release-note}-5.2: improvements and fixes
In reply to Antonin GodardAddress some of the reviews received on the release notes and migration guide for 5.2:
- Remove the wget fetcher addition, I misread commit 0a9f90ff658e ("tests/fetch: support setting PV in the wget fetcher") from BitBake, and it actually affects the tests for the wget fetcher, not the fetcher itself.
- Add a way to transition from the branch=nameX,nameY syntax. From what I have tested, I achieve the same behavior when using one or the other syntax.
- Remove the default value for SPDX_PACKAGE_VERSION in the release note.
- Fix a couple of typos.
--- documentation/migration-guides/migration-5.2.rst | 10 +++++++++- documentation/migration-guides/release-notes-5.2.rst | 7 ++----- 2 files changed, 11 insertions(+), 6 deletions(-)
documentation/migration-guides/migration-5.2.rst +9 -1
@@ -193,6 +193,14 @@ anymore:: This was rarely used in the core repositories, and this removal simplifies the code logic in several places. +If one of your recipes is still using this mechanism, you can split the +code source fetching into two separate entries:: + + SRC_URI = "git://some.host/somepath;branch=branchX;name=nameX \ + git://some.host/somepath;branch=branchY;name=nameY" + SRCREV_nameX = "xxxxxxxxxxxxxxxxxxxx" + SRCREV_nameY = "yyyyyyyyyyyyyyyyyyyy" + Git fetcher: Branch parameter now required in :term:`SRC_URI` ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
@@ -242,7 +250,7 @@ The following recipes have been removed in this release: :oe_git:`openembedded-core </openembedded-core>` or :oe_git:`meta-openembedded </meta-openembedded>`. - ``blktool``: It was created in 2004 as an alternative to hdparm and never - updated since (while :wikipedia:`hdparm <Hdparm>` remains in active. + updated since (while :wikipedia:`hdparm <Hdparm>` remains in active). - ``cargo-c-native``: converted to a target recipe and renamed to ``cargo-c``.
documentation/migration-guides/release-notes-5.2.rst +2 -5
@@ -44,11 +44,10 @@ New Features / Enhancements in |yocto-ver| uses. - The :term:`GRUB_MKIMAGE_OPTS` can be used to control the flags to the - ``grub-mkimage`` command in the context of the Grub recipe (``grub-efi``). + ``grub-mkimage`` command in the context of the GRUB recipe (``grub-efi``). - The :term:`SPDX_PACKAGE_VERSION` variable controls the package version as - seen in the SPDX 3.0 JSON output (``software_packageVersion``). The default - value for this variable is :term:`PV`. + seen in the SPDX 3.0 JSON output (``software_packageVersion``). - Kernel-related changes:
@@ -345,8 +344,6 @@ New Features / Enhancements in |yocto-ver| - ``wget``: increase timeout to 100s from 30s to match CDN worst response time. - - ``wget``: Support setting :term:`PV` in :term:`SRC_URI`. - - Add support for fast initial shallow fetch. The fetcher will prefer an initial shallow clone, but will re-utilize an existing bare clone if there is one. If the remote server does not allow shallow fetches, the
Signature · 1 line
2.47.0
Re: [PATCH 2/2] migration-guides/{migration,release-note}-5.2: improvements and fixes
Hi Antonin,
Quoted 40 lines · Antonin Godard
Address some of the reviews received on the release notes and migration guide for 5.2:
- Remove the wget fetcher addition, I misread commit
0a9f90ff658e("tests/fetch: support setting PV in the wget fetcher") from BitBake, and it actually affects the tests for the wget fetcher, not the fetcher itself.
- Add a way to transition from the branch=nameX,nameY syntax. From what I have tested, I achieve the same behavior when using one or the other syntax.
- Remove the default value forSPDX_PACKAGE_VERSIONin the release note.
- Fix a couple of typos.Suggested-by Quentin Schulz <[email protected]>Signed-off-by Antonin Godard <[email protected]>--- documentation/migration-guides/migration-5.2.rst | 10 +++++++++- documentation/migration-guides/release-notes-5.2.rst | 7 ++----- 2 files changed, 11 insertions(+), 6 deletions(-)documentation/migration-guides/migration-5.2.rst +8
-0@@ -193,6 +193,14 @@ anymore:: This was rarely used in the core repositories, and this removal simplifies the code logic in several places. +If one of your recipes is still using this mechanism, you can split the +code source fetching into two separate entries:: + + SRC_URI = "git://some.host/somepath;branch=branchX;name=nameX \ + git://some.host/somepath;branch=branchY;name=nameY" + SRCREV_nameX = "xxxxxxxxxxxxxxxxxxxx" + SRCREV_nameY = "yyyyyyyyyyyyyyyyyyyy" + Git fetcher: Branch parameter now required in :term:`SRC_URI` ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
documentation/migration-guides/migration-5.2.rst The following recipes have been removed in this release: · line 253
Quoted 5 lines
documentation/migration-guides/migration-5.2.rst +1
-1@@ -242,7 +250,7 @@ The following recipes have been removed in this release: :oe_git:`openembedded-core </openembedded-core>` or :oe_git:`meta-openembedded </meta-openembedded>`. - ``blktool``: It was created in 2004 as an alternative to hdparm and never - updated since (while :wikipedia:`hdparm <Hdparm>` remains in active. + updated since (while :wikipedia:`hdparm <Hdparm>` remains in active).
Mmmm, should we say
s/remains in active/remains active/ ?
Slow brain day so maybe my intuition is wrong today :)
Quoted 8 lines
documentation/migration-guides/migration-5.2.rst +0
-0- ``cargo-c-native``: converted to a target recipe and renamed to ``cargo-c``.documentation/migration-guides/release-notes-5.2.rst +0
-0
documentation/migration-guides/release-notes-5.2.rst New Features / Enhancements in |yocto-ver| · line 50
Quoted 10 lines
documentation/migration-guides/release-notes-5.2.rst +2
-3@@ -44,11 +44,10 @@ New Features / Enhancements in |yocto-ver| uses. - The :term:`GRUB_MKIMAGE_OPTS` can be used to control the flags to the - ``grub-mkimage`` command in the context of the Grub recipe (``grub-efi``). + ``grub-mkimage`` command in the context of the GRUB recipe (``grub-efi``). - The :term:`SPDX_PACKAGE_VERSION` variable controls the package version as - seen in the SPDX 3.0 JSON output (``software_packageVersion``). The default - value for this variable is :term:`PV`. + seen in the SPDX 3.0 JSON output (``software_packageVersion``).
The indentation seems odd here (but to be fair, it is also in the part of the diff that is being removed).
Cheers,
Quentin
Re: [PATCH 2/2] migration-guides/{migration,release-note}-5.2: improvements and fixes
Hi Quentin,
Quoted 51 lines · Quentin Schulz
Hi Antonin,
Quoted 40 lines · Antonin Godard
Address some of the reviews received on the release notes and migration guide for 5.2:
- Remove the wget fetcher addition, I misread commit
0a9f90ff658e("tests/fetch: support setting PV in the wget fetcher") from BitBake, and it actually affects the tests for the wget fetcher, not the fetcher itself.
- Add a way to transition from the branch=nameX,nameY syntax. From what I have tested, I achieve the same behavior when using one or the other syntax.
- Remove the default value forSPDX_PACKAGE_VERSIONin the release note.
- Fix a couple of typos.Suggested-by Quentin Schulz <[email protected]>Signed-off-by Antonin Godard <[email protected]>--- documentation/migration-guides/migration-5.2.rst | 10 +++++++++- documentation/migration-guides/release-notes-5.2.rst | 7 ++----- 2 files changed, 11 insertions(+), 6 deletions(-)documentation/migration-guides/migration-5.2.rst +8
-0@@ -193,6 +193,14 @@ anymore:: This was rarely used in the core repositories, and this removal simplifies the code logic in several places. +If one of your recipes is still using this mechanism, you can split the +code source fetching into two separate entries:: + + SRC_URI = "git://some.host/somepath;branch=branchX;name=nameX \ + git://some.host/somepath;branch=branchY;name=nameY" + SRCREV_nameX = "xxxxxxxxxxxxxxxxxxxx" + SRCREV_nameY = "yyyyyyyyyyyyyyyyyyyy" + Git fetcher: Branch parameter now required in :term:`SRC_URI` ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~documentation/migration-guides/migration-5.2.rst The following recipes have been removed in this release: · line 253
Quoted 5 lines
documentation/migration-guides/migration-5.2.rst +1
-1@@ -242,7 +250,7 @@ The following recipes have been removed in this release: :oe_git:`openembedded-core </openembedded-core>` or :oe_git:`meta-openembedded </meta-openembedded>`. - ``blktool``: It was created in 2004 as an alternative to hdparm and never - updated since (while :wikipedia:`hdparm <Hdparm>` remains in active. + updated since (while :wikipedia:`hdparm <Hdparm>` remains in active).Mmmm, should we say
Quoted 3 lines
s/remains in active/remains active/ ?
Slow brain day so maybe my intuition is wrong today :)
No, the slowness seems to have been on my side the other day, thanks ;) Will fix.
Quoted 14 lines
Quoted 14 lines
documentation/migration-guides/migration-5.2.rst +0
-0- ``cargo-c-native``: converted to a target recipe and renamed to ``cargo-c``.documentation/migration-guides/release-notes-5.2.rst +1
-1@@ -44,11 +44,10 @@ New Features / Enhancements in |yocto-ver| uses. - The :term:`GRUB_MKIMAGE_OPTS` can be used to control the flags to the - ``grub-mkimage`` command in the context of the Grub recipe (``grub-efi``). + ``grub-mkimage`` command in the context of the GRUB recipe (``grub-efi``).
Quoted 7 lines
documentation/migration-guides/release-notes-5.2.rst New Features / Enhancements in |yocto-ver| · line 50
Quoted 4 lines
documentation/migration-guides/release-notes-5.2.rst +1
-2- The :term:`SPDX_PACKAGE_VERSION` variable controls the package version as - seen in the SPDX 3.0 JSON output (``software_packageVersion``). The default - value for this variable is :term:`PV`. + seen in the SPDX 3.0 JSON output (``software_packageVersion``).The indentation seems odd here (but to be fair, it is also in the part of the diff that is being removed).
Hmm, already on the previous patches you noticed this I think, but after verifying in the code, the alignment was proper. Actually, I may have already seen this in your answers before, I wonder if the problem is on my side or yours. Exporting the email in an mbox file does not show any issue as well.
Antonin
Signature · 3 lines
Antonin Godard, Bootlin Embedded Linux and Kernel engineering https://bootlin.com
Re: [PATCH 2/2] migration-guides/{migration,release-note}-5.2: improvements and fixes
Hi Antonin,
Quoted 34 lines · Antonin Godard
Hi Quentin,
Quoted 31 lines · Quentin Schulz
Hi Antonin,
Quoted 28 lines · Antonin Godard
Address some of the reviews received on the release notes and migration guide for 5.2:
- Remove the wget fetcher addition, I misread commit
0a9f90ff658e("tests/fetch: support setting PV in the wget fetcher") from BitBake, and it actually affects the tests for the wget fetcher, not the fetcher itself.
- Add a way to transition from the branch=nameX,nameY syntax. From what I have tested, I achieve the same behavior when using one or the other syntax.
- Remove the default value forSPDX_PACKAGE_VERSIONin the release note.
- Fix a couple of typos.Suggested-by Quentin Schulz <[email protected]>Signed-off-by Antonin Godard <[email protected]>--- documentation/migration-guides/migration-5.2.rst | 10 +++++++++- documentation/migration-guides/release-notes-5.2.rst | 7 ++----- 2 files changed, 11 insertions(+), 6 deletions(-)documentation/migration-guides/migration-5.2.rst +0
-0@@ -193,6 +193,14 @@ anymore:: This was rarely used in the core repositories, and this removal simplifies the code logic in several places.
Quoted 8 lines
Quoted 8 lines
documentation/migration-guides/migration-5.2.rst anymore:: · line 203
Quoted 8 lines
documentation/migration-guides/migration-5.2.rst +8
-0+If one of your recipes is still using this mechanism, you can split the +code source fetching into two separate entries:: + + SRC_URI = "git://some.host/somepath;branch=branchX;name=nameX \ + git://some.host/somepath;branch=branchY;name=nameY" + SRCREV_nameX = "xxxxxxxxxxxxxxxxxxxx" + SRCREV_nameY = "yyyyyyyyyyyyyyyyyyyy" +
Just to make sure we don't miss this for the v2, but this "solution" was rejected by Richard as non-working, see https://lore.kernel.org/yocto-docs/9c3af54f0c74af0b9d0887e0408fd591e936c4da.camel@linuxfoundation.org/T/#u
Cheers,
Quentin
Quoted 40 lines
Quoted 12 lines
documentation/migration-guides/migration-5.2.rst The following recipes have been removed in this release: · line 253
Quoted 9 lines
documentation/migration-guides/migration-5.2.rst +1
-1Git fetcher: Branch parameter now required in :term:`SRC_URI` ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~@@ -242,7 +250,7 @@ The following recipes have been removed in this release: :oe_git:`openembedded-core </openembedded-core>` or :oe_git:`meta-openembedded </meta-openembedded>`. - ``blktool``: It was created in 2004 as an alternative to hdparm and never - updated since (while :wikipedia:`hdparm <Hdparm>` remains in active. + updated since (while :wikipedia:`hdparm <Hdparm>` remains in active).Mmmm, should we say
Quoted 3 lines
s/remains in active/remains active/ ?
Slow brain day so maybe my intuition is wrong today :)
No, the slowness seems to have been on my side the other day, thanks ;) Will fix.
Quoted 14 lines
Quoted 14 lines
documentation/migration-guides/migration-5.2.rst +0
-0- ``cargo-c-native``: converted to a target recipe and renamed to ``cargo-c``.documentation/migration-guides/release-notes-5.2.rst +1
-1@@ -44,11 +44,10 @@ New Features / Enhancements in |yocto-ver| uses. - The :term:`GRUB_MKIMAGE_OPTS` can be used to control the flags to the - ``grub-mkimage`` command in the context of the Grub recipe (``grub-efi``). + ``grub-mkimage`` command in the context of the GRUB recipe (``grub-efi``).Quoted 7 lines
documentation/migration-guides/release-notes-5.2.rst New Features / Enhancements in |yocto-ver| · line 50
Quoted 4 lines
documentation/migration-guides/release-notes-5.2.rst +1
-2- The :term:`SPDX_PACKAGE_VERSION` variable controls the package version as - seen in the SPDX 3.0 JSON output (``software_packageVersion``). The default - value for this variable is :term:`PV`. + seen in the SPDX 3.0 JSON output (``software_packageVersion``).The indentation seems odd here (but to be fair, it is also in the part of the diff that is being removed).
Quoted 5 lines
Hmm, already on the previous patches you noticed this I think, but after verifying in the code, the alignment was proper. Actually, I may have already seen this in your answers before, I wonder if the problem is on my side or yours. Exporting the email in an mbox file does not show any issue as well.
Checked myself in the tree directly, indeed, 3 whitespaces followed by a dash, then two whitespaces and then "The". The next line is starting after 6 whitespaces so the indentation is proper.
I looked on lore.kernel.org and it seems like your patch was fine, and then looking into my answer, it's oddly indented again. Maybe my mail client doing something, or my mail server doing weird things again. Please ignore then :)
Cheers,
Quentin
Re: [PATCH 2/2] migration-guides/{migration,release-note}-5.2: improvements and fixes
Hi Quentin,
Quoted 37 lines · Quentin Schulz
Hi Antonin,
Quoted 34 lines · Antonin Godard
Hi Quentin,
Quoted 31 lines · Quentin Schulz
Hi Antonin,
Quoted 28 lines · Antonin Godard
Address some of the reviews received on the release notes and migration guide for 5.2:
- Remove the wget fetcher addition, I misread commit
0a9f90ff658e("tests/fetch: support setting PV in the wget fetcher") from BitBake, and it actually affects the tests for the wget fetcher, not the fetcher itself.
- Add a way to transition from the branch=nameX,nameY syntax. From what I have tested, I achieve the same behavior when using one or the other syntax.
- Remove the default value forSPDX_PACKAGE_VERSIONin the release note.
- Fix a couple of typos.Suggested-by Quentin Schulz <[email protected]>Signed-off-by Antonin Godard <[email protected]>--- documentation/migration-guides/migration-5.2.rst | 10 +++++++++- documentation/migration-guides/release-notes-5.2.rst | 7 ++----- 2 files changed, 11 insertions(+), 6 deletions(-)documentation/migration-guides/migration-5.2.rst +0
-0@@ -193,6 +193,14 @@ anymore:: This was rarely used in the core repositories, and this removal simplifies the code logic in several places.
Quoted 12 lines
Quoted 8 lines
Quoted 8 lines
documentation/migration-guides/migration-5.2.rst anymore:: · line 203
Quoted 8 lines
documentation/migration-guides/migration-5.2.rst +8
-0+If one of your recipes is still using this mechanism, you can split the +code source fetching into two separate entries:: + + SRC_URI = "git://some.host/somepath;branch=branchX;name=nameX \ + git://some.host/somepath;branch=branchY;name=nameY" + SRCREV_nameX = "xxxxxxxxxxxxxxxxxxxx" + SRCREV_nameY = "yyyyyyyyyyyyyyyyyyyy" +Just to make sure we don't miss this for the v2, but this "solution" was rejected by Richard as non-working, see
https://lore.kernel.org/yocto-docs/9c3af54f0c74af0b9d0887e0408fd591e936c4da.camel@linuxfoundation.org/T/#u
Hm, but there are recipes using this in oe-core like [1]. Does that mean that these are broken at the moment?
In my testing, I could properly fetch and unpack such recipes with one syntax or the other. Indeed, after unpacking, only the source code of the first item of SRC_URI is unpacked and present in the WORKDIR, yet BitBake does not complain about the second one or produce any kind of error. So I'm not sure of what to conclude on this?
I'm not sure what is the best to say in the release notes.
Antonin
Signature · 3 lines
Antonin Godard, Bootlin Embedded Linux and Kernel engineering https://bootlin.com
Re: [PATCH 2/2] migration-guides/{migration,release-note}-5.2: improvements and fixes
Hi Antonin,
Quoted 53 lines · Antonin Godard
Hi Quentin,
Quoted 37 lines · Quentin Schulz
Hi Antonin,
Quoted 34 lines · Antonin Godard
Hi Quentin,
Quoted 31 lines · Quentin Schulz
Hi Antonin,
Quoted 28 lines · Antonin Godard
Address some of the reviews received on the release notes and migration guide for 5.2:
- Remove the wget fetcher addition, I misread commit
0a9f90ff658e("tests/fetch: support setting PV in the wget fetcher") from BitBake, and it actually affects the tests for the wget fetcher, not the fetcher itself.
- Add a way to transition from the branch=nameX,nameY syntax. From what I have tested, I achieve the same behavior when using one or the other syntax.
- Remove the default value forSPDX_PACKAGE_VERSIONin the release note.
- Fix a couple of typos.Suggested-by Quentin Schulz <[email protected]>Signed-off-by Antonin Godard <[email protected]>--- documentation/migration-guides/migration-5.2.rst | 10 +++++++++- documentation/migration-guides/release-notes-5.2.rst | 7 ++----- 2 files changed, 11 insertions(+), 6 deletions(-)documentation/migration-guides/migration-5.2.rst +0
-0@@ -193,6 +193,14 @@ anymore:: This was rarely used in the core repositories, and this removal simplifies the code logic in several places.Quoted 12 lines
Quoted 8 lines
Quoted 8 lines
documentation/migration-guides/migration-5.2.rst anymore:: · line 203
Quoted 8 lines
documentation/migration-guides/migration-5.2.rst +8
-0+If one of your recipes is still using this mechanism, you can split the +code source fetching into two separate entries:: + + SRC_URI = "git://some.host/somepath;branch=branchX;name=nameX \ + git://some.host/somepath;branch=branchY;name=nameY" + SRCREV_nameX = "xxxxxxxxxxxxxxxxxxxx" + SRCREV_nameY = "yyyyyyyyyyyyyyyyyyyy" +Just to make sure we don't miss this for the v2, but this "solution" was rejected by Richard as non-working, see
https://lore.kernel.org/yocto-docs/9c3af54f0c74af0b9d0887e0408fd591e936c4da.camel@linuxfoundation.org/T/#u
Quoted 9 lines
Hm, but there are recipes using this in oe-core like [1]. Does that mean that these are broken at the moment?
In my testing, I could properly fetch and unpack such recipes with one syntax or the other. Indeed, after unpacking, only the source code of the first item of
SRC_URIis unpacked and present in the WORKDIR, yet BitBake does not complain about the second one or produce any kind of error. So I'm not sure of what to conclude on this?
I think what Richard meant was that it's brittle/finicky/unstable to use twice the same git repo in SRC_URI but with a different branch/srcrev?
And that it's believed nobody did need that behavior (only the kernel recipe was using that in OE-Core, ever).
Quoted 2 lines
I'm not sure what is the best to say in the release notes.
I guess he suggests to simply not document how to fix it because it's "incorrect" (my understanding of what he said) and virtually nobody was impacted.
Cheers,
Quentin