Skip to content

ARROW-17751: [Go][Benchmarking] Add Go Benchmark Script#14148

Merged
zeroshade merged 24 commits into
apache:masterfrom
zeroshade:go-benchmarks
Oct 21, 2022
Merged

ARROW-17751: [Go][Benchmarking] Add Go Benchmark Script#14148
zeroshade merged 24 commits into
apache:masterfrom
zeroshade:go-benchmarks

Conversation

@zeroshade

Copy link
Copy Markdown
Member

No description provided.

@zeroshade zeroshade requested a review from jonkeane September 15, 2022 20:32
@github-actions

Copy link
Copy Markdown

@github-actions

Copy link
Copy Markdown

⚠️ Ticket has not been started in JIRA, please click 'Start Progress'.

@jonkeane

Copy link
Copy Markdown
Member

This looks good to me — the CI failures don't look related, are they?

@zeroshade

Copy link
Copy Markdown
Member Author

@jonkeane you are correct, the CI failure is not related to this change at all.

@alistaire47 alistaire47 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looking at the top of .github/workflows/go.yml (which it won't let me comment on directly), it looks like this will run on more places than the default branch:

on:
  push:
    paths:
      - '.github/workflows/go.yml'
      - 'ci/docker/*_go.dockerfile'
      - 'ci/scripts/go_*'
      - 'go/**'
  pull_request:
    paths:
      - '.github/workflows/go.yml'
      - 'ci/docker/*_go.dockerfile'
      - 'ci/docker/**'
      - 'ci/scripts/go_*'
      - 'go/**'

...so run_reason needs to be flipped from actions (state passed through as an arg or env var, probably). It should be "commit" when on master, "pull request" when on a PR, and if this runs elsewhere on a branch...maybe "branch"; we haven't done that previously.

Once that's resolved, this looks good to go!

Comment thread .github/workflows/go.yml Outdated
- name: Test
shell: bash
run: ci/scripts/go_test.sh $(pwd)
run: ci/scripts/go_test.sh $(pwd)

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
run: ci/scripts/go_test.sh $(pwd)
run: ci/scripts/go_test.sh $(pwd)

Maybe try saving with "strip trailing whitespace"? Just trying to prevent future whitespace diffs

Comment thread ci/scripts/go_bench_adapt.py Outdated
"name": pieces[0],
"params": '/'.join(pieces[1:]),
},
run_reason=f'commit',

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this only going to run on master? If so, this is fine; if not, it needs to be flipped from gh actions

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Updated to have the reason derived by checking the branch ref_name for master -> 'commit' otherwise it uses branch

@assignUser assignUser left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The workflow yaml looks good, tested on your fork?

Comment thread .github/workflows/go.yml Outdated
- name: Test
shell: bash
run: ci/scripts/go_test.sh $(pwd)
run: ci/scripts/go_test.sh $(pwd)

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit

Suggested change
run: ci/scripts/go_test.sh $(pwd)
run: ci/scripts/go_test.sh $(pwd)

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ran trim trailing whitespace to fix that :)

And yea, tested it on my fork before I removed the runs on PRs to have it only run on pushes to apache/arrow repo.

@alistaire47 alistaire47 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm!

@zeroshade zeroshade merged commit 4ce6453 into apache:master Oct 21, 2022
@zeroshade zeroshade deleted the go-benchmarks branch October 21, 2022 18:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants