[yocto-autobuilder2][PATCH] add prioritizeBuilders
Trevor Gamblin
This prioritizeBuilders function sorts builders by the length of their
associated worker lists, so that builders that can only be assigned to a small number of workers are assigned to those workers before other builds that don't have specific needs when resources are limited. An example might be when a slot is available on an Ubuntu-based worker, and "oe-selftest-ubuntu" and "genericx86-64" build requests exist in the queue. Since oe-selftest-ubuntu requires an Ubuntu-based worker and genericx86-64 does not, genericx86-64 will be assigned a higher value (lower priority) so that oe-selftest-ubuntu is assigned to that worker first. Signed-off-by: Trevor Gamblin <trevor.gamblin@...> --- builders.py | 13 +++++++++++++ master.cfg | 6 ++++++ 2 files changed, 19 insertions(+) diff --git a/builders.py b/builders.py index 53c5f0e..94fb561 100644 --- a/builders.py +++ b/builders.py @@ -135,6 +135,19 @@ for builder in config.subbuilders: workernames=workers, nextWorker=nextWorker, nextBuild=nextBuild, factory=f, env=extra_env)) +# prioritize assigning builders to available workers based on the length +# of the worker lists they are associated with. Builders that have fewer +# valid worker options should always be assigned first +def prioritizeBuilders(buildmaster, builders): + # re-use the builder_to_workers list + builder_to_workers = config.builder_to_workers + + # sort builders by the length of their worker lists. Since not all + # builders are explicitly listed in builder_to_workers, make sure to + # default to the len() of the "default" value + builders.sort(key=lambda b: len(builder_to_workers.get(b.name)) if b.name in builder_to_workers.keys() else len(builder_to_workers.get("default"))) + return builders + def create_parent_builder_factory(buildername, waitname): factory = util.BuildFactory() # NOTE: Assumes that yocto-autobuilder repo has been cloned to home diff --git a/master.cfg b/master.cfg index a7c151f..4f7d74e 100644 --- a/master.cfg +++ b/master.cfg @@ -88,6 +88,12 @@ c['www'] = www.www # These items are specific to an individual AB deployment c['workers'] = workers.workers +# This enables our prioritizeBuilders function from builders.py. +# Builders such as buildperf-centos7, buildperf-ubuntu1604, +# oe-selftest-*, and reproducible-* will be assigned (if possible) +# before other builders since their possible worker lists are smaller +c['prioritizeBuilders'] = builders.prioritizeBuilders + c['title'] = "Yocto Autobuilder" c['titleURL'] = "https://autobuilder.yoctoproject.org/main/" # visible location for internal web server -- 2.31.1 |
|
rpaluri@...
Hi,
Below are my observations on these packages w.r.t pTests.
Thanks, Ravi |
|
Re: [qa-build-notification] QA notification for completed autobuilder build (yocto-3.4_M3.rc1)
Teoh, Jay Shen
Hi All,
toggle quoted message
Show quoted text
This is the full report for yocto-3.4_M3.rc1: https://git.yoctoproject.org/cgit/cgit.cgi/yocto-testresults-contrib/tree/?h=intel-yocto-testresults ======= Summary ======== No high milestone defects. No new issue found. Thanks, Jay -----Original Message----- |
|
Enable graphic in core-image-minimal for raspberrypi
#yocto
yasminebenghozzi6@...
Hello,
I cant find how to add maybe graphic conf for the yocto image I already have for the raspberrypi, Any help? |
|
extra-cmake-modules
#yocto
sateesh m
Hi All,
I am trying to build an extra-cmake-modules package. Using bitbake command "bitbake extra-cmake-modules" compiled succuss. But using bitbake core-image-plasma-mobile throwing error. So I want to disable native build on the x86 platform is it possible? or else can anybody know how to fix this issue suggest me any corrections required. ERROR: extra-cmake-modules-native-5.79.0-r0 do_compile: Execution of '/home/sateesh/KDE/sources/fu540-build/tmp-glibc/work/x86_64-linux/extra-cmake-modules-native/5.79.0-r0/temp/run.do_compile.20787' failed with exit code 1: [1/2] cd /home/sateesh/KDE/sources/fu540-build/tmp-glibc/work/x86_64-linux/extra-cmake-modules-native/5.79.0-r0/build/docs && /usr/local/bin/sphinx-build -c /home/sateesh/KDE/sources/fu540-build/tmp-glibc/work/x86_64-linux/extra-cmake-modules-native/5.79.0-r0/build/docs -d /home/sateesh/KDE/sources/fu540-build/tmp-glibc/work/x86_64-linux/extra-cmake-modules-native/5.79.0-r0/build/docs/doctrees -b html /home/sateesh/KDE/sources/fu540-build/tmp-glibc/work/x86_64-linux/extra-cmake-modules-native/5.79.0-r0/git/docs /home/sateesh/KDE/sources/fu540-build/tmp-glibc/work/x86_64-linux/extra-cmake-modules-native/5.79.0-r0/build/docs/html > build-html.log
FAILED: docs/doc_format_html
cd /home/sateesh/KDE/sources/fu540-build/tmp-glibc/work/x86_64-linux/extra-cmake-modules-native/5.79.0-r0/build/docs && /usr/local/bin/sphinx-build -c /home/sateesh/KDE/sources/fu540-build/tmp-glibc/work/x86_64-linux/extra-cmake-modules-native/5.79.0-r0/build/docs -d /home/sateesh/KDE/sources/fu540-build/tmp-glibc/work/x86_64-linux/extra-cmake-modules-native/5.79.0-r0/build/docs/doctrees -b html /home/sateesh/KDE/sources/fu540-build/tmp-glibc/work/x86_64-linux/extra-cmake-modules-native/5.79.0-r0/git/docs /home/sateesh/KDE/sources/fu540-build/tmp-glibc/work/x86_64-linux/extra-cmake-modules-native/5.79.0-r0/build/docs/html > build-html.log
Extension error:
Could not import extension ecm (exception: cannot import name 'htmlescape')
ninja: build stopped: subcommand failed.
WARNING: exit code 1 from a shell command.
ERROR: Logfile of failure stored in: /home/sateesh/KDE/sources/fu540-build/tmp-glibc/work/x86_64-linux/extra-cmake-modules-native/5.79.0-r0/temp/log.do_compile.20787
Regards, Sateesh |
|
Re: [meta-security][PATCH 1/2] image-with-hardened-binaries: add class
Maximilian Blenk
Hi, On 06.09.21 10:18, Maximilian Blenk
wrote:
|
|
Re: Inactive service of hello world
#yocto
Nicolas Jeker
On Tue, 2021-09-07 at 10:43 -0700, Rudolf J Streif wrote:
What does your 'Hello World' service do? Just print 'Hello World' toTo piggyback on that, it is possible to set Type=oneshot[1] for the service so that systemd considers the service to be up after it exited. I find it useful for init or migration scripts that another service can then depend upon. [1]: https://www.freedesktop.org/software/systemd/man/systemd.service.html#Type= :rjs |
|
Re: Building Yocto on AWS container getting ERROR: The postinstall intercept hook 'update_icon_cache' failed,
#yocto
mail2uvijay@...
For the error, i have tried installed below package in aws container
libgdk-pixbuf2.0-0 in container, and added DEPENDS += "qemuwrapper-cross" in bb file. Will try the option building "core-image-minimal" or "core-image-sato" Regards, Vijay |
|
Re: Building Yocto on AWS container getting ERROR: The postinstall intercept hook 'update_icon_cache' failed,
#yocto
Alexander Kanavin
It's right there at the very end: NOTE: Exit code 127. Output: /home/wlsom/YoctoCode/poky/build-microchip/tmp/work/sama5d27_wlsom1_ek_sd-poky-linux-gnueabi/utec-mcdgrill-image/1.0-r0/intercept_scripts-7f1ca27092c337bb8d06dfe7837dad99a9fb3e5e5ff266e8ce34762c23025acb/update_icon_cache: 9: /home/wlsom/YoctoCode/poky/build-microchip/tmp/work/sama5d27_wlsom1_ek_sd-poky-linux-gnueabi/utec-mcdgrill-image/1.0-r0/intercept_scripts-7f1ca27092c337bb8d06dfe7837dad99a9fb3e5e5ff266e8ce34762c23025acb/update_icon_cache: /home/wlsom/YoctoCode/poky/build-microchip/tmp/work/sama5d27_wlsom1_ek_sd-poky-linux-gnueabi/utec-mcdgrill-image/1.0-r0/recipe-sysroot-native//gdk-pixbuf-2.0/gdk-pixbuf-query-loaders: not found This isn't easy to diagnose without having access to your build tree, but you can build plain core-image-sato for example and check that the binary does exist there and gets executed, and then untangle where the difference come from. Alex On Wed, 8 Sept 2021 at 06:47, <mail2uvijay@...> wrote:
|
|
multilib SDK
Arun
I have a custom project where I am building for 64-bit kernel and 32-bit userspace using multilib config # for 32bit userspace build require conf/multilib.conf MULTILIBS = "multilib:lib32" DEFAULTTUNE_virtclass-multilib-lib32 = "armv7athf-neon" I am successfully able to build the target image as MACHINE=<custom_machine> bitbake lib32-<custom_target> However, when I try to build the SDK, I am noticing that the userspace recipes are being built for both 64-bit and 32-bit. I am running into errors for 64-bit. I have no need for 64-bit, is there any way I can disable 64-bit build for SDK? note: I am building SDK via this command without lib32- prefix for target, following details from this commit message stating that lib32- prefix is not required MACHINE=<custom_machine> bitbake -c populate_sdk <custom_target> thanks -Arun |
|
Re: Building Yocto on AWS container getting ERROR: The postinstall intercept hook 'update_icon_cache' failed,
#yocto
mail2uvijay@...
Raj thanks for the response. Couldnt able to find error from the logs.. Attached detailed logs.. |
|
Re: [poky] Poky:dunfell: SDK install issue (sed: -e expression #1, char 0: no previous regular expression)
Richard Purdie
On Tue, 2021-09-07 at 06:10 +0000, Groeting, Claus wrote:
Hi all!Hi, I think there is a patch queued in the testing branch for dunfell: http://git.yoctoproject.org/cgit.cgi/poky-contrib/log/?h=stable/dunfell-nut http://git.yoctoproject.org/cgit.cgi/poky-contrib/commit/?h=stable/dunfell-nut&id=ed0f6236ceb6a127903241f783a526bcdefc66ce that should address this. Cheers, Richard |
|
Re: Inactive service of hello world
#yocto
What does your 'Hello World' service do? Just print 'Hello World' to the console and then exit? If so that would be the reason why it is inactive. Systemd starts it and then it exits. Typically, services keep running (except for some special cases) once they are started. That's what makes them a service. To stop them 'systemctl stop <service>' is used. By default systemctl sends SIGTERM to tell the service to clean up and terminate itself. :rjs On Tue, Sep 7, 2021, 10:20 <yasminebenghozzi6@...> wrote: Hi everyone, |
|
Inactive service of hello world
#yocto
yasminebenghozzi6@...
Hi everyone,
I wanted to run the helloworld service, but it keeps telling that its inactive , I really cant find why, I changed the service many times but no solution. I m sorry I ant copy paste from putty |
|
Re: Debating best tool to use
KL <deco33000@...>
That is exactly what I thought and why I insisted that much.
toggle quoted message
Show quoted text
I will step back and constrict to my app, and not the whole OS. Thanks! 17:38, 7 September 2021, Ross Burton <ross@...>:--
|
|
Re: Debating best tool to use
Ross Burton <ross@...>
On Tue, 7 Sept 2021 at 11:22, KL <deco33000@...> wrote:
Thanks does that mean that I can reshape the whole "everything is a file" under unix?Doable? Yes, everything is open source. Sensible? Not really. I'm not sure you've considered the scale of what you're asking. For example, /etc/passwd and /etc/hosts are deeply tied into large amounts of software. You can make *your* software use whatever configuration database you want, but you'll have a lot of work to do if you want to move the user database or DNS resolver information out of /etc. Ross |
|
shadow package not installing groupadd commanf in the filesystem
#dunfell
cs.raryu <cs.raryu@...>
Hi,
The "shadow" package provides the "groupadd" tool. So I added the package to my recipe. Later when I checked in the rootfs, there is no groupadd command added in the filesystem. Can anyone please tell me why so? Thank you. |
|
Yocto Project Status WW36`21
Stephen Jolley
Current Dev Position: YP 3.4 M4 Next Deadline: 4th Oct. 2021 YP 3.4 M4 build
Next Team Meetings:
Key Status/Updates:
Ways to contribute:
YP 3.4 Milestone Dates:
Planned upcoming dot releases:
Tracking Metrics:
The Yocto Project’s technical governance is through its Technical Steering Committee, more information is available at: https://wiki.yoctoproject.org/wiki/TSC
The Status reports are now stored on the wiki at: https://wiki.yoctoproject.org/wiki/Weekly_Status
[If anyone has suggestions for other information you’d like to see on this weekly status update, let us know!]
Thanks,
Stephen K. Jolley Yocto Project Program Manager ( Cell: (208) 244-4460 * Email: sjolley.yp.pm@...
|
|
add raspivid to the yocto image for raspberrypi4-64
safouane maaloul <maaloulsafouane@...>
Hi, in the first place i succeeded to add raspivid to my image yocto of raspberrypi0-wifi. I did so by adding the userland recipe. But when i try doing so with raspberrypi4-64. Idon't get raspivid when i add the userland recipe to my image. Do you have any idea why it don't work with the raspberrypi4-64?
Thanks, Safouane |
|
Re: Debating best tool to use
KL <deco33000@...>
Thanks does that mean that I can reshape the whole "everything is a file" under unix? I don't want /etc /var /usr (and any other premade structure you find in every linux distro...) but manage it differently via our db. You confirm that doable? 22:03, 6 September 2021, Khem Raj <raj.khem@...>:--
|
|