]> code.ossystems Code Review - openembedded-core.git/commit
packagefeed-stability: add class to help reduce package feed churn
authorPaul Eggleton <paul.eggleton@linux.intel.com>
Mon, 18 Jul 2016 03:32:47 +0000 (20:32 -0700)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Mon, 25 Jul 2016 22:46:59 +0000 (23:46 +0100)
commitcc8b1a93912f830e605e6249c446b3764e550863
tree2c4c5faea2b74c544f2d14fd75cb09cdcc697528
parent3506172d7d9f8d92362b6ebb75582b7c3e662dae
packagefeed-stability: add class to help reduce package feed churn

When a dependency causes a recipe to effectively be rebuilt, its output
may in fact not change; but new packages (with an increased PR value, if
using the PR server) will be generated nonetheless. There's no practical
way for us to predict whether or not this is going to be the case based
solely on the inputs, but we can compare the package output and see if
that is materially different and based upon that decide to replace the
old package with the new one.

This class effectively intercepts packages as they are written out by
do_package_write_*, causing them to be written into a different
directory where we can compare them to whatever older packages might
be in the "real" package feed directory, and avoid copying the new
package to the feed if it has not materially changed. We use
build-compare to do the package comparison.

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
meta/classes/packagefeed-stability.bbclass [new file with mode: 0644]