storage,kvserver: simplify ConvertFilesToBatchAndCommit #8966
Workflow file for this run
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
name: Microbenchmarks CI | |
on: | |
pull_request_target: | |
types: [ opened, reopened, synchronize ] | |
branches: [ master ] | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }} | |
cancel-in-progress: true | |
permissions: | |
contents: read | |
issues: read | |
pull-requests: read | |
env: | |
HEAD: ${{ github.event.pull_request.head.sha }} | |
BUCKET: "cockroach-microbench-ci" | |
PACKAGE: "pkg/sql/tests" | |
jobs: | |
base: | |
name: build merge base | |
runs-on: [self-hosted, basic_runner_group] | |
timeout-minutes: 30 | |
if: ${{ !contains(github.event.pull_request.labels.*.name, 'X-skip-perf-check') }} | |
outputs: | |
merge_base: ${{ steps.build.outputs.merge_base }} | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Build | |
id: build | |
uses: ./.github/actions/microbenchmark-build | |
with: | |
ref: base | |
pkg: ${{ env.PACKAGE }} | |
head: | |
name: build head | |
runs-on: [self-hosted, basic_runner_group] | |
timeout-minutes: 30 | |
if: ${{ !contains(github.event.pull_request.labels.*.name, 'X-skip-perf-check') }} | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Build | |
id: build | |
uses: ./.github/actions/microbenchmark-build | |
with: | |
ref: head | |
pkg: ${{ env.PACKAGE }} | |
run-group-1: | |
runs-on: [self-hosted, basic_microbench_runner_group] | |
timeout-minutes: 60 | |
needs: [base, head] | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Run | |
uses: ./.github/actions/microbenchmark-run | |
with: | |
base: ${{ needs.base.outputs.merge_base }} | |
pkg: ${{ env.PACKAGE }} | |
group: 1 | |
run-group-2: | |
runs-on: [self-hosted, basic_microbench_runner_group] | |
timeout-minutes: 60 | |
needs: [base, head] | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Run | |
uses: ./.github/actions/microbenchmark-run | |
with: | |
base: ${{ needs.base.outputs.merge_base }} | |
pkg: ${{ env.PACKAGE }} | |
group: 2 | |
compare: | |
runs-on: [self-hosted, basic_runner_group] | |
timeout-minutes: 30 | |
permissions: | |
contents: read | |
pull-requests: write | |
issues: write | |
needs: [base, run-group-1, run-group-2] | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- run: ./build/github/get-engflow-keys.sh | |
shell: bash | |
- name: Unique Build ID | |
run: echo "BUILD_ID=${{ github.run_id }}-${{ github.run_attempt }}" >> $GITHUB_ENV | |
- name: Compare and Post | |
run: ./build/github/microbenchmarks/compare.sh | |
env: | |
BASE_SHA: ${{ needs.base.outputs.merge_base }} | |
HEAD_SHA: ${{ env.HEAD }} | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
GITHUB_REPO: "cockroachdb/cockroach" | |
GITHUB_PR_NUMBER: ${{ github.event.pull_request.number }} | |
- name: Clean up | |
run: ./build/github/cleanup-engflow-keys.sh | |
shell: bash | |
if: always() |