Skip to content

Commit f774619

Browse files
authored
Merge branch 'vitessio:main' into issues_17243
2 parents 385e9d4 + 1df1dc8 commit f774619

File tree

578 files changed

+39112
-24507
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

578 files changed

+39112
-24507
lines changed

.github/workflows/assign_milestone.yml

+17-9
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,9 @@ on:
44
pull_request_target:
55
types: [opened]
66

7-
permissions: read-all
7+
permissions:
8+
pull-requests: write
9+
contents: read
810

911
env:
1012
GH_TOKEN: ${{ github.token }}
@@ -13,18 +15,24 @@ jobs:
1315
build:
1416
name: Assign Milestone
1517
runs-on: ubuntu-24.04
16-
permissions:
17-
pull-requests: write
1818

1919
steps:
2020
- name: Checkout code
21-
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
22-
23-
- name: Set up Go
24-
uses: actions/setup-go@0a12ed9d6a96ab950c8f026ed9f722fe0da7ef32 # v5.0.2
21+
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
2522
with:
26-
go-version-file: go.mod
23+
# We must explicitly checkout the base's SHA to avoid executing any code coming from
24+
# the PR's SHA - Which would be executed in the base branch's context.
25+
# This is really important to limit any sort of pwn requests.
26+
ref: ${{ github.base_ref }}
27+
persist-credentials: 'false'
2728

2829
- name: Assign Milestone
2930
run: |
30-
gh pr edit ${{ github.event.number }} --milestone "v$(sed -n 's/.*versionName.*\"\([[:digit:]\.]*\).*\"/\1/p' ./go/vt/servenv/version.go)"
31+
# Ensure the content we sed from version.go is sanitized and match the correct format
32+
VERSION=$(sed -n 's/.*versionName.*\"\([[:digit:]\.]*\).*\"/\1/p' ./go/vt/servenv/version.go)
33+
if [[ ! "$VERSION" =~ ^[0-9]+\.[0-9]+\.[0-9]+$ ]]; then
34+
echo "Invalid version format: $VERSION"
35+
exit 1
36+
fi
37+
38+
gh pr edit ${{ github.event.number }} --milestone "v$VERSION"

.github/workflows/auto_approve_pr.yml

+4-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,10 @@ jobs:
1616

1717
steps:
1818
- name: Checkout code
19-
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
19+
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
20+
with:
21+
persist-credentials: 'false'
22+
2023
- name: Auto Approve Pull Request
2124
env:
2225
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

.github/workflows/check_make_vtadmin_authz_testgen.yml

+3-1
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,9 @@ jobs:
2727
2828
- name: Check out code
2929
if: steps.skip-workflow.outputs.skip-workflow == 'false'
30-
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
30+
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
31+
with:
32+
persist-credentials: 'false'
3133

3234
- name: Check for changes in relevant files
3335
if: steps.skip-workflow.outputs.skip-workflow == 'false'

.github/workflows/check_make_vtadmin_web_proto.yml

+4-2
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,9 @@ jobs:
2727
2828
- name: Check out code
2929
if: steps.skip-workflow.outputs.skip-workflow == 'false'
30-
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
30+
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
31+
with:
32+
persist-credentials: 'false'
3133

3234
- name: Check for changes in relevant files
3335
if: steps.skip-workflow.outputs.skip-workflow == 'false'
@@ -59,7 +61,7 @@ jobs:
5961
uses: actions/setup-node@1e60f620b9541d16bece96c5465dc8ee9832be0b # v4.0.3
6062
with:
6163
# node-version should match package.json
62-
node-version: '20.12.2'
64+
node-version: '22.13.1'
6365

6466
- name: Install npm dependencies
6567
if: steps.skip-workflow.outputs.skip-workflow == 'false' && steps.changes.outputs.proto_changes == 'true'

.github/workflows/cluster_endtoend_12.yml

+6-1
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ env:
1515

1616
jobs:
1717
build:
18+
timeout-minutes: 60
1819
name: Run endtoend tests on Cluster (12)
1920
runs-on: ubuntu-24.04
2021

@@ -45,7 +46,9 @@ jobs:
4546
4647
- name: Check out code
4748
if: steps.skip-workflow.outputs.skip-workflow == 'false'
48-
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
49+
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
50+
with:
51+
persist-credentials: 'false'
4952

5053
- name: Check for changes in relevant files
5154
if: steps.skip-workflow.outputs.skip-workflow == 'false'
@@ -55,6 +58,7 @@ jobs:
5558
token: ''
5659
filters: |
5760
end_to_end:
61+
- 'test/config.json'
5862
- 'go/**/*.go'
5963
- 'go/vt/sidecardb/**/*.sql'
6064
- 'go/test/endtoend/onlineddl/vrepl_suite/**'
@@ -91,6 +95,7 @@ jobs:
9195
9296
- name: Get dependencies
9397
if: steps.skip-workflow.outputs.skip-workflow == 'false' && steps.changes.outputs.end_to_end == 'true'
98+
timeout-minutes: 10
9499
run: |
95100
96101
# Get key to latest MySQL repo

.github/workflows/cluster_endtoend_13.yml

+6-1
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ env:
1515

1616
jobs:
1717
build:
18+
timeout-minutes: 60
1819
name: Run endtoend tests on Cluster (13)
1920
runs-on: ubuntu-24.04
2021

@@ -45,7 +46,9 @@ jobs:
4546
4647
- name: Check out code
4748
if: steps.skip-workflow.outputs.skip-workflow == 'false'
48-
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
49+
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
50+
with:
51+
persist-credentials: 'false'
4952

5053
- name: Check for changes in relevant files
5154
if: steps.skip-workflow.outputs.skip-workflow == 'false'
@@ -55,6 +58,7 @@ jobs:
5558
token: ''
5659
filters: |
5760
end_to_end:
61+
- 'test/config.json'
5862
- 'go/**/*.go'
5963
- 'go/vt/sidecardb/**/*.sql'
6064
- 'go/test/endtoend/onlineddl/vrepl_suite/**'
@@ -91,6 +95,7 @@ jobs:
9195
9296
- name: Get dependencies
9397
if: steps.skip-workflow.outputs.skip-workflow == 'false' && steps.changes.outputs.end_to_end == 'true'
98+
timeout-minutes: 10
9499
run: |
95100
96101
# Get key to latest MySQL repo

.github/workflows/cluster_endtoend_15.yml

+6-1
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ env:
1515

1616
jobs:
1717
build:
18+
timeout-minutes: 60
1819
name: Run endtoend tests on Cluster (15)
1920
runs-on: ubuntu-24.04
2021

@@ -45,7 +46,9 @@ jobs:
4546
4647
- name: Check out code
4748
if: steps.skip-workflow.outputs.skip-workflow == 'false'
48-
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
49+
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
50+
with:
51+
persist-credentials: 'false'
4952

5053
- name: Check for changes in relevant files
5154
if: steps.skip-workflow.outputs.skip-workflow == 'false'
@@ -55,6 +58,7 @@ jobs:
5558
token: ''
5659
filters: |
5760
end_to_end:
61+
- 'test/config.json'
5862
- 'go/**/*.go'
5963
- 'go/vt/sidecardb/**/*.sql'
6064
- 'go/test/endtoend/onlineddl/vrepl_suite/**'
@@ -91,6 +95,7 @@ jobs:
9195
9296
- name: Get dependencies
9397
if: steps.skip-workflow.outputs.skip-workflow == 'false' && steps.changes.outputs.end_to_end == 'true'
98+
timeout-minutes: 10
9499
run: |
95100
96101
# Get key to latest MySQL repo

.github/workflows/cluster_endtoend_18.yml

+6-1
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ env:
1515

1616
jobs:
1717
build:
18+
timeout-minutes: 60
1819
name: Run endtoend tests on Cluster (18)
1920
runs-on: ubuntu-24.04
2021

@@ -45,7 +46,9 @@ jobs:
4546
4647
- name: Check out code
4748
if: steps.skip-workflow.outputs.skip-workflow == 'false'
48-
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
49+
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
50+
with:
51+
persist-credentials: 'false'
4952

5053
- name: Check for changes in relevant files
5154
if: steps.skip-workflow.outputs.skip-workflow == 'false'
@@ -55,6 +58,7 @@ jobs:
5558
token: ''
5659
filters: |
5760
end_to_end:
61+
- 'test/config.json'
5862
- 'go/**/*.go'
5963
- 'go/vt/sidecardb/**/*.sql'
6064
- 'go/test/endtoend/onlineddl/vrepl_suite/**'
@@ -91,6 +95,7 @@ jobs:
9195
9296
- name: Get dependencies
9397
if: steps.skip-workflow.outputs.skip-workflow == 'false' && steps.changes.outputs.end_to_end == 'true'
98+
timeout-minutes: 10
9499
run: |
95100
96101
# Get key to latest MySQL repo

.github/workflows/cluster_endtoend_21.yml

+6-1
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ env:
1515

1616
jobs:
1717
build:
18+
timeout-minutes: 60
1819
name: Run endtoend tests on Cluster (21)
1920
runs-on: ubuntu-24.04
2021

@@ -45,7 +46,9 @@ jobs:
4546
4647
- name: Check out code
4748
if: steps.skip-workflow.outputs.skip-workflow == 'false'
48-
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
49+
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
50+
with:
51+
persist-credentials: 'false'
4952

5053
- name: Check for changes in relevant files
5154
if: steps.skip-workflow.outputs.skip-workflow == 'false'
@@ -55,6 +58,7 @@ jobs:
5558
token: ''
5659
filters: |
5760
end_to_end:
61+
- 'test/config.json'
5862
- 'go/**/*.go'
5963
- 'go/vt/sidecardb/**/*.sql'
6064
- 'go/test/endtoend/onlineddl/vrepl_suite/**'
@@ -91,6 +95,7 @@ jobs:
9195
9296
- name: Get dependencies
9397
if: steps.skip-workflow.outputs.skip-workflow == 'false' && steps.changes.outputs.end_to_end == 'true'
98+
timeout-minutes: 10
9499
run: |
95100
96101
# Get key to latest MySQL repo

.github/workflows/cluster_endtoend_backup_pitr.yml

+6-1
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ env:
1515

1616
jobs:
1717
build:
18+
timeout-minutes: 60
1819
name: Run endtoend tests on Cluster (backup_pitr)
1920
runs-on: ubuntu-24.04
2021

@@ -45,7 +46,9 @@ jobs:
4546
4647
- name: Check out code
4748
if: steps.skip-workflow.outputs.skip-workflow == 'false'
48-
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
49+
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
50+
with:
51+
persist-credentials: 'false'
4952

5053
- name: Check for changes in relevant files
5154
if: steps.skip-workflow.outputs.skip-workflow == 'false'
@@ -55,6 +58,7 @@ jobs:
5558
token: ''
5659
filters: |
5760
end_to_end:
61+
- 'test/config.json'
5862
- 'go/**/*.go'
5963
- 'go/vt/sidecardb/**/*.sql'
6064
- 'go/test/endtoend/onlineddl/vrepl_suite/**'
@@ -91,6 +95,7 @@ jobs:
9195
9296
- name: Get dependencies
9397
if: steps.skip-workflow.outputs.skip-workflow == 'false' && steps.changes.outputs.end_to_end == 'true'
98+
timeout-minutes: 10
9499
run: |
95100
96101
# Get key to latest MySQL repo

.github/workflows/cluster_endtoend_backup_pitr_mysqlshell.yml

+6-1
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ env:
1515

1616
jobs:
1717
build:
18+
timeout-minutes: 60
1819
name: Run endtoend tests on Cluster (backup_pitr_mysqlshell)
1920
runs-on: ubuntu-24.04
2021

@@ -45,7 +46,9 @@ jobs:
4546
4647
- name: Check out code
4748
if: steps.skip-workflow.outputs.skip-workflow == 'false'
48-
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
49+
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
50+
with:
51+
persist-credentials: 'false'
4952

5053
- name: Check for changes in relevant files
5154
if: steps.skip-workflow.outputs.skip-workflow == 'false'
@@ -55,6 +58,7 @@ jobs:
5558
token: ''
5659
filters: |
5760
end_to_end:
61+
- 'test/config.json'
5862
- 'go/**/*.go'
5963
- 'go/vt/sidecardb/**/*.sql'
6064
- 'go/test/endtoend/onlineddl/vrepl_suite/**'
@@ -91,6 +95,7 @@ jobs:
9195
9296
- name: Get dependencies
9397
if: steps.skip-workflow.outputs.skip-workflow == 'false' && steps.changes.outputs.end_to_end == 'true'
98+
timeout-minutes: 10
9499
run: |
95100
96101
# Get key to latest MySQL repo

.github/workflows/cluster_endtoend_backup_pitr_xtrabackup.yml

+6-1
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ env:
1515

1616
jobs:
1717
build:
18+
timeout-minutes: 60
1819
name: Run endtoend tests on Cluster (backup_pitr_xtrabackup)
1920
runs-on: ubuntu-24.04
2021

@@ -45,7 +46,9 @@ jobs:
4546
4647
- name: Check out code
4748
if: steps.skip-workflow.outputs.skip-workflow == 'false'
48-
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
49+
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
50+
with:
51+
persist-credentials: 'false'
4952

5053
- name: Check for changes in relevant files
5154
if: steps.skip-workflow.outputs.skip-workflow == 'false'
@@ -55,6 +58,7 @@ jobs:
5558
token: ''
5659
filters: |
5760
end_to_end:
61+
- 'test/config.json'
5862
- 'go/**/*.go'
5963
- 'go/vt/sidecardb/**/*.sql'
6064
- 'go/test/endtoend/onlineddl/vrepl_suite/**'
@@ -91,6 +95,7 @@ jobs:
9195
9296
- name: Get dependencies
9397
if: steps.skip-workflow.outputs.skip-workflow == 'false' && steps.changes.outputs.end_to_end == 'true'
98+
timeout-minutes: 10
9499
run: |
95100
96101
# Setup Percona Server for MySQL 8.0

0 commit comments

Comments
 (0)