Skip to content

Don't manage --unmanaged tablets #57993

Don't manage --unmanaged tablets

Don't manage --unmanaged tablets #57993

Workflow file for this run

name: region_example
on:
push:
branches:
- "main"
- "release-[0-9]+.[0-9]"
tags: '**'
pull_request:
branches: '**'
permissions: read-all
env:
BOOTSTRAP_VERSION: "ci"
BOOTSTRAP_FLAVOR: "mysql84"
jobs:
build:
name: Region Sharding example using ${{ matrix.topo }} on Ubuntu
runs-on: ${{ github.repository == 'vitessio/vitess' && 'oracle-vm-16cpu-64gb-x86-64' || 'ubuntu-24.04' }}
strategy:
matrix:
topo: [etcd]
steps:
- name: Harden the runner (Audit all outbound calls)
uses: step-security/harden-runner@bf7454d06d71f1098171f2acdf0cd4708d7b5920 # v2.20.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@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
persist-credentials: 'false'
- name: Check for changes in relevant files
uses: dorny/paths-filter@7b450fff21473bca461d4b92ce414b9d0420d706 # v4.0.2
id: changes
with:
token: ''
filters: |
examples:
- 'test/config.json'
- 'go/**/!(*_test).go'
- 'go/**/*.s'
- 'go/vt/sidecardb/**/*.sql'
- 'go/mysql/collations/colldata/**'
- 'go/mysql/icuregex/internal/icudata/**'
- 'test.go'
- 'Makefile'
- 'build.env'
- 'go.sum'
- 'go.mod'
- 'proto/*.proto'
- 'tools/**'
- 'config/**'
- 'bootstrap.sh'
- 'examples/**'
- '.github/workflows/region_example.yml'
- name: Build bootstrap images
if: steps.changes.outputs.examples == 'true'
timeout-minutes: 15
uses: ./.github/actions/build-bootstrap
- name: Set up Go
if: steps.changes.outputs.examples == 'true'
uses: ./.github/actions/setup-go
- name: Tune the OS
if: steps.changes.outputs.examples == 'true'
timeout-minutes: 5
uses: ./.github/actions/tune-os
- name: Get dependencies
if: steps.changes.outputs.examples == 'true'
timeout-minutes: 5
run: |
go mod download
- name: Run make minimaltools
if: steps.changes.outputs.examples == 'true'
timeout-minutes: 5
run: |
make minimaltools
- name: Build
if: steps.changes.outputs.examples == 'true'
timeout-minutes: 10
run: |
make build
- name: region_example
if: steps.changes.outputs.examples == 'true'
timeout-minutes: 30
run: |
export TOPO=${{matrix.topo}}
if [ "${{matrix.os}}" = "macos-latest" ]; then
export PATH="/usr/local/opt/mysql@5.7/bin:$PATH"
fi
go run test.go -print-log -follow -pull=false -flavor=${{ env.BOOTSTRAP_FLAVOR }} -bootstrap-version=${{ env.BOOTSTRAP_VERSION }} region_example