Modify buildstats to be merged inside buildhistory
PATCH 1/1 Modify buildstats to be merged inside buildhistory
- added buildstats inheritance inside buildhistory
- reworked the buildstats directory structure not to contain the build name(read: the build start date). Now it only contains the target name and machine. This is usefull in order to reduce git noise.
- because builds are no longer separated by build name(read: date) it is necessary to remake(remove and create from scratch) the buildstats folder for each build in order keep buildstats compatible with tools like pybootchartgui.py
Some changes to make the new functionality compatible with Yocto:
- remove buildstats from default usage because it now needs buildhistory (remove it from USER_CLASSES in local.conf)
- add 'buildhistory' to USER_CLASSES or add INHERIT += "buildhistory" in local.conf
OPTIONAL: - I tested this patch with buildhistory under git enabled (BUILDHISTORY_COMMIT = "1" in local.conf). I believe this should be made default.
I made some tests with the buildhistory-diff tool and it is compatible with the changes. We can add further functionality to it in order to make it interpret buildstats data.
--- meta/classes/buildhistory.bbclass | 1 + meta/classes/buildstats.bbclass | 8 ++++++-- 2 files changed, 7 insertions(+), 2 deletions(-)
meta/classes/buildhistory.bbclass +1 -0
@@ -19,6 +19,7 @@ BUILDHISTORY_PUSH_REPO ?= "" # Must inherit package first before changing PACKAGEFUNCS inherit package +inherit buildstats PACKAGEFUNCS += "buildhistory_emit_pkghistory" # We don't want to force a rerun of do_package for everything
meta/classes/buildstats.bbclass +6 -2
@@ -1,4 +1,4 @@ -BUILDSTATS_BASE = "${TMPDIR}/buildstats/" +BUILDSTATS_BASE = "${BUILDHISTORY_DIR}/buildstats" BNFILE = "${BUILDSTATS_BASE}/.buildname" DEVFILE = "${BUILDSTATS_BASE}/.device"
@@ -33,7 +33,7 @@ def set_bn(e): def get_bn(e): with open(e.data.getVar('BNFILE', True)) as f: - bn = f.readline() + bn = str(f.readline()).split("/")[0] return bn def set_device(e):
@@ -175,6 +175,10 @@ python run_buildstats () { # set the buildname ######################################################################## try: + bb.utils.remove(e.data.getVar('BUILDSTATS_BASE', True), recurse=True) + except: + pass + try: bb.utils.mkdirhier(e.data.getVar('BUILDSTATS_BASE', True)) except: pass
Signature · 1 line
1.7.9.5
Quoted 26 lines · Corneliu Stoicescu
- added buildstats inheritance inside buildhistory
- reworked the buildstats directory structure not to contain the build name(read: the build start date). Now it only contains the target name and machine. This is usefull in order to reduce git noise.
- because builds are no longer separated by build name(read: date) it is necessary to remake(remove and create from scratch) the buildstats folder for each build in order keep buildstats compatible with tools likepybootchartgui.pySome changes to make the new functionality compatible with Yocto:
- remove buildstats from default usage because it now needs buildhistory (remove it fromUSER_CLASSESin local.conf)
- add 'buildhistory' toUSER_CLASSESor add INHERIT += "buildhistory" in local.conf
OPTIONAL: - I tested this patch with buildhistory under git enabled (BUILDHISTORY_COMMIT= "1" in local.conf). I believe this should be made default.I made some tests with the buildhistory-diff tool and it is compatible with the changes. We can add further functionality to it in order to make it interpret buildstats data.
Signed-off-by Corneliu Stoicescu <[email protected]>--- meta/classes/buildhistory.bbclass | 1 + meta/classes/buildstats.bbclass | 8 ++++++-- 2 files changed, 7 insertions(+), 2 deletions(-)meta/classes/buildhistory.bbclass +0
-0
meta/classes/buildhistory.bbclass BUILDHISTORY_PUSH_REPO ?= "" · line 23
Quoted 5 lines
meta/classes/buildhistory.bbclass +1
-0@@ -19,6 +19,7 @@ BUILDHISTORY_PUSH_REPO ?= "" # Must inherit package first before changing PACKAGEFUNCS inherit package +inherit buildstats PACKAGEFUNCS += "buildhistory_emit_pkghistory"
We could do a
BUILDSTATS_BASE = "${BUILDHISTORY_DIR}/buildstats"
in buildhistory.bbclass
meta/classes/buildstats.bbclass line 1
Quoted 7 lines
meta/classes/buildhistory.bbclass +0
-0# We don't want to force a rerun of do_package for everythingmeta/classes/buildstats.bbclass +0
-1@@ -1,4 +1,4 @@ -BUILDSTATS_BASE = "${TMPDIR}/buildstats/"
and here do BUILDSTATS_BASE ??= "${TMPDIR}/buildstats/"
meta/classes/buildstats.bbclass line 3
Quoted 3 lines
meta/classes/buildstats.bbclass +1
-0+BUILDSTATS_BASE = "${BUILDHISTORY_DIR}/buildstats" BNFILE = "${BUILDSTATS_BASE}/.buildname" DEVFILE = "${BUILDSTATS_BASE}/.device"
so when buildhistory is used, buildstats automatically becomes part of it?
Quoted 10 lines
meta/classes/buildstats.bbclass +1
-1@@ -33,7 +33,7 @@ def set_bn(e): def get_bn(e): with open(e.data.getVar('BNFILE', True)) as f: - bn = f.readline() + bn = str(f.readline()).split("/")[0] return bn def set_device(e):
meta/classes/buildstats.bbclass python run_buildstats () { · line 178
Quoted 4 lines
meta/classes/buildstats.bbclass +1
-0@@ -175,6 +175,10 @@ python run_buildstats () { # set the buildname ######################################################################## try: + bb.utils.remove(e.data.getVar('BUILDSTATS_BASE', True), recurse=True)
Do we need to remove this?
I'll let Paul comment on other elements of this.
Cheers,
Richard
Quoted 6 lines
meta/classes/buildstats.bbclass +3
-0+ except: + pass + try: bb.utils.mkdirhier(e.data.getVar('BUILDSTATS_BASE', True)) except: pass
Quoted 58 lines
-----Original Message-----
From: Richard Purdie [mailto:[email protected]]
Sent: Friday, November 01, 2013 8:07 PM
To: Stoicescu, CorneliuX
Cc: [email protected]
Subject: Re: [OE-core] [PATCH] Modify buildstats to be merged inside buildhistoryQuoted 2 lines · Corneliu Stoicescu
- added buildstats inheritance inside buildhistory
- reworked the buildstats directory structure not to contain the buildname(read: the build start date).
Quoted 1 line
Now it only contains the target name and machine. This is usefull in order
to reduce git noise.
Quoted 5 lines
- because builds are no longer separated by build name(read: date) it is necessary to remake(remove and create from scratch) the buildstats folder for each build in order keep buildstats compatible with tools like
pybootchartgui.pyQuoted 7 lines
Some changes to make the new functionality compatible with Yocto:
- remove buildstats from default usage because it now needs buildhistory (remove it fromUSER_CLASSESin local.conf)
- add 'buildhistory' toUSER_CLASSESor add INHERIT += "buildhistory" in local.conf
OPTIONAL: - I tested this patch with buildhistory under git enabled (BUILDHISTORY_COMMIT= "1" in local.conf). I believe this should be madedefault.
Quoted 3 lines
I made some tests with the buildhistory-diff tool and it is compatible with the changes. We can add further functionality to it in order to make it
interpret buildstats data.
Quoted 15 lines
Signed-off-by Corneliu Stoicescu <[email protected]>--- meta/classes/buildhistory.bbclass | 1 + meta/classes/buildstats.bbclass | 8 ++++++-- 2 files changed, 7 insertions(+), 2 deletions(-)meta/classes/buildhistory.bbclass +0
-0@@ -19,6 +19,7 @@ BUILDHISTORY_PUSH_REPO ?= "" # Must inherit package first before changing PACKAGEFUNCS inheritQuoted 3 lines
package
+inherit buildstats
PACKAGEFUNCS += "buildhistory_emit_pkghistory"We could do a
BUILDSTATS_BASE= "${BUILDHISTORY_DIR}/buildstats"in buildhistory.bbclass
Quoted 10 lines
meta/classes/buildstats.bbclass line 1
Quoted 7 lines
# We don't want to force a rerun of
do_packagefor everything diff
--git a/meta/classes/buildstats.bbclass b/meta/classes/buildstats.bbclass index 72fff11..476ae94 100644meta/classes/buildstats.bbclass +0
-1@@ -1,4 +1,4 @@ -BUILDSTATS_BASE = "${TMPDIR}/buildstats/"and here do
BUILDSTATS_BASE??= "${TMPDIR}/buildstats/"
Yes, this would help buildstats work without buildhistory. Thanks :)
Quoted 20 lines
meta/classes/buildstats.bbclass line 3
Quoted 3 lines
meta/classes/buildstats.bbclass +1
-0+BUILDSTATS_BASE = "${BUILDHISTORY_DIR}/buildstats" BNFILE = "${BUILDSTATS_BASE}/.buildname" DEVFILE = "${BUILDSTATS_BASE}/.device"so when buildhistory is used, buildstats automatically becomes part of it?
meta/classes/buildstats.bbclass python run_buildstats () { · line 176
Quoted 12 lines
meta/classes/buildstats.bbclass +1
-1@@ -33,7 +33,7 @@ def set_bn(e): def get_bn(e): with open(e.data.getVar('BNFILE', True)) as f: - bn = f.readline() + bn = str(f.readline()).split("/")[0] return bn def set_device(e):@@ -175,6 +175,10 @@ python run_buildstats () { # set the buildname##############################################################
##########
Quoted 7 lines
meta/classes/buildstats.bbclass python run_buildstats () { · line 179
Quoted 3 lines
meta/classes/buildstats.bbclass +2
-0try: + bb.utils.remove(e.data.getVar('BUILDSTATS_BASE', True), + recurse=True)Do we need to remove this?
By reworking the buildstats directory structure to not use the build date to separate builds, if we don't remove buildstats each time we make a new build the information from multiple builds will merge and tools like bybootchartguy.py will not work anymore with buildstats.
Do you have any idea on how else we could keep this compatibility?
Quoted 13 lines
I'll let Paul comment on other elements of this.
Cheers,
Richard
Quoted 6 lines
meta/classes/buildstats.bbclass +3
-0+ except: + pass + try: bb.utils.mkdirhier(e.data.getVar('BUILDSTATS_BASE', True)) except: pass
Regards,
Corneliu
Quoted 25 lines · CorneliuX
Quoted 25 lines
Quoted 3 lines
+BUILDSTATS_BASE = "${BUILDHISTORY_DIR}/buildstats"
BNFILE = "${BUILDSTATS_BASE}/.buildname" DEVFILE = "${BUILDSTATS_BASE}/.device"so when buildhistory is used, buildstats automatically becomes part of it?
meta/classes/buildstats.bbclass python run_buildstats () { · line 176
Quoted 12 lines
meta/classes/buildstats.bbclass +1
-1@@ -33,7 +33,7 @@ def set_bn(e): def get_bn(e): with open(e.data.getVar('BNFILE', True)) as f: - bn = f.readline() + bn = str(f.readline()).split("/")[0] return bn def set_device(e):@@ -175,6 +175,10 @@ python run_buildstats () { # set the buildname##############################################################
##########Quoted 3 lines
(quoted diff) +2
-0try: + bb.utils.remove(e.data.getVar('BUILDSTATS_BASE', True), + recurse=True)
Quoted 7 lines
Quoted 2 lines
Do we need to remove this?
By reworking the buildstats directory structure to not use the build date to separate builds, if we don't remove buildstats each time we make a new build the information from multiple builds will merge and tools like
bybootchartguy.pywill not work anymore with buildstats.
I'd have expected that separate directories for each build are still maintained. Testing locally here, I can use pybootchartgui in the form:
scripts/pybootchartgui/pybootchartgui.py build/tmp/buildstats/core-image-sato-qemux86/201309302155/
and I'd have thought a similar command would still work in buildhistory since we'd still have the timestamped directory there?
Cheers,
Richard
Quoted 46 lines
-----Original Message-----
From: Richard Purdie [mailto:[email protected]]
Sent: Monday, November 04, 2013 11:16 AM
To: Stoicescu, CorneliuX
Cc: [email protected]
Subject: Re: [OE-core] [PATCH] Modify buildstats to be merged inside buildhistoryQuoted 14 lines · CorneliuX
Quoted 14 lines
Quoted 3 lines
+BUILDSTATS_BASE = "${BUILDHISTORY_DIR}/buildstats"
BNFILE = "${BUILDSTATS_BASE}/.buildname" DEVFILE = "${BUILDSTATS_BASE}/.device"so when buildhistory is used, buildstats automatically becomes part of it?
Quoted 8 lines
meta/classes/buildstats.bbclass +1
-1@@ -33,7 +33,7 @@ def set_bn(e): def get_bn(e): with open(e.data.getVar('BNFILE', True)) as f: - bn = f.readline() + bn = str(f.readline()).split("/")[0] return bnQuoted 5 lines
Quoted 5 lines
meta/classes/buildstats.bbclass python run_buildstats () { · line 176
Quoted 4 lines
meta/classes/buildstats.bbclass +0
-0def set_device(e):@@ -175,6 +175,10 @@ python run_buildstats () { # set the buildname##############################################################
Quoted 7 lines
Quoted 7 lines
##########
Quoted 4 lines
(quoted diff) +3
-0try: + bb.utils.remove(e.data.getVar('BUILDSTATS_BASE', + True), + recurse=True)Quoted 7 lines
Quoted 2 lines
Do we need to remove this?
By reworking the buildstats directory structure to not use the build date to separate builds, if we don't remove buildstats each time we make a new build the information from multiple builds will merge and tools like
bybootchartguy.pywill not work anymore with buildstats.
Quoted 9 lines
I'd have expected that separate directories for each build are still maintained. Testing locally here, I can use pybootchartgui in the form:
scripts/pybootchartgui/pybootchartgui.pybuild/tmp/buildstats/core-image- sato-qemux86/201309302155/and I'd have thought a similar command would still work in buildhistory since we'd still have the timestamped directory there?
The timestamped directory was removed in order to reduce buildhistory git noise. Creating a new directory for each build will also increase the git repo size dramatically In time.
If we choose to not use the timestamped directory, we need to delete the buildstats data each build because, in contrast to buildhistory, buildstats data is relevant when compiled as a whole. This is also how pybootchart interprets it.
Quoted 3 lines
Cheers,
Richard
Regards,
Corneliu
Quoted 54 lines · CorneliuX
Quoted 44 lines
-----Original Message-----
From: Richard Purdie [mailto:[email protected]]
Sent: Monday, November 04, 2013 11:16 AM
To: Stoicescu, CorneliuX
Cc: [email protected]
Subject: Re: [OE-core] [PATCH] Modify buildstats to be merged inside buildhistoryQuoted 14 lines · CorneliuX
Quoted 14 lines
Quoted 3 lines
+BUILDSTATS_BASE = "${BUILDHISTORY_DIR}/buildstats"
BNFILE = "${BUILDSTATS_BASE}/.buildname" DEVFILE = "${BUILDSTATS_BASE}/.device"so when buildhistory is used, buildstats automatically becomes part of it?
Quoted 8 lines
meta/classes/buildstats.bbclass +1
-1@@ -33,7 +33,7 @@ def set_bn(e): def get_bn(e): with open(e.data.getVar('BNFILE', True)) as f: - bn = f.readline() + bn = str(f.readline()).split("/")[0] return bnQuoted 5 lines
Quoted 5 lines
meta/classes/buildstats.bbclass python run_buildstats () { · line 176
Quoted 4 lines
meta/classes/buildstats.bbclass +0
-0def set_device(e):@@ -175,6 +175,10 @@ python run_buildstats () { # set the buildname##############################################################
Quoted 7 lines
Quoted 7 lines
##########
Quoted 4 lines
(quoted diff) +3
-0try: + bb.utils.remove(e.data.getVar('BUILDSTATS_BASE', + True), + recurse=True)Quoted 7 lines
Quoted 2 lines
Do we need to remove this?
By reworking the buildstats directory structure to not use the build date to separate builds, if we don't remove buildstats each time we make a new build the information from multiple builds will merge and tools like
bybootchartguy.pywill not work anymore with buildstats.Quoted 9 lines
I'd have expected that separate directories for each build are still maintained. Testing locally here, I can use pybootchartgui in the form:
scripts/pybootchartgui/pybootchartgui.pybuild/tmp/buildstats/core-image- sato-qemux86/201309302155/and I'd have thought a similar command would still work in buildhistory since we'd still have the timestamped directory there?
Quoted 7 lines
The timestamped directory was removed in order to reduce buildhistory git noise. Creating a new directory for each build will also increase the git repo size dramatically In time.
If we choose to not use the timestamped directory, we need to delete the buildstats data each build because, in contrast to buildhistory, buildstats data is relevant when compiled as a whole. This is also how pybootchart interprets it.
I hadn't realised you'd removed the timestamps. If you do that there is a problem, yes. Paul, how do you think we should handle this? I'd have thought it would be ok to save the historical data in there side by side since the size of the git repo will be the same, the size of the checkout will just be different. We do need to save something into the timestamped directory saying which revision(s) a given build happened against though so we have some kind of historical context.
Paul: Any thoughts on this?
Cheers,
Richard
Quoted 74 lines · On Monday 04 November 2013 09:31:19 Richard Purdie wrote:
Quoted 56 lines · CorneliuX
Quoted 49 lines
-----Original Message-----
From: Richard Purdie [mailto:[email protected]]
Sent: Monday, November 04, 2013 11:16 AM
To: Stoicescu, CorneliuX
Cc: [email protected]
Subject: Re: [OE-core] [PATCH] Modify buildstats to be merged inside buildhistoryQuoted 14 lines · CorneliuX
Quoted 14 lines
Quoted 4 lines
+BUILDSTATS_BASE = "${BUILDHISTORY_DIR}/buildstats"
BNFILE = "${BUILDSTATS_BASE}/.buildname"
DEVFILE = "${BUILDSTATS_BASE}/.device"so when buildhistory is used, buildstats automatically becomes part of it?
Quoted 6 lines
meta/classes/buildstats.bbclass +1
-1@@ -33,7 +33,7 @@ def set_bn(e): def get_bn(e): with open(e.data.getVar('BNFILE', True)) as f: - bn = f.readline() + bn = str(f.readline()).split("/")[0]Quoted 6 lines
Quoted 6 lines
meta/classes/buildstats.bbclass python run_buildstats () { · line 176
Quoted 6 lines
meta/classes/buildstats.bbclass +0
-0return bn def set_device(e):@@ -175,6 +175,10 @@ python run_buildstats () { # set the buildname##############################################################
Quoted 7 lines
Quoted 7 lines
##########
Quoted 4 lines
(quoted diff) +3
-0try: + bb.utils.remove(e.data.getVar('BUILDSTATS_BASE', + True), + recurse=True)Quoted 6 lines
Quoted 1 line
Do we need to remove this?
By reworking the buildstats directory structure to not use the build date to separate builds, if we don't remove buildstats each time we make a new build the information from multiple builds will merge and tools like
bybootchartguy.pywill not work anymore with buildstats.I'd have expected that separate directories for each build are still maintained. Testing locally here, I can use pybootchartgui in the form:
Quoted 6 lines
scripts/pybootchartgui/pybootchartgui.py
build/tmp/buildstats/core-image-
sato-qemux86/201309302155/and I'd have thought a similar command would still work in buildhistory since we'd still have the timestamped directory there?
Quoted 8 lines
The timestamped directory was removed in order to reduce buildhistory git noise. Creating a new directory for each build will also increase the git repo size dramatically In time.
If we choose to not use the timestamped directory, we need to delete the buildstats data each build because, in contrast to buildhistory, buildstats data is relevant when compiled as a whole. This is also how pybootchart interprets it.
I hadn't realised you'd removed the timestamps. If you do that there is a problem, yes. Paul, how do you think we should handle this? I'd have thought it would be ok to save the historical data in there side by side since the size of the git repo will be the same, the size of the checkout will just be different. We do need to save something into the timestamped directory saying which revision(s) a given build happened against though so we have some kind of historical context.
Quoted 1 line
Paul: Any thoughts on this?
The basic idea with buildhistory is to only keep the latest version of data stored within it, on the assumption that you could always get previous versions from the git history; this also makes comparisons to previous versions straightforward.
As far as timestamps go, BUILDNAME does go into the commit message; if it helps we record the metadata revisions corresponding to the build in the buildhistory repo as well (in a "metadata-revs" file).
If we do want to keep the builds split out in separate per-build directories then what are we gaining by trying to push buildstats into buildhistory in the first place?
Cheers,
Paul
Signature · 2 lines
Paul Eggleton Intel Open Source Technology Centre
Quoted 5 lines · Paul Eggleton
On Monday 04 November 2013 09:31:19 Richard Purdie wrote:
The basic idea with buildhistory is to only keep the latest version of data stored within it, on the assumption that you could always get previous versions from the git history; this also makes comparisons to previous versions straightforward.
This makes sense for absolute value data. The task build statistics are not entirely "absolute" data though and having to traverse many checkouts trying to build up say "average task timing" might be problematic.
Quoted 3 lines
As far as timestamps go, BUILDNAME does go into the commit message; if it helps we record the metadata revisions corresponding to the build in the buildhistory repo as well (in a "metadata-revs" file).
Currently the main use of the data is to say "visualise this build" where you're building a target or set of targets. We name the build after the first item in the list of build targets.
The logged data is useful both as part of a set which are viewed together and individually on a task basis so see how much CPU/Disk a given task uses and how that changes over time.
The tricky part is firstly that we should really use a true buildname, secondly that we need both the set of data and data per target.
If we just logged data per target, we could overwrite any previous data but that would break usage as a set.
Quoted 3 lines
If we do want to keep the builds split out in separate per-build directories then what are we gaining by trying to push buildstats into buildhistory in the first place?
We have a need to be able to merge and store build statistic data which build history already does well. The question is whether it makes sense to use the same mechanism or not since there are commonalities and differences. Having two data storage systems and repositories doesn't make a lot of sense.
I'm not sure this makes a solution much clearer but it does hopefully better explain the challenge.
Cheers,
Richard
Quoted 43 lines
-----Original Message-----
From: Richard Purdie [mailto:[email protected]]
Sent: Monday, November 04, 2013 2:35 PM
To: Paul Eggleton
Cc: Stoicescu, CorneliuX; [email protected]
Subject: Re: [OE-core] [PATCH] Modify buildstats to be merged inside buildhistoryQuoted 5 lines · Paul Eggleton
On Monday 04 November 2013 09:31:19 Richard Purdie wrote:
The basic idea with buildhistory is to only keep the latest version of data stored within it, on the assumption that you could always get previous versions from the git history; this also makes comparisons to previous versions straightforward.This makes sense for absolute value data. The task build statistics are not entirely "absolute" data though and having to traverse many checkouts trying to build up say "average task timing" might be problematic.
Quoted 3 lines
As far as timestamps go, BUILDNAME does go into the commit message; if it helps we record the metadata revisions corresponding to the build in the buildhistory repo as well (in a "metadata-revs" file).
Currently the main use of the data is to say "visualise this build" where you're building a target or set of targets. We name the build after the first item in the list of build targets.
The logged data is useful both as part of a set which are viewed together and individually on a task basis so see how much CPU/Disk a given task uses and how that changes over time.
The tricky part is firstly that we should really use a true buildname, secondly that we need both the set of data and data per target.
If we just logged data per target, we could overwrite any previous data but that would break usage as a set.
Quoted 3 lines
If we do want to keep the builds split out in separate per-build directories then what are we gaining by trying to push buildstats into buildhistory in the first place?
Quoted 8 lines
We have a need to be able to merge and store build statistic data which build history already does well. The question is whether it makes sense to use the same mechanism or not since there are commonalities and differences. Having two data storage systems and repositories doesn't make a lot of sense.
I'm not sure this makes a solution much clearer but it does hopefully better explain the challenge.
We could use add code to buildhistory-diff and make it return comparison buildstats data for a set of builds ? Usually people look at statistics for a certain task at a time and such a tool could actually make things easier.
Regards,
Corneliu
Quoted 42 lines · CorneliuX
Quoted 41 lines · On Monday 04 November 2013 14:35:00 Richard Purdie wrote:
Quoted 5 lines · Paul Eggleton
On Monday 04 November 2013 09:31:19 Richard Purdie wrote:
The basic idea with buildhistory is to only keep the latest version of data stored within it, on the assumption that you could always get previous versions from the git history; this also makes comparisons to previous versions straightforward.This makes sense for absolute value data. The task build statistics are not
entirely "absolute" data though and having to traverse many checkouts trying to build up say "average task timing" might be problematic.Quoted 3 lines
As far as timestamps go, BUILDNAME does go into the commit message; if it helps we record the metadata revisions corresponding to the build in the buildhistory repo as well (in a "metadata-revs" file).
Currently the main use of the data is to say "visualise this build" where you're building a target or set of targets. We name the build after the first item in the list of build targets.
The logged data is useful both as part of a set which are viewed together and individually on a task basis so see how much CPU/Disk a given task uses and how that changes over time.
The tricky part is firstly that we should really use a true buildname, secondly that we need both the set of data and data per target.
If we just logged data per target, we could overwrite any previous data but
that would break usage as a set.Quoted 3 lines
If we do want to keep the builds split out in separate per-build directories then what are we gaining by trying to push buildstats into buildhistory in the first place?
We have a need to be able to merge and store build statistic data which build history already does well. The question is whether it makes sense to use the same mechanism or not since there are commonalities and differences. Having two data storage systems and repositories doesn't make a lot of sense.
Quoted 6 lines
Quoted 2 lines
I'm not sure this makes a solution much clearer but it does hopefully better explain the challenge.
We could use add code to buildhistory-diff and make it return comparison buildstats data for a set of builds ? Usually people look at statistics for a certain task at a time and such a tool could actually make things easier.
Just to round this off - I still have some reservations about adding this data in its current form to buildhistory, but being able to associate it with the build and other changes that occurred at the same time is valuable. Let's add it under ${BUILDHISTORY_DIR} using ${BUILDNAME} as a subdirectory as Richard suggests, and then later we can add some analysis code and maybe optional automatic pruning of old data to keep things tidy.
Cheers,
Paul
Signature · 2 lines
Paul Eggleton Intel Open Source Technology Centre