[commit: ghc] wip/perf-testsuite: Can now load up git note data into python (4fcf714)

git at git.haskell.org git at git.haskell.org
Fri Jul 28 20:33:25 UTC 2017


Repository : ssh://git@git.haskell.org/ghc

On branch  : wip/perf-testsuite
Link       : http://ghc.haskell.org/trac/ghc/changeset/4fcf7149b6e5015341f5f3daef3efda22b8d7c61/ghc

>---------------------------------------------------------------

commit 4fcf7149b6e5015341f5f3daef3efda22b8d7c61
Author: Jared Weakly <jweakly at pdx.edu>
Date:   Tue Jul 18 12:17:57 2017 -0700

    Can now load up git note data into python


>---------------------------------------------------------------

4fcf7149b6e5015341f5f3daef3efda22b8d7c61
 testsuite/driver/runtests.py | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/testsuite/driver/runtests.py b/testsuite/driver/runtests.py
index 9af42bc..bf7ee18 100644
--- a/testsuite/driver/runtests.py
+++ b/testsuite/driver/runtests.py
@@ -337,8 +337,10 @@ else:
     sys.stdout.flush()
 
     summary(t, sys.stdout, config.no_print_summary)
-    print("Only perf tests: " + str(config.only_perf_tests) + "\n")
-    print("Skip perf tests: " + str(config.skip_perf_tests) + "\n")
+
+    if config.use_git_notes:
+            note = subprocess.check_output(["git","notes","--ref=perf","append","-m", "\n".join(config.accumulate_metrics)])
+            parse_git_notes('perf') # Should this be hardcoded? Most likely not...
 
     # This here is loading up all of the git notes into memory.
     # It's most likely in the wrong spot and I haven't fully fleshed out



More information about the ghc-commits mailing list