Message ID | 20230823061025.3952909-1-mikko.rapeli@linaro.org |
---|---|
State | New |
Headers | show |
Series | [v2,1/9] core-image-minimal: increase extra space to pass df.py oeqa runtime test | expand |
Either you need to use a different image in testing, or add the needed pieces to this image in the same commit, explaining why. Adding extra space because you have a local, custom configuration where it is required is not correct. Alex On Wed, 23 Aug 2023 at 08:10, Mikko Rapeli <mikko.rapeli@linaro.org> wrote: > > testimage.bbclass requires that ssh communication with target works > and then it runs oeqa runtime tests with that. Tests like df.py > check that there is more than 5Mb free space on the rootfs on target. Sadly > latest core-image-minimal only has 1.5 Mb free space if > ssh-server-dropbear is added to it. Thus by default, core-image-minimal > is now failing oeqa rutime df.py test. > > Fix this by increasing core-image-minimal rootfs size by 5Mb if > testimage.bbclass is used which implies adding either > ssh-server-dropbear or ssh-server-openssh to the target rootfs. > > Signed-off-by: Mikko Rapeli <mikko.rapeli@linaro.org> > --- > meta/recipes-core/images/core-image-minimal.bb | 3 +++ > 1 file changed, 3 insertions(+) > > v2: no changes > > v1: https://lists.openembedded.org/g/openembedded-core/message/186423 > > diff --git a/meta/recipes-core/images/core-image-minimal.bb b/meta/recipes-core/images/core-image-minimal.bb > index 84343adcd8..c04612bc15 100644 > --- a/meta/recipes-core/images/core-image-minimal.bb > +++ b/meta/recipes-core/images/core-image-minimal.bb > @@ -10,3 +10,6 @@ inherit core-image > > IMAGE_ROOTFS_SIZE ?= "8192" > IMAGE_ROOTFS_EXTRA_SPACE:append = "${@bb.utils.contains("DISTRO_FEATURES", "systemd", " + 4096", "", d)}" > + > +# a bit more space needed for sshd to actually run the tests > +IMAGE_ROOTFS_EXTRA_SPACE:append = "${@bb.utils.contains("IMAGE_CLASSES", "testimage", " + 5120", "", d)}" > -- > 2.34.1 > > > -=-=-=-=-=-=-=-=-=-=-=- > Links: You receive all messages sent to this group. > View/Reply Online (#186549): https://lists.openembedded.org/g/openembedded-core/message/186549 > Mute This Topic: https://lists.openembedded.org/mt/100910038/1686489 > Group Owner: openembedded-core+owner@lists.openembedded.org > Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub [alex.kanavin@gmail.com] > -=-=-=-=-=-=-=-=-=-=-=- >
Hi, On Wed, Aug 23, 2023 at 08:44:33PM +0200, Alexander Kanavin wrote: > Either you need to use a different image in testing, or add the needed > pieces to this image in the same commit, explaining why. > > Adding extra space because you have a local, custom configuration > where it is required is not correct. Sorry I thought upstream would be testing core-image-minimal as well. If that's not the case, then just drop this. Some other images need to be tested instead, but I don't know which. Cheers, -Mikko > Alex > > On Wed, 23 Aug 2023 at 08:10, Mikko Rapeli <mikko.rapeli@linaro.org> wrote: > > > > testimage.bbclass requires that ssh communication with target works > > and then it runs oeqa runtime tests with that. Tests like df.py > > check that there is more than 5Mb free space on the rootfs on target. Sadly > > latest core-image-minimal only has 1.5 Mb free space if > > ssh-server-dropbear is added to it. Thus by default, core-image-minimal > > is now failing oeqa rutime df.py test. > > > > Fix this by increasing core-image-minimal rootfs size by 5Mb if > > testimage.bbclass is used which implies adding either > > ssh-server-dropbear or ssh-server-openssh to the target rootfs. > > > > Signed-off-by: Mikko Rapeli <mikko.rapeli@linaro.org> > > --- > > meta/recipes-core/images/core-image-minimal.bb | 3 +++ > > 1 file changed, 3 insertions(+) > > > > v2: no changes > > > > v1: https://lists.openembedded.org/g/openembedded-core/message/186423 > > > > diff --git a/meta/recipes-core/images/core-image-minimal.bb b/meta/recipes-core/images/core-image-minimal.bb > > index 84343adcd8..c04612bc15 100644 > > --- a/meta/recipes-core/images/core-image-minimal.bb > > +++ b/meta/recipes-core/images/core-image-minimal.bb > > @@ -10,3 +10,6 @@ inherit core-image > > > > IMAGE_ROOTFS_SIZE ?= "8192" > > IMAGE_ROOTFS_EXTRA_SPACE:append = "${@bb.utils.contains("DISTRO_FEATURES", "systemd", " + 4096", "", d)}" > > + > > +# a bit more space needed for sshd to actually run the tests > > +IMAGE_ROOTFS_EXTRA_SPACE:append = "${@bb.utils.contains("IMAGE_CLASSES", "testimage", " + 5120", "", d)}" > > -- > > 2.34.1 > > > > > > -=-=-=-=-=-=-=-=-=-=-=- > > Links: You receive all messages sent to this group. > > View/Reply Online (#186549): https://lists.openembedded.org/g/openembedded-core/message/186549 > > Mute This Topic: https://lists.openembedded.org/mt/100910038/1686489 > > Group Owner: openembedded-core+owner@lists.openembedded.org > > Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub [alex.kanavin@gmail.com] > > -=-=-=-=-=-=-=-=-=-=-=- > >
diff --git a/meta/recipes-core/images/core-image-minimal.bb b/meta/recipes-core/images/core-image-minimal.bb index 84343adcd8..c04612bc15 100644 --- a/meta/recipes-core/images/core-image-minimal.bb +++ b/meta/recipes-core/images/core-image-minimal.bb @@ -10,3 +10,6 @@ inherit core-image IMAGE_ROOTFS_SIZE ?= "8192" IMAGE_ROOTFS_EXTRA_SPACE:append = "${@bb.utils.contains("DISTRO_FEATURES", "systemd", " + 4096", "", d)}" + +# a bit more space needed for sshd to actually run the tests +IMAGE_ROOTFS_EXTRA_SPACE:append = "${@bb.utils.contains("IMAGE_CLASSES", "testimage", " + 5120", "", d)}"
testimage.bbclass requires that ssh communication with target works and then it runs oeqa runtime tests with that. Tests like df.py check that there is more than 5Mb free space on the rootfs on target. Sadly latest core-image-minimal only has 1.5 Mb free space if ssh-server-dropbear is added to it. Thus by default, core-image-minimal is now failing oeqa rutime df.py test. Fix this by increasing core-image-minimal rootfs size by 5Mb if testimage.bbclass is used which implies adding either ssh-server-dropbear or ssh-server-openssh to the target rootfs. Signed-off-by: Mikko Rapeli <mikko.rapeli@linaro.org> --- meta/recipes-core/images/core-image-minimal.bb | 3 +++ 1 file changed, 3 insertions(+) v2: no changes v1: https://lists.openembedded.org/g/openembedded-core/message/186423