Skip to content

Commit

Permalink
ARROW-18374: [Go][CI][Benchmarking] Fix Go benchmark github info (apa…
Browse files Browse the repository at this point in the history
…che#14691)

This PR fixes the Go benchmark script to work with recent `benchadapt` changes.

Authored-by: Austin Dickey <[email protected]>
Signed-off-by: Matt Topol <[email protected]>
  • Loading branch information
austin3dickey authored Nov 21, 2022
1 parent 42caa23 commit 7198676
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions ci/scripts/go_bench_adapt.py
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,11 @@ def _transform_results(self) -> List[BenchmarkResult]:
"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)
Expand All @@ -89,4 +93,4 @@ def _transform_results(self) -> List[BenchmarkResult]:

if __name__ == "__main__":
go_adapter = GoAdapter(result_fields_override={"info":{}})
go_adapter()
go_adapter()

0 comments on commit 7198676

Please sign in to comment.