-
Notifications
You must be signed in to change notification settings - Fork 14
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
CI: add benchmark workflow and script #250
base: main
Are you sure you want to change the base?
Conversation
Signed-off-by: Saurabh Kumar Singh <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just a few nitpicks but we also need to add the CONBENCH_EMAIL and CONBENCH_PASS secrets to this repo
Signed-off-by: Saurabh Kumar Singh <[email protected]>
Signed-off-by: Saurabh Kumar Singh <[email protected]>
Hey @zeroshade, it would be good if you could share your thoughts here. |
.github/workflows/benchmark.yml
Outdated
- name: Run Benchmarks | ||
if: >- | ||
success() && github.event_name == 'push' && github.repository == 'apache/arrow-go' && github.ref_name == 'main' | ||
env: | ||
CONBENCH_URL: https://conbench.ursa.dev | ||
CONBENCH_EMAIL: ${{ secrets.CONBENCH_EMAIL }} | ||
CONBENCH_PASSWORD: ${{ secrets.CONBENCH_PASS }} | ||
CONBENCH_REF: ${{ github.ref_name }} | ||
CONBENCH_MACHINE_INFO_NAME: ${{ matrix.arch }}-debian-12 | ||
run: | | ||
python3 -m pip install benchadapt@git+https://github.com/conbench/conbench.git@main#subdirectory=benchadapt/python | ||
python3 ci/scripts/go_bench_adapt.py |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
How about running only ci/scripts/bench.sh --json
on pull request (and push on fork too?) for testing?
- name: Run Benchmarks
if: github.event_name == 'pull_request'
run: |
ci/scripts/bench.sh --json
- name: Run Benchamrks
if: >-
success() && github.event_name == 'push' && github.repository == 'apache/arrow-go' && github.ref_name == 'main'
env:
...
run: |
...
If it's possible, the following may be better:
- name: Run benchmarks
run: |
ci/scripts/bench.sh --json
- name: Upload results
if: github.event_name == 'push' && github.repository == 'apache/arrow-go' && github.ref_name == 'main'
env:
...
run: |
...
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Well, I went with:
- name: Run benchmarks
run: |
ci/scripts/bench.sh --json
- name: Upload results
if: github.event_name == 'push' && github.repository == 'apache/arrow-go' && github.ref_name == 'main'
env:
...
run: |
...
IMO it makes more sense to have a trigger push event on the main branch and the previous review from @assignUser here suggests that benchmark dumps are quite large and no pull request based triggering.
Hey @singh1203 ! I'm at FOSDEM25 this weekend, I'll try to give this a look but I might not get to it until Monday/Tuesday. |
Signed-off-by: Saurabh Kumar Singh <[email protected]>
94cabdd
to
4dc951e
Compare
@kou Please let me know if I missed something, guidance will be appreciated. |
41cbba6
to
559a62d
Compare
Ah, could you try |
@kou Done |
6ed51f4
to
78da4c0
Compare
78da4c0
to
1ce9cb0
Compare
Signed-off-by: Saurabh Kumar Singh <[email protected]>
1ce9cb0
to
4f7b37d
Compare
Fixes: #85
What changes are included in this PR?
Added Benchmark CI using Debian as runtime environment
Are these changes tested?
Yes, I have tested the changes locally.