You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@arrow.apache.org by as...@apache.org on 2023/06/22 00:28:42 UTC
[arrow] branch main updated: GH-36218: [CI][Go] Run benchmark steps only on the main branch (#36219)
This is an automated email from the ASF dual-hosted git repository.
assignuser pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/arrow.git
The following commit(s) were added to refs/heads/main by this push:
new 5a58f7572b GH-36218: [CI][Go] Run benchmark steps only on the main branch (#36219)
5a58f7572b is described below
commit 5a58f7572b6656d4051ccc49f4f3ee1e6c134464
Author: Sutou Kouhei <ko...@clear-code.com>
AuthorDate: Thu Jun 22 09:28:36 2023 +0900
GH-36218: [CI][Go] Run benchmark steps only on the main branch (#36219)
### Rationale for this change
Because our benchmark tool supports only the main branch.
### What changes are included in this PR?
Add branch name check to the existing `if:`s.
### Are these changes tested?
No.
### Are there any user-facing changes?
No.
* Closes: #36218
Authored-by: Sutou Kouhei <ko...@clear-code.com>
Signed-off-by: Jacob Wujciak-Jens <ja...@wujciak.de>
---
.github/workflows/go.yml | 21 +++++++++++++++------
1 file changed, 15 insertions(+), 6 deletions(-)
diff --git a/.github/workflows/go.yml b/.github/workflows/go.yml
index 30b2bb60fd..fc0ac27c67 100644
--- a/.github/workflows/go.yml
+++ b/.github/workflows/go.yml
@@ -106,7 +106,8 @@ jobs:
success() &&
matrix.arch == 'amd64' &&
github.event_name == 'push' &&
- github.repository == 'apache/arrow'
+ github.repository == 'apache/arrow' &&
+ github.ref_name == 'main'
uses: actions/setup-go@v3
with:
go-version: ${{ matrix.go }}
@@ -132,13 +133,13 @@ jobs:
name: Go Cross-build for 386
runs-on: ubuntu-latest
if: ${{ !contains(github.event.pull_request.title, 'WIP') }}
- timeout-minutes: 20
+ timeout-minutes: 20
steps:
- name: Checkout Arrow
uses: actions/checkout@v3
with:
- fetch-depth: 0
- - name: Install Go
+ fetch-depth: 0
+ - name: Install Go
uses: actions/setup-go@v3
with:
go-version: 1.18
@@ -311,12 +312,20 @@ jobs:
shell: bash
run: ci/scripts/go_test.sh $(pwd)
- name: Setup Python
- if: success() && github.event_name == 'push' && github.repository == 'apache/arrow'
+ if: >-
+ success() &&
+ github.event_name == 'push' &&
+ github.repository == 'apache/arrow' &&
+ github.ref_name == 'main'
uses: actions/setup-python@v4
with:
python-version: '3.10'
- name: Run Benchmarks
- if: success() && github.event_name == 'push' && github.repository == 'apache/arrow'
+ if: >-
+ success() &&
+ github.event_name == 'push' &&
+ github.repository == 'apache/arrow' &&
+ github.ref_name == 'main'
shell: bash
env:
CONBENCH_URL: 'https://conbench.ursa.dev'