Openembedded Core Discussions
 help / color / mirror / Atom feed
* oe-selftest reproducible.ReproducibleTests.test_reproducible_builds appears to hardcode important tunable params
@ 2024-01-26 11:09 Joakim Tjernlund
  2024-01-26 12:18 ` [OE-core] " Alexander Kanavin
  0 siblings, 1 reply; 13+ messages in thread
From: Joakim Tjernlund @ 2024-01-26 11:09 UTC (permalink / raw)
  To: openembedded-core@lists.openembedded.org

In poky/meta/lib/oeqa/selftest/context.py there is:
        if "buildhistory.bbclass" in self.tc.td["BBINCLUDED"]:
            self.tc.logger.error("You have buildhistory enabled already and this isn't recommended for selftest, please disable it first.")
            raise OEQAPreRun

        if "rm_work.bbclass" in self.tc.td["BBINCLUDED"]:
            self.tc.logger.error("You have rm_work enabled which isn't recommended while running oe-selftest. Please disable it before continuing.")
            raise OEQAPreRun

        if "PRSERV_HOST" in self.tc.td:
            self.tc.logger.error("Please unset PRSERV_HOST in order to run oe-selftest")
            raise OEQAPreRun

        if "SANITY_TESTED_DISTROS" in self.tc.td:
            self.tc.logger.error("Please unset SANITY_TESTED_DISTROS in order to run oe-selftest")
            raise OEQAPreRun

I see not way to disable/unset any of these vars short of modify the src for the original machine, make the src
tree "dirty" before running the test.

In meta/lib/oeqa/selftest/cases/reproducible.py there is:
     config = textwrap.dedent('''\
            PACKAGE_CLASSES = "{package_classes}"
            INHIBIT_PACKAGE_STRIP = "1"
            TMPDIR = "{tmpdir}"
            LICENSE_FLAGS_ACCEPTED = "commercial"
            DISTRO_FEATURES:append = ' systemd pam'
            USERADDEXTENSION = "useradd-staticids"
            USERADD_ERROR_DYNAMIC = "skip"
            USERADD_UID_TABLES += "files/static-passwd"
            USERADD_GID_TABLES += "files/static-group"

These are hardcoded settings too of which some could need need tewaking, DISTRO_FEATURES for sure.

So reproducible builds does not seem usable outside poky or am I missing something here ?

 Jocke

^ permalink raw reply	[flat|nested] 13+ messages in thread

end of thread, other threads:[~2024-01-29 17:41 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-01-26 11:09 oe-selftest reproducible.ReproducibleTests.test_reproducible_builds appears to hardcode important tunable params Joakim Tjernlund
2024-01-26 12:18 ` [OE-core] " Alexander Kanavin
2024-01-26 13:21   ` Joakim Tjernlund
2024-01-26 13:33     ` Alexander Kanavin
2024-01-26 14:04       ` Joakim Tjernlund
2024-01-26 14:18         ` Mikko Rapeli
2024-01-26 17:24           ` Joakim Tjernlund
2024-01-26 14:52       ` Joakim Tjernlund
2024-01-26 14:55         ` Alexander Kanavin
2024-01-26 15:14           ` Joakim Tjernlund
2024-01-26 15:21             ` Alexander Kanavin
2024-01-29 16:19               ` Joakim Tjernlund
2024-01-29 17:41                 ` Alexander Kanavin

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox