Skip to contentSkip to conversation

meta-selftest/staticids: Add dhcpcd

PATCH In review Richard Purdie 3 participants 5 messages Dec 27, 2020 – Dec 31, 2020

lore
Share & tools
lore
#0 lore raw

PATCH 1/2 meta-selftest/staticids: Add dhcpcd

Add dhcpc's uid/gid to the static configs used by meta-selftest for testing since dhcpc was added to OE-Core.

---
 meta-selftest/files/static-group  | 2 +-
 meta-selftest/files/static-passwd | 1 +
 2 files changed, 2 insertions(+), 1 deletion(-)
meta-selftest/files/static-group +1 -1
index 9213b8e9bc0..da4dab53733 100644
@@ -11,4 +11,4 @@ avahi:x:509:
 avahi-autoipd:x:510:
 rpc:x:511:
 rpcuser:x:513:
-
+dhcpcd:x:514:
meta-selftest/files/static-passwd +1 -0
index 412f85d469f..6ce2886ceed 100644
@@ -9,3 +9,4 @@ avahi-autoipd:x:510:510::/:/bin/nologin
 rpc:x:511:511::/:/bin/nologin
 distcc:x:512:nogroup::/:/bin/nologin
 rpcuser:x:513:513::/var/lib/nfs:/bin/nologin
+dhcpcd:x:514:514::/:/bin/nologin
Signature · 1 line
2.27.0
#1 lore raw

PATCH 2/2 selftest/reproducible: Add useradd-staticids to reproducible builds tests

Its surprising we've made it this far without this, add in some specific uid/gid settings to ensure these don't cause false positives to the tests.

---
 meta/lib/oeqa/selftest/cases/reproducible.py | 4 ++++
 1 file changed, 4 insertions(+)
meta/lib/oeqa/selftest/cases/reproducible.py +4 -0
index e3597d5081a..eee494e5cc8 100644
@@ -249,6 +249,10 @@ class ReproducibleTests(OESelftestTestCase):
             TMPDIR = "{tmpdir}"
             LICENSE_FLAGS_WHITELIST = "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"
             ''').format(package_classes=' '.join('package_%s' % c for c in self.package_classes),
                         tmpdir=tmpdir)
 
Signature · 1 line
2.27.0
#2 lore raw

Re: [OE-core] [PATCH 2/2] selftest/reproducible: Add useradd-staticids to reproducible builds tests

I wonder if this also addresses some of the existing entries on the exception list?

Alex

Quoted 32 lines · Richard Purdie

Its surprising we've made it this far without this, add in some specific uid/gid settings to ensure these don't cause false positives to the tests.

---
 meta/lib/oeqa/selftest/cases/reproducible.py | 4 ++++
 1 file changed, 4 insertions(+)
meta/lib/oeqa/selftest/cases/reproducible.py +4 -1
index e3597d5081a..eee494e5cc8 100644
@@ -249,6 +249,10 @@ class ReproducibleTests(OESelftestTestCase):
             TMPDIR = "{tmpdir}"
             LICENSE_FLAGS_WHITELIST = "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"
             ''').format(package_classes=' '.join('package_%s' % c for c
 in self.package_classes),
                         tmpdir=tmpdir)
 
--

2.27.0

#3 lore raw

Re: [OE-core] [PATCH 2/2] selftest/reproducible: Add useradd-staticids to reproducible builds tests

Quoted 2 lines · Alexander Kanavin

I wonder if this also addresses some of the existing entries on the exception list?

I've wondered that too. We probably need to analyse the results of some of the builds and see if any are reproducing that didn't previously...

We do have a couple of intermittent issues that are showing in world builds, one in grub:

https://autobuilder.yocto.io/pub/repro-fail/oe-reproducible-20201228-mcoi5qk0/packages/diff-html/

looking likely due to changes in:

/usr/src/debug/grub-efi/2.04-r0/grub-2.04/grub-core/unidata.c

and one in initramfs-base:

https://autobuilder.yocto.io/pub/repro-fail/oe-reproducible-20201223-og6v1hn1/packages/diff-html/

where the write bits are masked out on /dev/console, something to do with umask handling in pseudo on tumbleweed-ty-3.

I think one has a bug, the other does not (yet).

Cheers,

Richard

#4 lore raw

Re: [OE-core] [PATCH 2/2] selftest/reproducible: Add useradd-staticids to reproducible builds tests

Quoted 30 lines

-----Original Message-----
From: Richard Purdie <[email protected]>
Sent: Wednesday, December 30, 2020 10:40 PM
To: Alexander Kanavin <[email protected]>
Cc: [email protected]; Saini, Naveen Kumar <[email protected]>
Subject: Re: [OE-core] [PATCH 2/2] selftest/reproducible: Add useradd- staticids to reproducible builds tests

Quoted 2 lines · Alexander Kanavin

I wonder if this also addresses some of the existing entries on the exception list?

I've wondered that too. We probably need to analyse the results of some of the builds and see if any are reproducing that didn't previously...

We do have a couple of intermittent issues that are showing in world builds, one in grub:

https://autobuilder.yocto.io/pub/repro-fail/oe-reproducible-20201228-
mcoi5qk0/packages/diff-html/

looking likely due to changes in:

/usr/src/debug/grub-efi/2.04-r0/grub-2.04/grub-core/unidata.c

and one in initramfs-base:

Quoted 7 lines

https://autobuilder.yocto.io/pub/repro-fail/oe-reproducible-20201223-
og6v1hn1/packages/diff-html/

where the write bits are masked out on /dev/console, something to do with umask handling in pseudo on tumbleweed-ty-3.

I think one has a bug, the other does not (yet).

[SWAT] Already raised bugs for both.
grub : https://bugzilla.yoctoproject.org/show_bug.cgi?id=14167
Initramfs-boot: https://bugzilla.yoctoproject.org/show_bug.cgi?id=14162

Recently one more reproducibility failure observed with man-db package.
Looks like Owner and Group of files '/usr/bin/man' and '/usr/bin/mandb' are missing/differnet.
https://autobuilder.yocto.io/pub/repro-fail/oe-reproducible-20201230-cmrpjzcp/packages/diff-html/

Raised for this too.
https://bugzilla.yoctoproject.org/show_bug.cgi?id=14172

Already a bug#14159 exists for man-db-doc package.

Quoted 4 lines

Cheers,

Richard