Re: [yocto] [yocto-autobuilder-helper][PATCH] config.json: add a workaround for the "autobuilderlog.json" error
Le jeu. 19 oct. 2023 à 01:22, Jose Quaresma a écrit : > Hi Yoann, Hi! > I have found the same for BBLAYERS that was fixed [1] expanding any relative > path that could exist. > Maybe it would be better to also expand BB_LOGCONFIG when the newbuilddir > argument is present. > > [1] > https://git.yoctoproject.org/poky/commit/id=f5f465ff5777eb99941db3dda84e65d4699d97f7 OOOooohh That is interesting, Thanks! For reference, I've had to fix the URL: https://git.yoctoproject.org/poky/commit/?id=f5f465ff5777eb99941db3dda84e65d4699d97f7 And thank you for updating the bug :) > Jose > > Yoann Congal escreveu no dia quarta, 18/10/2023 à(s) > 23:28: >> >> For the reproducible-meta-oe builder, workaround the bug #15241 [1], by >> passing BB_LOGCONFIG through "readlink -f" to avoid relative reference >> to the main build dir. >> >> Also, switch from BBPATH to BUILDDIR to reference the main build dir. >> >> [1]: https://bugzilla.yoctoproject.org/show_bug.cgi?id=15241 >> >> Signed-off-by: Yoann Congal >> --- >> config.json | 20 ++-- >> 1 file changed, 10 insertions(+), 10 deletions(-) >> >> diff --git a/config.json b/config.json >> index c01a453..84da67b 100644 >> --- a/config.json >> +++ b/config.json >> @@ -303,7 +303,7 @@ >> ], >> "step1" : { >> "shortname" : "Repro meta-oe/meta-filesystems", >> -"EXTRACMDS" : ["${SCRIPTSDIR}/checkvnc; >> OEQA_DEBUGGING_SAVED_OUTPUT=${BASE_SHAREDDIR}/pub/repro-fail-openembedded/meta-filesystems/ >> DISPLAY=:1 oe-selftest --newbuilddir $BBPATH/build-st-meta-filesystems -r >> reproducible"], >> +"EXTRACMDS" : ["${SCRIPTSDIR}/checkvnc; >> OEQA_DEBUGGING_SAVED_OUTPUT=${BASE_SHAREDDIR}/pub/repro-fail-openembedded/meta-filesystems/ >> DISPLAY=:1 BB_LOGCONFIG=$(readlink -f $BB_LOGCONFIG) oe-selftest >> --newbuilddir $BUILDDIR/build-st-meta-filesystems -r reproducible"], >> "ADDLAYER" : [ >> "${BUILDDIR}/../meta-openembedded/meta-oe", >> "${BUILDDIR}/../meta-openembedded/meta-python", >> @@ -323,7 +323,7 @@ >> }, >> "step2" : { >> "shortname" : "Repro meta-oe/meta-gnome", >> -"EXTRACMDS" : ["${SCRIPTSDIR}/checkvnc; >> OEQA_DEBUGGING_SAVED_OUTPUT=${BASE_SHAREDDIR}/pub/repro-fail-openembedded/meta-gnome/ >> DISPLAY=:1 oe-selftest --newbuilddir $BBPATH/build-st-meta-gnome -r >> reproducible"], >> +"EXTRACMDS" : ["${SCRIPTSDIR}/checkvnc; >> OEQA_DEBUGGING_SAVED_OUTPUT=${BASE_SHAREDDIR}/pub/repro-fail-openembedded/meta-gnome/ >> DISPLAY=:1 BB_LOGCONFIG=$(readlink -f $BB_LOGCONFIG) oe-selftest >> --newbuilddir $BUILDDIR/build-st-meta-gnome -r reproducible"], >> "ADDLAYER" : [ >> "${BUILDDIR}/../meta-openembedded/meta-oe", >> "${BUILDDIR}/../meta-openembedded/meta-python", >> @@ -343,14 +343,14 @@ >> }, >> "step3" : { >> "shortname" : "Repro meta-oe/meta-initramfs", >> -"EXTRACMDS" : ["${SCRIPTSDIR}/checkvnc; >> OEQA_DEBUGGING_SAVED_OUTPUT=${BASE_SHAREDDIR}/pub/repro-fail-openembedded/meta-initramfs/ >> DISPLAY=:1 oe-selftest --newbuilddir $BBPATH/build-st-meta-initramfs -r >> reproducible"], >> +"EXTRACMDS" : ["${SCRIPTSDIR}/checkvnc; >> OEQA_DEBUGGING_SAVED_OUTPUT=${BASE_SHAREDDIR}/pub/repro-fail-openembedded/meta-initramfs/ >> DISPLAY=:1 BB_LOGCONFIG=$(readlink -f $BB_LOGCONFIG) oe-selftest >> --newbuilddir $BUILDDIR/build-st-meta-initramfs -r reproducible"], >> "ADDLAYER" : [ >> "${BUILDDIR}/../meta-openembedded/meta-initramfs" >> ] >> }, >> "step4" : { >> "shortname" : "Repro meta-oe/meta-multimedia", >> -"EXTRACMDS" : ["${SCRIPTSDIR}/checkvnc; >> OEQA_DEBUGGING_SAVED_OUTPUT=${BASE_SHAREDDIR}/pub/repro-fail-openembedded/meta-multimedia/ >> DISPLAY=:1 oe-selftest --newbuilddir $BBPATH/build-st-meta-multimedia -r >> reproducible"], >> +"EXTRACMDS" : ["${SCRIPTSDIR}/checkvnc; >> OEQA_DEBUGGING_SAVED_OUTPUT=${BASE_SHAREDDIR}/pub/repro-fail-openembedded/meta-multimedia/ >> DISPLAY=:1 BB_LOGCONFIG=$(readlink -f $BB_LOGCONFIG) oe-selftest >> --newbuilddir $BUILDDIR/build-st-meta-multimedia -r reproducible"], >> "ADDLAYER" : [ >> "${BUILDDIR}/../meta-openembedded/meta-oe", >> "${BUILDDIR}/../meta-openembedded/meta-python", >> @@ -367,7 +367,7 @@ >> }, >> "step5" : { >> "shortname" : "Repro meta-oe/meta-networking", >> -"EXTRACMDS" : ["${SCRIPTSDIR}/checkvnc; >> OEQA_DEBUGGING_SAVED_OUTPUT=${BASE_SHAREDDIR}/pub/repro-fail-openembedded/meta-networking/ >> DISPLAY=:1 oe-selftest --newbuilddir $BBPATH/build-st-meta-networking -r >> reproducible"], >> +
Re: [yocto] [yocto-autobuilder-helper][PATCH] config.json: add a workaround for the "autobuilderlog.json" error
Hi Yoann, I have found the same for BBLAYERS that was fixed [1] expanding any relative path that could exist. Maybe it would be better to also expand BB_LOGCONFIG when the newbuilddir argument is present. [1] https://git.yoctoproject.org/poky/commit/id=f5f465ff5777eb99941db3dda84e65d4699d97f7 Jose Yoann Congal escreveu no dia quarta, 18/10/2023 à(s) 23:28: > For the reproducible-meta-oe builder, workaround the bug #15241 [1], by > passing BB_LOGCONFIG through "readlink -f" to avoid relative reference > to the main build dir. > > Also, switch from BBPATH to BUILDDIR to reference the main build dir. > > [1]: https://bugzilla.yoctoproject.org/show_bug.cgi?id=15241 > > Signed-off-by: Yoann Congal > --- > config.json | 20 ++-- > 1 file changed, 10 insertions(+), 10 deletions(-) > > diff --git a/config.json b/config.json > index c01a453..84da67b 100644 > --- a/config.json > +++ b/config.json > @@ -303,7 +303,7 @@ > ], > "step1" : { > "shortname" : "Repro meta-oe/meta-filesystems", > -"EXTRACMDS" : ["${SCRIPTSDIR}/checkvnc; > OEQA_DEBUGGING_SAVED_OUTPUT=${BASE_SHAREDDIR}/pub/repro-fail-openembedded/meta-filesystems/ > DISPLAY=:1 oe-selftest --newbuilddir $BBPATH/build-st-meta-filesystems -r > reproducible"], > +"EXTRACMDS" : ["${SCRIPTSDIR}/checkvnc; > OEQA_DEBUGGING_SAVED_OUTPUT=${BASE_SHAREDDIR}/pub/repro-fail-openembedded/meta-filesystems/ > DISPLAY=:1 BB_LOGCONFIG=$(readlink -f $BB_LOGCONFIG) oe-selftest > --newbuilddir $BUILDDIR/build-st-meta-filesystems -r reproducible"], > "ADDLAYER" : [ > "${BUILDDIR}/../meta-openembedded/meta-oe", > "${BUILDDIR}/../meta-openembedded/meta-python", > @@ -323,7 +323,7 @@ > }, > "step2" : { > "shortname" : "Repro meta-oe/meta-gnome", > -"EXTRACMDS" : ["${SCRIPTSDIR}/checkvnc; > OEQA_DEBUGGING_SAVED_OUTPUT=${BASE_SHAREDDIR}/pub/repro-fail-openembedded/meta-gnome/ > DISPLAY=:1 oe-selftest --newbuilddir $BBPATH/build-st-meta-gnome -r > reproducible"], > +"EXTRACMDS" : ["${SCRIPTSDIR}/checkvnc; > OEQA_DEBUGGING_SAVED_OUTPUT=${BASE_SHAREDDIR}/pub/repro-fail-openembedded/meta-gnome/ > DISPLAY=:1 BB_LOGCONFIG=$(readlink -f $BB_LOGCONFIG) oe-selftest > --newbuilddir $BUILDDIR/build-st-meta-gnome -r reproducible"], > "ADDLAYER" : [ > "${BUILDDIR}/../meta-openembedded/meta-oe", > "${BUILDDIR}/../meta-openembedded/meta-python", > @@ -343,14 +343,14 @@ > }, > "step3" : { > "shortname" : "Repro meta-oe/meta-initramfs", > -"EXTRACMDS" : ["${SCRIPTSDIR}/checkvnc; > OEQA_DEBUGGING_SAVED_OUTPUT=${BASE_SHAREDDIR}/pub/repro-fail-openembedded/meta-initramfs/ > DISPLAY=:1 oe-selftest --newbuilddir $BBPATH/build-st-meta-initramfs -r > reproducible"], > +"EXTRACMDS" : ["${SCRIPTSDIR}/checkvnc; > OEQA_DEBUGGING_SAVED_OUTPUT=${BASE_SHAREDDIR}/pub/repro-fail-openembedded/meta-initramfs/ > DISPLAY=:1 BB_LOGCONFIG=$(readlink -f $BB_LOGCONFIG) oe-selftest > --newbuilddir $BUILDDIR/build-st-meta-initramfs -r reproducible"], > "ADDLAYER" : [ > "${BUILDDIR}/../meta-openembedded/meta-initramfs" > ] > }, > "step4" : { > "shortname" : "Repro meta-oe/meta-multimedia", > -"EXTRACMDS" : ["${SCRIPTSDIR}/checkvnc; > OEQA_DEBUGGING_SAVED_OUTPUT=${BASE_SHAREDDIR}/pub/repro-fail-openembedded/meta-multimedia/ > DISPLAY=:1 oe-selftest --newbuilddir $BBPATH/build-st-meta-multimedia -r > reproducible"], > +"EXTRACMDS" : ["${SCRIPTSDIR}/checkvnc; > OEQA_DEBUGGING_SAVED_OUTPUT=${BASE_SHAREDDIR}/pub/repro-fail-openembedded/meta-multimedia/ > DISPLAY=:1 BB_LOGCONFIG=$(readlink -f $BB_LOGCONFIG) oe-selftest > --newbuilddir $BUILDDIR/build-st-meta-multimedia -r reproducible"], > "ADDLAYER" : [ > "${BUILDDIR}/../meta-openembedded/meta-oe", > "${BUILDDIR}/../meta-openembedded/meta-python", > @@ -367,7 +367,7 @@ > }, > "step5" : { > "shortname" : "Repro meta-oe/meta-networking", > -"EXTRACMDS" : ["${SCRIPTSDIR}/checkvnc; > OEQA_DEBUGGING_SAVED_OUTPUT=${BASE_SHAREDDIR}/pub/repro-fail-openembedded/meta-networking/ > DISPLAY=:1 oe-selftest --newbuilddir $BBPATH/build-st-meta-networking -r > reproducible"], > +"EXTRACMDS" : ["${SCRIPTSDIR}/checkvnc; > OEQA_DEBUGGING_SAVED_OUTPUT=${BASE_SHAREDDIR}/pub/repro-fail-openembedded/meta-networking/ > DISPLAY=:1 BB_LOGCONFIG=$(readlink -f $BB_LOGCONFIG) oe-selftest > --newbuilddir $BUILDDIR/build-st-meta-networking -r reproducible"], > "ADDLAYER" : [ > "${BUILDDIR}/../meta-openembedded/meta-oe", >
[yocto] [yocto-autobuilder-helper][PATCH] config.json: add a workaround for the "autobuilderlog.json" error
For the reproducible-meta-oe builder, workaround the bug #15241 [1], by passing BB_LOGCONFIG through "readlink -f" to avoid relative reference to the main build dir. Also, switch from BBPATH to BUILDDIR to reference the main build dir. [1]: https://bugzilla.yoctoproject.org/show_bug.cgi?id=15241 Signed-off-by: Yoann Congal --- config.json | 20 ++-- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/config.json b/config.json index c01a453..84da67b 100644 --- a/config.json +++ b/config.json @@ -303,7 +303,7 @@ ], "step1" : { "shortname" : "Repro meta-oe/meta-filesystems", -"EXTRACMDS" : ["${SCRIPTSDIR}/checkvnc; OEQA_DEBUGGING_SAVED_OUTPUT=${BASE_SHAREDDIR}/pub/repro-fail-openembedded/meta-filesystems/ DISPLAY=:1 oe-selftest --newbuilddir $BBPATH/build-st-meta-filesystems -r reproducible"], +"EXTRACMDS" : ["${SCRIPTSDIR}/checkvnc; OEQA_DEBUGGING_SAVED_OUTPUT=${BASE_SHAREDDIR}/pub/repro-fail-openembedded/meta-filesystems/ DISPLAY=:1 BB_LOGCONFIG=$(readlink -f $BB_LOGCONFIG) oe-selftest --newbuilddir $BUILDDIR/build-st-meta-filesystems -r reproducible"], "ADDLAYER" : [ "${BUILDDIR}/../meta-openembedded/meta-oe", "${BUILDDIR}/../meta-openembedded/meta-python", @@ -323,7 +323,7 @@ }, "step2" : { "shortname" : "Repro meta-oe/meta-gnome", -"EXTRACMDS" : ["${SCRIPTSDIR}/checkvnc; OEQA_DEBUGGING_SAVED_OUTPUT=${BASE_SHAREDDIR}/pub/repro-fail-openembedded/meta-gnome/ DISPLAY=:1 oe-selftest --newbuilddir $BBPATH/build-st-meta-gnome -r reproducible"], +"EXTRACMDS" : ["${SCRIPTSDIR}/checkvnc; OEQA_DEBUGGING_SAVED_OUTPUT=${BASE_SHAREDDIR}/pub/repro-fail-openembedded/meta-gnome/ DISPLAY=:1 BB_LOGCONFIG=$(readlink -f $BB_LOGCONFIG) oe-selftest --newbuilddir $BUILDDIR/build-st-meta-gnome -r reproducible"], "ADDLAYER" : [ "${BUILDDIR}/../meta-openembedded/meta-oe", "${BUILDDIR}/../meta-openembedded/meta-python", @@ -343,14 +343,14 @@ }, "step3" : { "shortname" : "Repro meta-oe/meta-initramfs", -"EXTRACMDS" : ["${SCRIPTSDIR}/checkvnc; OEQA_DEBUGGING_SAVED_OUTPUT=${BASE_SHAREDDIR}/pub/repro-fail-openembedded/meta-initramfs/ DISPLAY=:1 oe-selftest --newbuilddir $BBPATH/build-st-meta-initramfs -r reproducible"], +"EXTRACMDS" : ["${SCRIPTSDIR}/checkvnc; OEQA_DEBUGGING_SAVED_OUTPUT=${BASE_SHAREDDIR}/pub/repro-fail-openembedded/meta-initramfs/ DISPLAY=:1 BB_LOGCONFIG=$(readlink -f $BB_LOGCONFIG) oe-selftest --newbuilddir $BUILDDIR/build-st-meta-initramfs -r reproducible"], "ADDLAYER" : [ "${BUILDDIR}/../meta-openembedded/meta-initramfs" ] }, "step4" : { "shortname" : "Repro meta-oe/meta-multimedia", -"EXTRACMDS" : ["${SCRIPTSDIR}/checkvnc; OEQA_DEBUGGING_SAVED_OUTPUT=${BASE_SHAREDDIR}/pub/repro-fail-openembedded/meta-multimedia/ DISPLAY=:1 oe-selftest --newbuilddir $BBPATH/build-st-meta-multimedia -r reproducible"], +"EXTRACMDS" : ["${SCRIPTSDIR}/checkvnc; OEQA_DEBUGGING_SAVED_OUTPUT=${BASE_SHAREDDIR}/pub/repro-fail-openembedded/meta-multimedia/ DISPLAY=:1 BB_LOGCONFIG=$(readlink -f $BB_LOGCONFIG) oe-selftest --newbuilddir $BUILDDIR/build-st-meta-multimedia -r reproducible"], "ADDLAYER" : [ "${BUILDDIR}/../meta-openembedded/meta-oe", "${BUILDDIR}/../meta-openembedded/meta-python", @@ -367,7 +367,7 @@ }, "step5" : { "shortname" : "Repro meta-oe/meta-networking", -"EXTRACMDS" : ["${SCRIPTSDIR}/checkvnc; OEQA_DEBUGGING_SAVED_OUTPUT=${BASE_SHAREDDIR}/pub/repro-fail-openembedded/meta-networking/ DISPLAY=:1 oe-selftest --newbuilddir $BBPATH/build-st-meta-networking -r reproducible"], +"EXTRACMDS" : ["${SCRIPTSDIR}/checkvnc; OEQA_DEBUGGING_SAVED_OUTPUT=${BASE_SHAREDDIR}/pub/repro-fail-openembedded/meta-networking/ DISPLAY=:1 BB_LOGCONFIG=$(readlink -f $BB_LOGCONFIG) oe-selftest --newbuilddir $BUILDDIR/build-st-meta-networking -r reproducible"], "ADDLAYER" : [ "${BUILDDIR}/../meta-openembedded/meta-oe", "${BUILDDIR}/../meta-openembedded/meta-networking" @@ -382,7 +382,7 @@ }, "step6" : { "shortname" : "Repro meta-oe/meta-oe", -"EXTRACMDS" : ["${SCRIPTSDIR}/checkvnc; OEQA_DEBUGGING_SAVED_OUTPUT=${BASE_SHAREDDIR}/pub/repro-fail-openembedded/meta-oe/ DISPLAY=:1 oe-selftest --newbuilddir $BBPATH/build-st-meta-oe -r reproducible"], +"EXTRACMDS" : ["${SCRIPTSDIR}/checkvnc;