Skip to content

Enable swabber integration for host-contamination detection

Joshua Lock poky 1 version In review

Get series with b4
b4 am 1289597497.27930.33.camel@scimitar

Versions newest first

  1. v1 Latest5 patches 2 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/5bitbake-runtask-strace: simple shell script to wrap tasks in a strace callbitbake/bin/bitbake-runtask-strace+7 -00 replies
2/5image-swab: introduce a class for generating swabber reportsmeta/classes/image-swab.bbclass meta/conf/local.conf.sample+12 -00 replies
3/5gitignore: ignore the default downloads directory.gitignore+1 -00 replies
4/5poky-default-revisions: bump swabber versionmeta/conf/distro/include/poky-default-revisions.inc+0 -00 replies
5/5image-swab: update swabber command for latest versionmeta/classes/image-swab.bbclass+0 -10 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/5] Enable swabber integration for host-contamination detection

This set of patches adds a user class to do host-contamination detection whilst
building a Poky image.

The class uses a bitbake-runtask wrapper script which wraps calls to bitbake-runtask in strace and logs the strace output for later processing.
Similar to rm_work the class adds an extra task at the end of the build to run
the swabber tool over the strace logs and generate a contamination report.

The classes disables PARALLEL_MAKE on several packages which refused to run
under strace with parallelism enabled.

I have succesfully built all packages in poky-image-minimal under strace with
this patchset.

The final two patches in the series update the version of swabber to the latest
git HEAD and updates the command in the class to work with this revision.
The hard coded paths are undesirable and don't work reliably across distributions, for example Fedora 14 ships Python 2.7. They will be removed
when a future swabber update includes provisioning for handling such things
through configuration files.

Pull URL: git://git.pokylinux.org/poky-contrib.git
Branch: josh/swabber
Browse:
http://git.pokylinux.org/cgit.cgi/poky-contrib/log/?h=josh/swabber

Thanks,
Joshua Lock <[email protected]>
---

Joshua Lock (5):
bitbake-runtask-strace: simple shell script to wrap tasks in a strace
call
image-swab: introduce a class for generating swabber reports
gitignore: ignore the default downloads directory
poky-default-revisions: bump swabber version
image-swab: update swabber command for latest version

 .gitignore                                         |    1 +
 bitbake/bin/bitbake-runtask-strace                 |    8 ++
 meta/classes/image-swab.bbclass                    |   83
++++++++++++++++++++
 .../conf/distro/include/poky-default-revisions.inc |    2 +-
 meta/conf/local.conf.sample                        |    1 +
 5 files changed, 94 insertions(+), 1 deletions(-)
 create mode 100755 bitbake/bin/bitbake-runtask-strace
 create mode 100644 meta/classes/image-swab.bbclass
Signature · 5 lines
1.7.3.2

-- 
Joshua Lock
        Intel Open Source Technology Centre