[oe-commits] [openembedded-core] 02/03: scripts/oe-build-perf-report: Avoid buildstats warning

git at git.openembedded.org git at git.openembedded.org
Sun Jan 12 00:15:30 UTC 2020


This is an automated email from the git hooks/post-receive script.

rpurdie pushed a commit to branch master-next
in repository openembedded-core.

commit 92bbdd13588019b9210f0dcb7167a5a114923e8e
Author: Richard Purdie <richard.purdie at linuxfoundation.org>
AuthorDate: Sat Jan 11 16:10:43 2020 +0000

    scripts/oe-build-perf-report: Avoid buildstats warning
    
    When a comparision branch is set we see warnings. Set the notes branch
    correctly to avoid this kind of warning:
    
    INFO: Parsing buildstats from 'refs/notes/buildstats/perf-centos7.yoctoproject.org/master-next/qemux86'
    WARNING: Buildstats not found for perf-centos7.yoctoproject.org/master/qemux86/56808-g08220028e52992dcba667fc97bf3afe8be1949fb/0
    WARNING: Buildstats not found for perf-centos7.yoctoproject.org/master/qemux86/56808-g08220028e52992dcba667fc97bf3afe8be1949fb/1
    INFO: Buildstats were missing for some test runs, please run 'git fetch origin refs/notes/buildstats/perf-centos7.yoctoproject.org/master-next/qemux86:refs/notes/buildstats/perf-centos7.yoctoproject.org/master-next/qemux86' and try again
    
    Signed-off-by: Richard Purdie <richard.purdie at linuxfoundation.org>
---
 scripts/oe-build-perf-report | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/scripts/oe-build-perf-report b/scripts/oe-build-perf-report
index 21bde7e..8d62d8e 100755
--- a/scripts/oe-build-perf-report
+++ b/scripts/oe-build-perf-report
@@ -528,10 +528,12 @@ def main(argv=None):
     else:
         index1 = len(revs) - 1
 
+    notesbranch = args.branch
     if args.branch2:
         revs2.append(revs[index1])
         index1 = len(revs2) - 1
         revs = revs2
+        notesbranch = args.branch2
 
     if args.commit2:
         if args.commit_number2:
@@ -589,7 +591,7 @@ def main(argv=None):
     buildstats = None
     if args.dump_buildstats or args.html:
         outdir = 'oe-build-perf-buildstats' if args.dump_buildstats else None
-        notes_ref = 'buildstats/{}/{}/{}'.format(args.hostname, args.branch,
+        notes_ref = 'buildstats/{}/{}/{}'.format(args.hostname, notesbranch,
                                                  args.machine)
         buildstats = get_buildstats(repo, notes_ref, [rev_l, rev_r], outdir)
 

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.


More information about the Openembedded-commits mailing list