Openembedded Core Discussions
 help / color / mirror / Atom feed
* [PATCH 1/2] buildhistory: correctly handle reductions of numeric fields
@ 2012-07-30 12:18 Ross Burton
  2012-07-30 12:18 ` [PATCH 2/2] buildhistory: reduce the numeric delta to 10% Ross Burton
  2012-07-30 12:20 ` [PATCH 1/2] buildhistory: correctly handle reductions of numeric fields Paul Eggleton
  0 siblings, 2 replies; 5+ messages in thread
From: Ross Burton @ 2012-07-30 12:18 UTC (permalink / raw)
  To: openembedded-core

Signed-off-by: Ross Burton <ross.burton@intel.com>
---
 meta/lib/oe/buildhistory_analysis.py |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/meta/lib/oe/buildhistory_analysis.py b/meta/lib/oe/buildhistory_analysis.py
index 29dc4a9..d0e0808 100644
--- a/meta/lib/oe/buildhistory_analysis.py
+++ b/meta/lib/oe/buildhistory_analysis.py
@@ -300,7 +300,7 @@ def compare_dict_blobs(path, ablob, bblob, report_all):
                     percentchg = ((bval - aval) / float(aval)) * 100
                 else:
                     percentchg = 100
-                if percentchg < monitor_numeric_threshold:
+                if abs(percentchg) < monitor_numeric_threshold:
                     continue
             elif (not report_all) and key in list_fields:
                 if key == "FILELIST" and path.endswith("-dbg") and bstr.strip() != '':
-- 
1.7.10




^ permalink raw reply related	[flat|nested] 5+ messages in thread

* [PATCH 2/2] buildhistory: reduce the numeric delta to 10%
  2012-07-30 12:18 [PATCH 1/2] buildhistory: correctly handle reductions of numeric fields Ross Burton
@ 2012-07-30 12:18 ` Ross Burton
  2012-07-30 12:22   ` Paul Eggleton
  2012-07-30 12:20 ` [PATCH 1/2] buildhistory: correctly handle reductions of numeric fields Paul Eggleton
  1 sibling, 1 reply; 5+ messages in thread
From: Ross Burton @ 2012-07-30 12:18 UTC (permalink / raw)
  To: openembedded-core

Signed-off-by: Ross Burton <ross.burton@intel.com>
---
 meta/lib/oe/buildhistory_analysis.py |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/meta/lib/oe/buildhistory_analysis.py b/meta/lib/oe/buildhistory_analysis.py
index d0e0808..0a50432 100644
--- a/meta/lib/oe/buildhistory_analysis.py
+++ b/meta/lib/oe/buildhistory_analysis.py
@@ -23,7 +23,7 @@ numeric_fields = ['PKGSIZE', 'IMAGESIZE']
 # Fields to monitor
 monitor_fields = ['RDEPENDS', 'RRECOMMENDS', 'PACKAGES', 'FILELIST', 'PKGSIZE', 'IMAGESIZE']
 # Percentage change to alert for numeric fields
-monitor_numeric_threshold = 20
+monitor_numeric_threshold = 10
 # Image files to monitor (note that image-info.txt is handled separately)
 img_monitor_files = ['installed-package-names.txt', 'files-in-image.txt']
 # Related context fields for reporting (note: PE, PV & PR are always reported for monitored package fields)
-- 
1.7.10




^ permalink raw reply related	[flat|nested] 5+ messages in thread

* Re: [PATCH 1/2] buildhistory: correctly handle reductions of numeric fields
  2012-07-30 12:18 [PATCH 1/2] buildhistory: correctly handle reductions of numeric fields Ross Burton
  2012-07-30 12:18 ` [PATCH 2/2] buildhistory: reduce the numeric delta to 10% Ross Burton
@ 2012-07-30 12:20 ` Paul Eggleton
  1 sibling, 0 replies; 5+ messages in thread
From: Paul Eggleton @ 2012-07-30 12:20 UTC (permalink / raw)
  To: openembedded-core

On Monday 30 July 2012 13:18:06 Ross Burton wrote:
> Signed-off-by: Ross Burton <ross.burton@intel.com>
> ---
>  meta/lib/oe/buildhistory_analysis.py |    2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/meta/lib/oe/buildhistory_analysis.py
> b/meta/lib/oe/buildhistory_analysis.py index 29dc4a9..d0e0808 100644
> --- a/meta/lib/oe/buildhistory_analysis.py
> +++ b/meta/lib/oe/buildhistory_analysis.py
> @@ -300,7 +300,7 @@ def compare_dict_blobs(path, ablob, bblob, report_all):
>                      percentchg = ((bval - aval) / float(aval)) * 100
>                  else:
>                      percentchg = 100
> -                if percentchg < monitor_numeric_threshold:
> +                if abs(percentchg) < monitor_numeric_threshold:
>                      continue
>              elif (not report_all) and key in list_fields:
>                  if key == "FILELIST" and path.endswith("-dbg") and
> bstr.strip() != '':

Acked-by: Paul Eggleton <paul.eggleton@linux.intel.com>

-- 

Paul Eggleton
Intel Open Source Technology Centre



^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [PATCH 2/2] buildhistory: reduce the numeric delta to 10%
  2012-07-30 12:18 ` [PATCH 2/2] buildhistory: reduce the numeric delta to 10% Ross Burton
@ 2012-07-30 12:22   ` Paul Eggleton
  2012-07-30 12:25     ` Burton, Ross
  0 siblings, 1 reply; 5+ messages in thread
From: Paul Eggleton @ 2012-07-30 12:22 UTC (permalink / raw)
  To: openembedded-core

On Monday 30 July 2012 13:18:07 Ross Burton wrote:
> Signed-off-by: Ross Burton <ross.burton@intel.com>
> ---
>  meta/lib/oe/buildhistory_analysis.py |    2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/meta/lib/oe/buildhistory_analysis.py
> b/meta/lib/oe/buildhistory_analysis.py index d0e0808..0a50432 100644
> --- a/meta/lib/oe/buildhistory_analysis.py
> +++ b/meta/lib/oe/buildhistory_analysis.py
> @@ -23,7 +23,7 @@ numeric_fields = ['PKGSIZE', 'IMAGESIZE']
>  # Fields to monitor
>  monitor_fields = ['RDEPENDS', 'RRECOMMENDS', 'PACKAGES', 'FILELIST',
> 'PKGSIZE', 'IMAGESIZE'] # Percentage change to alert for numeric fields
> -monitor_numeric_threshold = 20
> +monitor_numeric_threshold = 10
>  # Image files to monitor (note that image-info.txt is handled separately)
>  img_monitor_files = ['installed-package-names.txt', 'files-in-image.txt']
>  # Related context fields for reporting (note: PE, PV & PR are always
> reported for monitored package fields)

I don't think I picked 20% completely out of thin air but I wasn't especially 
scientific about it either, so:

Acked-by: Paul Eggleton <paul.eggleton@linux.intel.com>

Cheers,
Paul

-- 

Paul Eggleton
Intel Open Source Technology Centre



^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [PATCH 2/2] buildhistory: reduce the numeric delta to 10%
  2012-07-30 12:22   ` Paul Eggleton
@ 2012-07-30 12:25     ` Burton, Ross
  0 siblings, 0 replies; 5+ messages in thread
From: Burton, Ross @ 2012-07-30 12:25 UTC (permalink / raw)
  To: Paul Eggleton; +Cc: openembedded-core

On 30 July 2012 13:22, Paul Eggleton <paul.eggleton@linux.intel.com> wrote:
> I don't think I picked 20% completely out of thin air but I wasn't especially
> scientific about it either, so:

FWIW, my situation was that I was messing around with the Mesa
packaging and it wasn't reporting a package size reduction due to
package re-arrangement. 20% is fairly large for a "not significant"
change IMHO, I'd be interested to see what sort of "false positives"
it threw up with 5%.

Ross



^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2012-07-30 12:37 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-07-30 12:18 [PATCH 1/2] buildhistory: correctly handle reductions of numeric fields Ross Burton
2012-07-30 12:18 ` [PATCH 2/2] buildhistory: reduce the numeric delta to 10% Ross Burton
2012-07-30 12:22   ` Paul Eggleton
2012-07-30 12:25     ` Burton, Ross
2012-07-30 12:20 ` [PATCH 1/2] buildhistory: correctly handle reductions of numeric fields Paul Eggleton

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox