Repository navigation
PR #12323 benchmark: quick-review #3690
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Dispatches benchmark workflows when benchmark labels are added to pull requests. | |
| # This is a separate workflow so that non-benchmark label events don't create | |
| # phantom check suites that obscure in-progress benchmark runs on the PR. | |
| name: PR Benchmark Dispatch | |
| run-name: >- | |
| PR #${{ github.event.pull_request.number }} benchmark: | |
| ${{ github.event.label.name }} | |
| on: | |
| pull_request: | |
| types: [labeled] | |
| permissions: | |
| actions: write | |
| contents: read | |
| pull-requests: write # for label removal and PR comments | |
| id-token: write # enables AWS-GitHub OIDC | |
| jobs: | |
| remove-all-label: | |
| runs-on: ubuntu-latest | |
| timeout-minutes: 10 | |
| if: github.event.label.name == 'action/bench-all' | |
| steps: | |
| - uses: actions-ecosystem/action-remove-labels@2ce5d41b4b6aa8503e285553f75ed56e0a40bae0 # v1 | |
| if: github.event.pull_request.head.repo.full_name == 'vortex-data/vortex' | |
| with: | |
| labels: action/bench-all | |
| fail_on_error: true | |
| all-random-access-bench: | |
| needs: remove-all-label | |
| uses: ./.github/workflows/pr-bench-random-access.yml | |
| secrets: inherit | |
| all-random-access-s3-bench: | |
| needs: remove-all-label | |
| uses: ./.github/workflows/pr-bench-random-access-s3.yml | |
| secrets: inherit | |
| all-compression-bench: | |
| needs: remove-all-label | |
| uses: ./.github/workflows/pr-bench-compress.yml | |
| secrets: inherit | |
| all-string-bench: | |
| needs: remove-all-label | |
| uses: ./.github/workflows/pr-bench-string.yml | |
| secrets: inherit | |
| all-sql-bench: | |
| needs: remove-all-label | |
| uses: ./.github/workflows/pr-bench-sql.yml | |
| secrets: inherit | |
| with: | |
| matrix_preset: "pr-all" | |
| remove-random-access-label: | |
| runs-on: ubuntu-latest | |
| timeout-minutes: 10 | |
| if: github.event.label.name == 'action/bench-random-access' | |
| steps: | |
| - uses: actions-ecosystem/action-remove-labels@2ce5d41b4b6aa8503e285553f75ed56e0a40bae0 # v1 | |
| if: github.event.pull_request.head.repo.full_name == 'vortex-data/vortex' | |
| with: | |
| labels: action/bench-random-access | |
| fail_on_error: true | |
| random-access-bench: | |
| needs: remove-random-access-label | |
| uses: ./.github/workflows/pr-bench-random-access.yml | |
| secrets: inherit | |
| remove-random-access-s3-label: | |
| runs-on: ubuntu-latest | |
| timeout-minutes: 10 | |
| if: github.event.label.name == 'action/bench-random-access-s3' | |
| steps: | |
| - uses: actions-ecosystem/action-remove-labels@2ce5d41b4b6aa8503e285553f75ed56e0a40bae0 # v1 | |
| if: github.event.pull_request.head.repo.full_name == 'vortex-data/vortex' | |
| with: | |
| labels: action/bench-random-access-s3 | |
| fail_on_error: true | |
| random-access-s3-bench: | |
| needs: remove-random-access-s3-label | |
| uses: ./.github/workflows/pr-bench-random-access-s3.yml | |
| secrets: inherit | |
| remove-compress-label: | |
| runs-on: ubuntu-latest | |
| timeout-minutes: 10 | |
| if: github.event.label.name == 'action/bench-compress' | |
| steps: | |
| - uses: actions-ecosystem/action-remove-labels@2ce5d41b4b6aa8503e285553f75ed56e0a40bae0 # v1 | |
| if: github.event.pull_request.head.repo.full_name == 'vortex-data/vortex' | |
| with: | |
| labels: action/bench-compress | |
| fail_on_error: true | |
| compression-bench: | |
| needs: remove-compress-label | |
| uses: ./.github/workflows/pr-bench-compress.yml | |
| secrets: inherit | |
| remove-string-label: | |
| runs-on: ubuntu-latest | |
| timeout-minutes: 10 | |
| if: github.event.label.name == 'action/bench-string' | |
| steps: | |
| - uses: actions-ecosystem/action-remove-labels@2ce5d41b4b6aa8503e285553f75ed56e0a40bae0 # v1 | |
| if: github.event.pull_request.head.repo.full_name == 'vortex-data/vortex' | |
| with: | |
| labels: action/bench-string | |
| fail_on_error: true | |
| string-bench: | |
| needs: remove-string-label | |
| uses: ./.github/workflows/pr-bench-string.yml | |
| secrets: inherit | |
| remove-gpu-compress-label: | |
| runs-on: ubuntu-latest | |
| timeout-minutes: 10 | |
| if: github.event.label.name == 'action/bench-gpu-compress' | |
| steps: | |
| - uses: actions-ecosystem/action-remove-labels@2ce5d41b4b6aa8503e285553f75ed56e0a40bae0 # v1 | |
| if: github.event.pull_request.head.repo.full_name == 'vortex-data/vortex' | |
| with: | |
| labels: action/bench-gpu-compress | |
| fail_on_error: true | |
| gpu-compress-bench: | |
| needs: remove-gpu-compress-label | |
| uses: ./.github/workflows/pr-bench-gpu-compress.yml | |
| secrets: inherit | |
| # A PR worth SQL benchmarks before merging is worth them on its own merge commit too, so the | |
| # SQL labels and `action/bench-all` also add `action/bench-on-merge` (see develop-bench-on-merge.yml). Labels added | |
| # with GITHUB_TOKEN start no workflows; develop-bench-on-merge.yml reads the label at merge. | |
| add-bench-on-merge-label: | |
| runs-on: ubuntu-latest | |
| timeout-minutes: 10 | |
| if: >- | |
| github.event.pull_request.head.repo.full_name == 'vortex-data/vortex' | |
| && contains(fromJSON('["action/bench-all", "action/bench-sql", "action/bench-sql-compact", "action/bench-sql-extended"]'), github.event.label.name) | |
| steps: | |
| - name: Add action/bench-on-merge | |
| env: | |
| GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
| GH_REPO: ${{ github.repository }} | |
| PR_NUMBER: ${{ github.event.pull_request.number }} | |
| run: | | |
| gh api --method POST "repos/${GH_REPO}/issues/${PR_NUMBER}/labels" \ | |
| -f "labels[]=action/bench-on-merge" > /dev/null | |
| remove-sql-label: | |
| runs-on: ubuntu-latest | |
| timeout-minutes: 10 | |
| if: github.event.label.name == 'action/bench-sql' | |
| steps: | |
| - uses: actions-ecosystem/action-remove-labels@2ce5d41b4b6aa8503e285553f75ed56e0a40bae0 # v1 | |
| if: github.event.pull_request.head.repo.full_name == 'vortex-data/vortex' | |
| with: | |
| labels: action/bench-sql | |
| fail_on_error: true | |
| sql-bench: | |
| needs: remove-sql-label | |
| uses: ./.github/workflows/pr-bench-sql.yml | |
| secrets: inherit | |
| with: | |
| matrix_preset: "pr" | |
| remove-sql-compact-label: | |
| runs-on: ubuntu-latest | |
| timeout-minutes: 10 | |
| if: github.event.label.name == 'action/bench-sql-compact' | |
| steps: | |
| - uses: actions-ecosystem/action-remove-labels@2ce5d41b4b6aa8503e285553f75ed56e0a40bae0 # v1 | |
| if: github.event.pull_request.head.repo.full_name == 'vortex-data/vortex' | |
| with: | |
| labels: action/bench-sql-compact | |
| fail_on_error: true | |
| sql-compact-bench: | |
| needs: remove-sql-compact-label | |
| uses: ./.github/workflows/pr-bench-sql.yml | |
| secrets: inherit | |
| with: | |
| matrix_preset: "pr-compact" | |
| remove-sql-extended-label: | |
| runs-on: ubuntu-latest | |
| timeout-minutes: 10 | |
| if: github.event.label.name == 'action/bench-sql-extended' | |
| steps: | |
| - uses: actions-ecosystem/action-remove-labels@2ce5d41b4b6aa8503e285553f75ed56e0a40bae0 # v1 | |
| if: github.event.pull_request.head.repo.full_name == 'vortex-data/vortex' | |
| with: | |
| labels: action/bench-sql-extended | |
| fail_on_error: true | |
| sql-extended-bench: | |
| needs: remove-sql-extended-label | |
| uses: ./.github/workflows/pr-bench-sql.yml | |
| secrets: inherit | |
| with: | |
| matrix_preset: "pr-full" | |
| remove-sql-scan-label: | |
| runs-on: ubuntu-latest | |
| timeout-minutes: 10 | |
| if: github.event.label.name == 'action/bench-scan' | |
| steps: | |
| - uses: actions-ecosystem/action-remove-labels@2ce5d41b4b6aa8503e285553f75ed56e0a40bae0 # v1 | |
| if: github.event.pull_request.head.repo.full_name == 'vortex-data/vortex' | |
| with: | |
| labels: action/bench-scan | |
| fail_on_error: true | |
| sql-scan-bench: | |
| needs: remove-sql-scan-label | |
| uses: ./.github/workflows/pr-bench-sql.yml | |
| secrets: inherit | |
| with: | |
| matrix_preset: "pr-scan" |