overview: Add note about non-reproducibility side effects
RFC 1/1 overview: Add note about non-reproducibility side effects
Adds an additional note about some of the side effects that can occur if recipes are not reproducible and hash equivalence is enabled.
--- documentation/overview-manual/concepts.rst | 8 ++++++++ 1 file changed, 8 insertions(+)
documentation/overview-manual/concepts.rst +8 -0
@@ -1963,6 +1963,14 @@ task output from the Shared State cache. the stability of the task's output hash. Therefore, the effectiveness of Hash Equivalence strongly depends on it. + Recipes that are not reproducible may have undesired behavior if hash + equivalence is enabled, since the non-reproducible diverging output maybe be + remapped to an older sstate object in the cache by the server. If a recipe + is non-reprodible in trivial ways, such as different timestamps this is + likely not a problem. However recipes that have more dramatic changes (such + as completely different file names) will likely outright fail since the + downstream sstate objects not actually equivalent to what was just built. + This applies to multiple scenarios: - A "trivial" change to a recipe that doesn't impact its generated output,
Signature · 1 line
2.34.1
Hi Joshua!
Quoted 13 lines · Joshua Watt
Adds an additional note about some of the side effects that can occur if recipes are not reproducible and hash equivalence is enabled.
Signed-off-by Joshua Watt <[email protected]>--- documentation/overview-manual/concepts.rst | 8 ++++++++ 1 file changed, 8 insertions(+)documentation/overview-manual/concepts.rst +0
-0
documentation/overview-manual/concepts.rst task output from the Shared State cache. · line 1969
Quoted 7 lines
documentation/overview-manual/concepts.rst +4
-0@@ -1963,6 +1963,14 @@ task output from the Shared State cache. the stability of the task's output hash. Therefore, the effectiveness of Hash Equivalence strongly depends on it. + Recipes that are not reproducible may have undesired behavior if hash + equivalence is enabled, since the non-reproducible diverging output maybe be + remapped to an older sstate object in the cache by the server. If a recipe + is non-reprodible in trivial ways, such as different timestamps this is
s/non-reprodible/non-reproducible/
documentation/overview-manual/concepts.rst task output from the Shared State cache. · line 1972
Quoted 3 lines
documentation/overview-manual/concepts.rst +3
-0+ likely not a problem. However recipes that have more dramatic changes (such + as completely different file names) will likely outright fail since the + downstream sstate objects not actually equivalent to what was just built.
s/objects not/objects are not/ ?
Best regards
Ulrich
Quoted 4 lines
documentation/overview-manual/concepts.rst +1
-0+ This applies to multiple scenarios: - A "trivial" change to a recipe that doesn't impact its generated output,
Signature · 4 lines
Pengutronix e.K. | Ulrich Ölmann | Industrial Linux Solutions | http://www.pengutronix.de/ | Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0 | Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-5555 |
Quoted 19 lines · Ulrich Ölmann
Hi Joshua!
Quoted 16 lines · Joshua Watt
Adds an additional note about some of the side effects that can occur if recipes are not reproducible and hash equivalence is enabled.
Signed-off-by Joshua Watt <[email protected]>--- documentation/overview-manual/concepts.rst | 8 ++++++++ 1 file changed, 8 insertions(+)documentation/overview-manual/concepts.rst +0
-0@@ -1963,6 +1963,14 @@ task output from the Shared State cache. the stability of the task's output hash. Therefore, the effectiveness of Hash Equivalence strongly depends on it.
Quoted 6 lines
documentation/overview-manual/concepts.rst task output from the Shared State cache. · line 1969
Quoted 4 lines
documentation/overview-manual/concepts.rst +4
-0+ Recipes that are not reproducible may have undesired behavior if hash + equivalence is enabled, since the non-reproducible diverging output maybe be + remapped to an older sstate object in the cache by the server. If a recipe + is non-reprodible in trivial ways, such as different timestamps this iss/non-reprodible/non-reproducible/
I would also include an additional comma after "timestamps".
Quoted 8 lines
documentation/overview-manual/concepts.rst task output from the Shared State cache. · line 1972
Quoted 3 lines
documentation/overview-manual/concepts.rst +3
-0+ likely not a problem. However recipes that have more dramatic changes (such + as completely different file names) will likely outright fail since the + downstream sstate objects not actually equivalent to what was just built.s/objects not/objects are not/ ?
Best regards
Ulrich
- Roland
Quoted 19 lines
Quoted 4 lines
documentation/overview-manual/concepts.rst +1
-0+ This applies to multiple scenarios: - A "trivial" change to a recipe that doesn't impact its generated output,Signature · 13 lines
Pengutronix e.K. | Ulrich Ölmann | Industrial Linux Solutions | http://www.pengutronix.de/ | Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0 | Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-5555 | -=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#4300): https://lists.yoctoproject.org/g/docs/message/4300 Mute This Topic: https://lists.yoctoproject.org/mt/101598940/5053951 Group Owner: [email protected] Unsubscribe: https://lists.yoctoproject.org/g/docs/unsub [[email protected]] -=-=-=-=-=-=-=-=-=-=-=-
Signature · 4 lines
Roland Hieber, Pengutronix e.K. | [email protected] | Steuerwalder Str. 21 | https://www.pengutronix.de/ | 31137 Hildesheim, Germany | Phone: +49-5121-206917-0 | Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-5555 |
PATCH v2 1/1 overview: Add note about non-reproducibility side effects
In reply to Joshua WattAdds an additional note about some of the side effects that can occur if recipes are not reproducible and hash equivalence is enabled.
--- documentation/overview-manual/concepts.rst | 9 +++++++++ 1 file changed, 9 insertions(+)
documentation/overview-manual/concepts.rst +9 -0
@@ -1963,6 +1963,15 @@ task output from the Shared State cache. the stability of the task's output hash. Therefore, the effectiveness of Hash Equivalence strongly depends on it. + Recipes that are not reproducible may have undesired behavior if hash + equivalence is enabled, since the non-reproducible diverging output maybe be + remapped to an older sstate object in the cache by the server. If a recipe + is non-reproducible in trivial ways, such as different timestamps, this is + likely not a problem. However recipes that have more dramatic changes (such + as completely different file names) will likely outright fail since the + downstream sstate objects are not actually equivalent to what was just + built. + This applies to multiple scenarios: - A "trivial" change to a recipe that doesn't impact its generated output,
Signature · 1 line
2.34.1
Hi Joshua
Many thanks for the update.
Roland, Ulrich, thanks for the reviews too!
Quoted 13 lines · Joshua Watt
Adds an additional note about some of the side effects that can occur if recipes are not reproducible and hash equivalence is enabled.
Signed-off-by Joshua Watt <[email protected]>--- documentation/overview-manual/concepts.rst | 9 +++++++++ 1 file changed, 9 insertions(+)documentation/overview-manual/concepts.rst +0
-0
documentation/overview-manual/concepts.rst task output from the Shared State cache. · line 1968
Quoted 6 lines
documentation/overview-manual/concepts.rst +3
-0@@ -1963,6 +1963,15 @@ task output from the Shared State cache. the stability of the task's output hash. Therefore, the effectiveness of Hash Equivalence strongly depends on it. + Recipes that are not reproducible may have undesired behavior if hash + equivalence is enabled, since the non-reproducible diverging output maybe be + remapped to an older sstate object in the cache by the server.
Wouldn't it be very unlikely to have the same output hash anyway?
documentation/overview-manual/concepts.rst task output from the Shared State cache. · line 1974
Quoted 7 lines
documentation/overview-manual/concepts.rst +6
-0If a recipe + is non-reproducible in trivial ways, such as different timestamps, this is + likely not a problem. However recipes that have more dramatic changes (such + as completely different file names) will likely outright fail since the + downstream sstate objects are not actually equivalent to what was just + built. +
Anyway
and merged into master-next.
Thanks again
Michael.
Signature · 3 lines
Michael Opdenacker, Bootlin Embedded Linux and Kernel engineering https://bootlin.com