You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@arrow.apache.org by ze...@apache.org on 2022/11/21 18:51:03 UTC

[arrow] branch master updated: ARROW-18374: [Go][CI][Benchmarking] Fix Go benchmark github info (#14691)

This is an automated email from the ASF dual-hosted git repository.

zeroshade pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/arrow.git


The following commit(s) were added to refs/heads/master by this push:
     new 7198676ac4 ARROW-18374: [Go][CI][Benchmarking] Fix Go benchmark github info (#14691)
7198676ac4 is described below

commit 7198676ac4d69f0a10bc750647cab1f7fd12a7db
Author: Austin Dickey <au...@gmail.com>
AuthorDate: Mon Nov 21 12:50:56 2022 -0600

    ARROW-18374: [Go][CI][Benchmarking] Fix Go benchmark github info (#14691)
    
    This PR fixes the Go benchmark script to work with recent `benchadapt` changes.
    
    Authored-by: Austin Dickey <au...@gmail.com>
    Signed-off-by: Matt Topol <zo...@gmail.com>
---
 ci/scripts/go_bench_adapt.py | 8 ++++++--
 1 file changed, 6 insertions(+), 2 deletions(-)

diff --git a/ci/scripts/go_bench_adapt.py b/ci/scripts/go_bench_adapt.py
index fac67bbdde..31ec093ba0 100644
--- a/ci/scripts/go_bench_adapt.py
+++ b/ci/scripts/go_bench_adapt.py
@@ -79,7 +79,11 @@ class GoAdapter(BenchmarkAdapter):
                         "params": '/'.join(pieces[1:]),
                     },
                     run_reason=RUN_REASON,
-                    github=None, # scrape info from cloned repo
+                    github={
+                        "repository": os.environ["GITHUB_REPOSITORY"],
+                        "commit": os.environ["GITHUB_SHA"],
+                        "pr_number": None,  # we currently only run this on the default branch
+                    },
                 )
                 parsed.run_name = f"{parsed.run_reason}: {parsed.github['commit']}"
                 parsed_results.append(parsed)
@@ -89,4 +93,4 @@ class GoAdapter(BenchmarkAdapter):
 
 if __name__ == "__main__":
     go_adapter = GoAdapter(result_fields_override={"info":{}})
-    go_adapter()
\ No newline at end of file
+    go_adapter()