Skip to content

[QueryThrottler]Implement Tablet Throttler Strategy #10407

[QueryThrottler]Implement Tablet Throttler Strategy

[QueryThrottler]Implement Tablet Throttler Strategy #10407

Workflow file for this run

name: vtop_example
permissions: read-all
on:
push:
branches:
- "main"
- "release-[0-9]+.[0-9]"
tags: "**"
pull_request:
branches: "**"
concurrency:
group: format('{0}-{1}', ${{ github.ref }}, 'vtop_example')
cancel-in-progress: true
jobs:
build:
name: VTop Example
runs-on: oracle-vm-8cpu-32gb-x86-64
steps:
- name: Harden the runner (Audit all outbound calls)
uses: step-security/harden-runner@8d3c67de8e2fe68ef647c8db1e6a09f647780f40 # v2.19.0
with:
egress-policy: audit
- name: Skip CI
run: |
if [[ "${{contains( github.event.pull_request.labels.*.name, 'Skip CI')}}" == "true" ]]; then
echo "skipping CI due to the 'Skip CI' label"
exit 1
fi
- name: Check out code
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
with:
persist-credentials: "false"
- name: Check for changes in relevant files
uses: dorny/paths-filter@fbd0ab8f3e69293af611ebaee6363fc25e6d187d # v4.0.1
id: changes
with:
token: ""
filters: |
end_to_end:
- 'go/**/*.go'
- 'go/vt/sidecardb/**/*.sql'
- 'test.go'
- 'Makefile'
- 'build.env'
- 'go.[sumod]'
- 'proto/*.proto'
- 'tools/**'
- 'config/**'
- 'bootstrap.sh'
- 'examples/**'
- 'test/**'
- '.github/workflows/vtop_example.yml'
- name: Set up Go
if: steps.changes.outputs.end_to_end == 'true'
uses: actions/setup-go@4a3601121dd01d1626a1e23e37211e3254c1c06c # v6.4.0
with:
go-version-file: go.mod
cache: ${{ (github.base_ref == 'main' || (github.base_ref == '' && github.ref_name == 'main')) && 'true' || 'false' }}
- name: Tune the OS
if: steps.changes.outputs.end_to_end == 'true'
timeout-minutes: 5
uses: ./.github/actions/tune-os
- name: Setup MySQL
if: steps.changes.outputs.end_to_end == 'true'
timeout-minutes: 8
uses: ./.github/actions/setup-mysql
with:
flavor: mysql-8.4
- name: Get dependencies
if: steps.changes.outputs.end_to_end == 'true'
timeout-minutes: 5
run: |
# Install everything we need, and configure
sudo apt-get install -y make
go mod download
# needed for vtctldclient
- name: Build vitess
if: steps.changes.outputs.end_to_end == 'true'
timeout-minutes: 10
run: |
make build
- name: Install kubectl & kind
if: steps.changes.outputs.end_to_end == 'true'
timeout-minutes: 5
run: |
make install_kubectl_kind
- name: vtop_example
if: steps.changes.outputs.end_to_end == 'true'
timeout-minutes: 60
run: |
source build.env
go run test.go -docker=false -skip-build -print-log -follow -timeout=60m vtop_example