| Summary: | poky-tiny builds should be marked as failed if the image size is above a specified threshold | ||
|---|---|---|---|
| Product: | [Infrastructure] AutoBuilder | Reporter: | Darren Hart <dvhart> |
| Component: | autobuilder | Assignee: | Robert Yang <liezhi.yang> |
| Status: | RESOLVED FIXED | QA Contact: | |
| Severity: | enhancement | ||
| Priority: | Medium | CC: | elizabeth.flanagan, infras.ab.watcher, Infras.watcher, liezhi.yang, Martin.Jansa, richard.purdie, sgw, song.liu |
| Version: | unspecified | ||
| Target Milestone: | 1.7 M2 | ||
| Hardware: | x86 | ||
| OS: | Multiple | ||
| See Also: | https://bugzilla.yoctoproject.org/show_bug.cgi?id=6396 | ||
| Whiteboard: | |||
| OS type for building Yocto: | --- | Type of Regression: | --- |
| Verified: | Documentation change: | Yes (doc changes required) | |
|
Description
Darren Hart
2012-06-14 17:08:05 UTC
Could be sanity test related, so giving it to paul to look into This is something that needs to be checked at do_rootfs time; we can't know how large the image will be until that point. A couple of questions: 1) Are we checking the maximum size of the output image file (in which case it is specific to the format type)? Although this is more complicated it does seem like the most sensible given that this is what you'll end up writing to storage on the target. 2) What size threshold do we want to set by default for poky-tiny? Setting to NEEDINFO as per above. How about a SANITY test that does a du -s for tmp/work/core-image-minimal/1.0-r0/rootfs ? That avoids all the fs / package (tar, cpio, etc.) overhead. We should also check the kernel as that is a critical part of this, possibly with two unique THRESHOLD values, maybe: TINY_ROOTFS_THRESHOLD TINY_KERNEL_THRESHOLD Threshold is tricky. Ideally it would be per-machine - but for now, even something like 4MB would be a good starting point. The THRESHOLD should be the easiest aspect of this to change... it should be a variable that a machine config can override as well. For the kernel, 2MB would be a good start I think. THis is assuming eglibc of course, with uclibc, the THRESHOLD for ROOTFS should be more like 2MB. Each could be defined in poky-tiny.conf I suspect, depending on the value of TCLIBC... We already have a setting for the kernel size check. We discussed this at OEDAM and there was general interest in some kind of image size check too as others have run into this kind of issue. A generic image size check would therefore be useful. There is meta/lib/oe/image.py _get_rootfs_size function, so it should be enhanced a bit to issue warning when the rootfs exceeds the maximal size. *** Bug 6396 has been marked as a duplicate of this bug. *** |