variables.rst: document OEQA_REPRODUCIBLE_TEST_TARGET and OEQA_REPRODUCIBLE_TEST_SSTATE_TARGETS
PATCH 1/2 variables.rst: document OEQA_REPRODUCIBLE_TEST_TARGET and OEQA_REPRODUCIBLE_TEST_SSTATE_TARGETS
From: Mikko Rapeli <[email protected]>
They control which build targets to use when testing build reproducibility and which build targets can reuse sstate cache during the test.
--- documentation/ref-manual/variables.rst | 9 +++++++++ 1 file changed, 9 insertions(+)
documentation/ref-manual/variables.rst +9 -0
@@ -5541,6 +5541,15 @@ system and gives an overview of their function and contents. For additional information on how this variable is used, see the initialization script. + :term:`OEQA_REPRODUCIBLE_TEST_TARGET` + Set build target for build reproducibility testing. By default + all available recipes are compile with "bitbake world", see also ``EXCLUDE_FROM_WORLD`` + and :doc:`/test-manual/reproducible-builds`. + + :term:`OEQA_REPRODUCIBLE_TEST_SSTATE_TARGETS` + Set build targets which can be rebuild using :ref:`shared state <overview-manual/concepts:shared state cache>` + when running build reproducibility test. See :doc:`/test-manual/reproducible-builds`. + :term:`OLDEST_KERNEL` Declares the oldest version of the Linux kernel that the produced binaries must support. This variable is passed into the build of the
Signature · 1 line
2.34.1
PATCH 2/2 reproducible-builds.rst: document OEQA_REPRODUCIBLE_TEST_TARGET and OEQA_REPRODUCIBLE_TEST_SSTATE_TARGETS
From: Mikko Rapeli <[email protected]>
They are used to fine tune build reproducibility test for different build targets than "bitbake world" and to define which recipes can be rebuild using sstate cache.
These are useful when ramping up build reproducibility in complex build configurations where "bitbake world" has too many failures.
--- documentation/test-manual/reproducible-builds.rst | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-)
documentation/test-manual/reproducible-builds.rst +5 -3
@@ -103,10 +103,12 @@ run:: oe-selftest -r reproducible.ReproducibleTests.test_reproducible_builds This defaults to including a ``world`` build so, if other layers are added, it would -also run the tests for recipes in the additional layers. The first build will be -run using :ref:`Shared State <overview-manual/concepts:Shared State>` if +also run the tests for recipes in the additional layers. Different build targets +can be defined using ``OEQA_REPRODUCIBLE_TEST_TARGET`` variable in ``local.conf``. +The first build will be run using :ref:`Shared State <overview-manual/concepts:Shared State>` if available, the second build explicitly disables -:ref:`Shared State <overview-manual/concepts:Shared State>` and builds on the +:ref:`Shared State <overview-manual/concepts:Shared State>` except for recipes defined in +``OEQA_REPRODUCIBLE_TEST_SSTATE_TARGETS`` variable, and builds on the specific host the build is running on. This means we can test reproducibility builds between different host distributions over time on the Autobuilder.
Signature · 1 line
2.34.1
Re: [docs] [PATCH 2/2] reproducible-builds.rst: document OEQA_REPRODUCIBLE_TEST_TARGET and OEQA_REPRODUCIBLE_TEST_SSTATE_TARGETS
Hi again Mikko
Quoted 19 lines · Mikko Rapeli
From: Mikko Rapeli <[email protected]>
They are used to fine tune build reproducibility test for different build targets than "bitbake world" and to define which recipes can be rebuild using sstate cache.
These are useful when ramping up build reproducibility in complex build configurations where "bitbake world" has too many failures.
Signed-off-by Mikko Rapeli <[email protected]>--- documentation/test-manual/reproducible-builds.rst | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-)documentation/test-manual/reproducible-builds.rst +0
-0
documentation/test-manual/reproducible-builds.rst run:: · line 107
Quoted 7 lines
documentation/test-manual/reproducible-builds.rst +2
-2@@ -103,10 +103,12 @@ run:: oe-selftest -r reproducible.ReproducibleTests.test_reproducible_builds This defaults to including a ``world`` build so, if other layers are added, it would -also run the tests for recipes in the additional layers. The first build will be -run using :ref:`Shared State <overview-manual/concepts:Shared State>` if +also run the tests for recipes in the additional layers. Different build targets +can be defined using ``OEQA_REPRODUCIBLE_TEST_TARGET`` variable in ``local.conf``.
/s/using ``OEQA_REPRODUCIBLE_TEST_TARGET``/using the :term:OEQA_REPRODUCIBLE_TEST_TARGET/
documentation/test-manual/reproducible-builds.rst run:: · line 111
Quoted 5 lines
documentation/test-manual/reproducible-builds.rst +3
-1+The first build will be run using :ref:`Shared State <overview-manual/concepts:Shared State>` if available, the second build explicitly disables -:ref:`Shared State <overview-manual/concepts:Shared State>` and builds on the +:ref:`Shared State <overview-manual/concepts:Shared State>` except for recipes defined in +``OEQA_REPRODUCIBLE_TEST_SSTATE_TARGETS`` variable, and builds on the
Same comment. I will fix both.
Merged both commits into master-next.
Thanks again!
Cheers
Michael.
Signature · 3 lines
Michael Opdenacker, Bootlin Embedded Linux and Kernel engineering https://bootlin.com
Hi Mikko,
Many thanks for the patch!
Quoted 16 lines · Mikko Rapeli
From: Mikko Rapeli <[email protected]>
They control which build targets to use when testing build reproducibility and which build targets can reuse sstate cache during the test.
Signed-off-by Mikko Rapeli <[email protected]>--- documentation/ref-manual/variables.rst | 9 +++++++++ 1 file changed, 9 insertions(+)documentation/ref-manual/variables.rst +0
-0
documentation/ref-manual/variables.rst system and gives an overview of their function and contents. · line 5546
Quoted 6 lines
documentation/ref-manual/variables.rst +3
-0@@ -5541,6 +5541,15 @@ system and gives an overview of their function and contents. For additional information on how this variable is used, see the initialization script. + :term:`OEQA_REPRODUCIBLE_TEST_TARGET` + Set build target for build reproducibility testing. By default + all available recipes are compile with "bitbake world", see also ``EXCLUDE_FROM_WORLD``
s/compile/compiled/
You can also add a variable reference: :term:EXCLUDE_FROM_WORLD.
documentation/ref-manual/variables.rst system and gives an overview of their function and contents. · line 5550
Quoted 4 lines
documentation/ref-manual/variables.rst +4
-0+ and :doc:`/test-manual/reproducible-builds`. + + :term:`OEQA_REPRODUCIBLE_TEST_SSTATE_TARGETS` + Set build targets which can be rebuild using :ref:`shared state <overview-manual/concepts:shared state cache>`
s/rebuild/rebuilt/
documentation/ref-manual/variables.rst system and gives an overview of their function and contents. · line 5551
Quoted 1 line
documentation/ref-manual/variables.rst +1
-0+ when running build reproducibility test. See :doc:`/test-manual/reproducible-builds`.
s/test/tests/?
I'll take care of the updates. No need to submit a V2.
Thanks again,
Michael.
Signature · 3 lines
Michael Opdenacker, Bootlin Embedded Linux and Kernel engineering https://bootlin.com