assignUser commented on code in PR #250: URL: https://github.com/apache/arrow-go/pull/250#discussion_r1917063771
########## .github/workflows/benchmark.yml: ########## @@ -0,0 +1,78 @@ +# Licensed to the Apache Software Foundation (ASF) under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The ASF licenses this file +# to you under the Apache License, Version 2.0 (the +# "License"); you may not use this file except in compliance +# with the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, +# software distributed under the License is distributed on an +# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +# KIND, either express or implied. See the License for the +# specific language governing permissions and limitations +# under the License. + +name: Benchmarks +on: + push: + branches: [ main ] + pull_request: + branches: [ main ] + workflow_dispatch: + Review Comment: ```suggestion permissions: contents: read ``` Minimize permissions ########## .github/workflows/benchmark.yml: ########## @@ -0,0 +1,78 @@ +# Licensed to the Apache Software Foundation (ASF) under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The ASF licenses this file +# to you under the Apache License, Version 2.0 (the +# "License"); you may not use this file except in compliance +# with the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, +# software distributed under the License is distributed on an +# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +# KIND, either express or implied. See the License for the +# specific language governing permissions and limitations +# under the License. + +name: Benchmarks +on: + push: + branches: [ main ] + pull_request: + branches: [ main ] + workflow_dispatch: + +jobs: + benchmark: + runs-on: ubuntu-latest + container: debian:12 + + strategy: + matrix: + go: ['1.21'] + arch: ['amd64'] + + steps: + - uses: actions/checkout@v4 + + - name: Set up Python + uses: actions/setup-python@v4 + with: + python-version: '3.9' + + - name: Install dependencies + run: | + apt-get update + apt-get install -y build-essential git python3-pip + + - name: Install Go ${{ matrix.go }} for Benchmarks + if: >- + success() && + matrix.arch == 'amd64' && + github.event_name == 'push' && + github.repository == 'apache/arrow-go' && + github.ref_name == 'main' Review Comment: ```suggestion ``` This is not needed. ########## .github/workflows/benchmark.yml: ########## @@ -0,0 +1,78 @@ +# Licensed to the Apache Software Foundation (ASF) under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The ASF licenses this file +# to you under the Apache License, Version 2.0 (the +# "License"); you may not use this file except in compliance +# with the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, +# software distributed under the License is distributed on an +# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +# KIND, either express or implied. See the License for the +# specific language governing permissions and limitations +# under the License. + +name: Benchmarks +on: + push: + branches: [ main ] + pull_request: + branches: [ main ] Review Comment: ```suggestion paths: - ".github/workflows/benchmark.yml" ``` Does it make sense to run this on every PR when we can't upload the results and don't display them or anything either? ########## .github/workflows/benchmark.yml: ########## @@ -0,0 +1,78 @@ +# Licensed to the Apache Software Foundation (ASF) under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The ASF licenses this file +# to you under the Apache License, Version 2.0 (the +# "License"); you may not use this file except in compliance +# with the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, +# software distributed under the License is distributed on an +# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +# KIND, either express or implied. See the License for the +# specific language governing permissions and limitations +# under the License. + +name: Benchmarks +on: + push: + branches: [ main ] + pull_request: + branches: [ main ] + workflow_dispatch: + +jobs: + benchmark: + runs-on: ubuntu-latest + container: debian:12 + + strategy: + matrix: + go: ['1.21'] + arch: ['amd64'] + + steps: + - uses: actions/checkout@v4 + + - name: Set up Python + uses: actions/setup-python@v4 + with: + python-version: '3.9' + + - name: Install dependencies + run: | + apt-get update + apt-get install -y build-essential git python3-pip + + - name: Install Go ${{ matrix.go }} for Benchmarks + if: >- + success() && + matrix.arch == 'amd64' && + github.event_name == 'push' && + github.repository == 'apache/arrow-go' && + github.ref_name == 'main' + uses: actions/setup-go@v5 + with: + go-version: ${{ matrix.go }} + cache: true + cache-dependency-path: go.sum + + - name: Run Benchmarks + if: >- + success() && + matrix.arch == 'amd64' && + github.event_name == 'push' && + github.repository == 'apache/arrow-go' && + github.ref_name == 'main' Review Comment: ```suggestion success() && github.event_name == 'push' && github.repository == 'apache/arrow-go' && github.ref_name == 'main' ``` -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
