* [PATCH 0/2] Fixes for oe-build-perf-test @ 2016-09-07 7:28 Markus Lehtonen 2016-09-07 7:28 ` [PATCH 1/2] oeqa.buildperf: try harder when splitting 'nevr' string Markus Lehtonen 2016-09-07 7:28 ` [PATCH 2/2] oeqa.buildperf: be sure to use the latest buildstats Markus Lehtonen 0 siblings, 2 replies; 3+ messages in thread From: Markus Lehtonen @ 2016-09-07 7:28 UTC (permalink / raw) To: openembedded-core Two small miscellanious fixes to build perf tests. Markus Lehtonen (2): oeqa.buildperf: try harder when splitting 'nevr' string oeqa.buildperf: be sure to use the latest buildstats meta/lib/oeqa/buildperf/base.py | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) -- 2.6.6 ^ permalink raw reply [flat|nested] 3+ messages in thread
* [PATCH 1/2] oeqa.buildperf: try harder when splitting 'nevr' string 2016-09-07 7:28 [PATCH 0/2] Fixes for oe-build-perf-test Markus Lehtonen @ 2016-09-07 7:28 ` Markus Lehtonen 2016-09-07 7:28 ` [PATCH 2/2] oeqa.buildperf: be sure to use the latest buildstats Markus Lehtonen 1 sibling, 0 replies; 3+ messages in thread From: Markus Lehtonen @ 2016-09-07 7:28 UTC (permalink / raw) To: openembedded-core Try to be more intelligent when splitting out recipe name, epoch, version and revision from the buildstat directory name. Previous assumption was that package versions never contain a dash but obviously that is not necessarily true. The new assumption is that the package version starts with a number. Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com> --- meta/lib/oeqa/buildperf/base.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/meta/lib/oeqa/buildperf/base.py b/meta/lib/oeqa/buildperf/base.py index 2325cd1..7dfb2bf 100644 --- a/meta/lib/oeqa/buildperf/base.py +++ b/meta/lib/oeqa/buildperf/base.py @@ -425,8 +425,10 @@ class BuildPerfTestCase(unittest.TestCase): """Save buildstats""" def split_nevr(nevr): """Split name and version information from recipe "nevr" string""" - name, e_v, revision = nevr.rsplit('-', 2) - match = re.match(r'^((?P<epoch>[0-9]{1,5})_)?(?P<version>.*)$', e_v) + n_e_v, revision = nevr.rsplit('-', 1) + match = re.match(r'^(?P<name>\S+)-((?P<epoch>[0-9]{1,5})_)?(?P<version>[0-9]\S*)$', + n_e_v) + name = match.group('name') version = match.group('version') epoch = match.group('epoch') return name, epoch, version, revision -- 2.6.6 ^ permalink raw reply related [flat|nested] 3+ messages in thread
* [PATCH 2/2] oeqa.buildperf: be sure to use the latest buildstats 2016-09-07 7:28 [PATCH 0/2] Fixes for oe-build-perf-test Markus Lehtonen 2016-09-07 7:28 ` [PATCH 1/2] oeqa.buildperf: try harder when splitting 'nevr' string Markus Lehtonen @ 2016-09-07 7:28 ` Markus Lehtonen 1 sibling, 0 replies; 3+ messages in thread From: Markus Lehtonen @ 2016-09-07 7:28 UTC (permalink / raw) To: openembedded-core Be sure to take the latest buildstats if multiple buildstats are found. Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com> --- meta/lib/oeqa/buildperf/base.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/meta/lib/oeqa/buildperf/base.py b/meta/lib/oeqa/buildperf/base.py index 7dfb2bf..9700c05 100644 --- a/meta/lib/oeqa/buildperf/base.py +++ b/meta/lib/oeqa/buildperf/base.py @@ -466,7 +466,7 @@ class BuildPerfTestCase(unittest.TestCase): return bs_json log.info('Saving buildstats in JSON format') - bs_dirs = os.listdir(self.bb_vars['BUILDSTATS_BASE']) + bs_dirs = sorted(os.listdir(self.bb_vars['BUILDSTATS_BASE'])) if len(bs_dirs) > 1: log.warning("Multiple buildstats found for test %s, only " "archiving the last one", self.name) -- 2.6.6 ^ permalink raw reply related [flat|nested] 3+ messages in thread
end of thread, other threads:[~2016-09-07 7:28 UTC | newest] Thread overview: 3+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- 2016-09-07 7:28 [PATCH 0/2] Fixes for oe-build-perf-test Markus Lehtonen 2016-09-07 7:28 ` [PATCH 1/2] oeqa.buildperf: try harder when splitting 'nevr' string Markus Lehtonen 2016-09-07 7:28 ` [PATCH 2/2] oeqa.buildperf: be sure to use the latest buildstats Markus Lehtonen
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox