Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
104 commits
Select commit Hold shift + click to select a range
3526af4
[release-22.0] Bump to `v22.0.1-SNAPSHOT` after the `v22.0.0` release…
vitess-bot May 5, 2025
60dc6c3
[release-22.0] fix: Preserve multi-column TupleExpr in tuple simplifi…
vitess-bot[bot] May 7, 2025
45885b2
[release-22.0] Properly handle grpc dial errors in the throttler metr…
vitess-bot[bot] May 7, 2025
5447a26
[release-22.0] test: TestQueryTimeoutWithShardTargeting fix flaky tes…
vitess-bot[bot] May 7, 2025
2df1246
[release-22.0] make sure to give MEMBER OF the correct precedence (#1…
vitess-bot[bot] May 8, 2025
aadd478
[release-22.0] Fix evalengine crashes on unexpected types (#18254) (#…
vitess-bot[bot] May 9, 2025
80cd8ee
[release-22.0] Fix subquery merging regression introduced in #11379 (…
vitess-bot[bot] May 13, 2025
cab2193
[release-22.0] json array insert test (#18284) (#18286)
vitess-bot[bot] May 21, 2025
70463c4
[release-22.0] Fix `SET` and `START TRANSACTION` in create procedure …
vitess-bot[bot] May 23, 2025
bbe1f7f
[release-22.0] Fix deadlock in semi-sync monitor (#18276) (#18290)
vitess-bot[bot] May 23, 2025
419f5ed
[release-22.0] Upgrade the Golang version to `go1.24.3` (#18239)
vitess-bot May 26, 2025
765f62d
[release-22.0] Atomic Copy: Handle error that was ignored while strea…
vitess-bot[bot] Jun 3, 2025
e361adb
[release-22.0] fix: handle dml query for None opcode (#18326) (#18345)
vitess-bot[bot] Jun 11, 2025
045847a
[release-22.0] fix: keep LIMIT/OFFSET even when merging UNION queries…
vitess-bot[bot] Jun 16, 2025
610534d
[release-22.0] Fix: Deadlock in `Close` and `write` in semi-sync moni…
vitess-bot[bot] Jun 17, 2025
cb625b4
[release-22.0] Upgrade the Golang version to `go1.24.4` (#18329)
vitess-bot Jun 17, 2025
2bc88c5
[release-22.0] fix version issue when using --mysql-shell-speedup-res…
vitess-bot[bot] Jun 17, 2025
4e9c8ac
[release-22.0] Split workflow with flaky vdiff2 e2e test. Skip flaky …
vitess-bot[bot] Jun 18, 2025
3d1e0f8
[release-22.0] Throttler: keep watching topo even on error (#18223) (…
vitess-bot[bot] Jun 18, 2025
88f98ff
[release-22.0] Code Freeze for `v22.0.1` (#18374)
GuptaManan100 Jun 18, 2025
aafd403
[release-22.0] Release of `v22.0.1` (#18375)
GuptaManan100 Jun 18, 2025
416646c
[release-22.0] Bump to `v22.0.2-SNAPSHOT` after the `v22.0.1` release…
GuptaManan100 Jun 18, 2025
89e614f
[release-22.0] [Bugfix] Broken Heartbeat system in Row Streamer (#183…
vitess-bot[bot] Jul 1, 2025
cd305b8
[release-22.0] test: Fix race condition in TestStreamRowsHeartbeat (#…
vitess-bot[bot] Jul 6, 2025
36b6088
[release-22.0] Online DDL: resume vreplication after cut-over/RENAME …
vitess-bot[bot] Jul 10, 2025
404ed04
[release-22.0] Fix `vttablet` not being marked as not serving when My…
vitess-bot[bot] Jul 16, 2025
b9a6c9b
[release-22.0] Topo: Add NamedLock test for zk2 and consul and get th…
vitess-bot[bot] Jul 19, 2025
bd93732
[release-22.0] Reset in-memory sequence info on vttablet on UpdateSeq…
vitess-bot[bot] Jul 23, 2025
c9f8981
[release-22.0] bugfix: Fix impossible query for UNION (#18463) (#18465)
vitess-bot[bot] Jul 24, 2025
14440d3
[release-22.0] VReplication: Fix bug while reading _vt.vreplication r…
vitess-bot[bot] Jul 24, 2025
8475461
[release-22.0] Fix for simple projection showing no fields (#18489) (…
vitess-bot[bot] Jul 25, 2025
a323159
[release-22.0] Fix scalar aggregation with literals in empty result s…
vitess-bot[bot] Jul 25, 2025
6b936ba
[release-22.0] Fix watcher storm during topo outages (#18434) (#18440)
vitess-bot[bot] Jul 25, 2025
5b069dd
[release-22.0] Avoid terminating atomic copy workflows on error if th…
vitess-bot[bot] Jul 27, 2025
6787b0b
[release-22.0] Bump @babel/runtime from 7.26.0 to 7.27.6 in /web/vtad…
vitess-bot[bot] Jul 28, 2025
1ae8ecd
[release-22.0] Bump vite from 4.5.9 to 4.5.14 in /web/vtadmin (#18485…
vitess-bot[bot] Jul 28, 2025
5001f0a
[release-22.0] Fix regression in v22 around new flag setup (#18507) (…
vitess-bot[bot] Jul 29, 2025
53e0e16
[release-22.0] Bump form-data from 4.0.1 to 4.0.4 in /web/vtadmin (#1…
vitess-bot[bot] Jul 29, 2025
6c8ac3a
[release-22.0] bugfix: Plan group by only on top of derived tables co…
vitess-bot[bot] Jul 29, 2025
ecb20c7
[release-22.0] Fix GetSchema RPC to prevent returning view definition…
vitess-bot[bot] Jul 29, 2025
8ffba34
[release-22.0] CI: Fix `VDiff2` flaky e2e test (#18494) (#18526)
vitess-bot[bot] Aug 1, 2025
09e599e
[release-22.0] Fix foreign key relation with routed tables (#18537) …
vitess-bot[bot] Aug 11, 2025
732470f
[release-22.0] Try updating the create PR workflow step (#18563) (#18…
vitess-bot[bot] Aug 25, 2025
3a28c0c
[release-22.0] Fix a panic in VDiff when reconciling extra rows. (#18…
vitess-bot[bot] Aug 29, 2025
6d8a073
[release-22.0] fix: remove database qualifier after building query in…
vitess-bot[bot] Aug 29, 2025
e13e9dd
[release-22.0] Introduce aliases for foreign keys verify operations (…
vitess-bot[bot] Sep 1, 2025
bb1aac5
[release-22.0] [CI] Use the draft state from the event payload instea…
vitess-bot[bot] Sep 15, 2025
a0cb3a7
[release-22.0] fix: Fix `GenerateShardRanges` returning shard names t…
vitess-bot[bot] Sep 15, 2025
72fe20b
[release-22.0] Fix: Improve VDiff internal query performance (#18579)…
vitess-bot[bot] Sep 15, 2025
2da22c0
[release-22.0] Simplify workflow files. (#18649) (#18656)
vitess-bot[bot] Sep 16, 2025
c242fc7
[release-22.0] ci: Replace `always()` with `!cancelled()`. (#18659) (…
vitess-bot[bot] Sep 16, 2025
a4bf8a1
[release-22.0] ci: Disable man-db auto updates. (#18665) (#18668)
vitess-bot[bot] Sep 18, 2025
1760b55
[release-22.0] ci: Bump `actions/setup-go` to `v5.5.0`. (#18660) (#18…
vitess-bot[bot] Sep 18, 2025
624d4a2
[release-22.0] Update codeowners and maintainers. (#18676)
arthurschreiber Sep 23, 2025
82e6145
[release-22.0] Upgrade the Golang version to `go1.24.7` (#18621)
vitess-bot Sep 23, 2025
e116d84
[release-22.0] ci: don't run codecov twice. (#18680) (#18682)
vitess-bot[bot] Sep 23, 2025
22bd1d8
[release-22.0] Update CODEOWNERS (#18697) (#18699)
vitess-bot[bot] Sep 25, 2025
ffa67c9
[release-22.0] fix: ensure callbacks are not called after `VStream` r…
vitess-bot[bot] Sep 30, 2025
eff5997
[release-22.0] CONNPOOL: Fix race condition when waiting for connecti…
vitess-bot[bot] Oct 7, 2025
d272824
[release-22.0] connpool: Bump the hang detection timeout to fix flaki…
vitess-bot[bot] Oct 7, 2025
8f65e24
[release-22.0] Fix handling of tuple bind variables in filtering oper…
vitess-bot[bot] Oct 15, 2025
75eb4f3
[release-22.0] Potential fix for code scanning alert no. 2992: Clear-…
vitess-bot[bot] Oct 16, 2025
b0287cf
[release-22.0] update java packages to use central instead of ossrh (…
vitess-bot[bot] Oct 17, 2025
a0216eb
[release-22.0] VReplication: Ensure proper handling of keyspace/datab…
vitess-bot[bot] Oct 20, 2025
2a8df33
[release-22.0] Resolve `commons-lang` vulnerability in Java driver (#…
vitess-bot[bot] Oct 24, 2025
cd2d947
[release-22.0] ci: use the newest mysql apt config package (#18790) (…
vitess-bot[bot] Oct 24, 2025
ecbee74
[release-22.0] `vtctldclient GetPermissions`: hide `authentication_st…
vitess-bot[bot] Oct 24, 2025
2502c2e
[release-22.0] repltracker: reset replica lag when we are primary (#1…
vitess-bot[bot] Oct 25, 2025
1d039d9
[release-22.0] Address dir traversal in file backup storage `GetBacku…
vitess-bot[bot] Oct 27, 2025
33ebeda
[release-22.0] VReplication: Treat ER_BINLOG_CREATE_ROUTINE_NEED_SUPE…
vitess-bot[bot] Oct 27, 2025
40f5067
[release-22.0] Upgrade the Golang version to `go1.24.9` (#18737)
vitess-bot Oct 28, 2025
45825ec
[release-22.0] vtadmin: upgrade vite to the latest (#18803) (#18811)
vitess-bot[bot] Oct 28, 2025
a6d792f
[release-22.0] Fix bug where query consolidator returns empty result …
vitess-bot[bot] Oct 28, 2025
612cc79
[release-22.0] ci: extract os tuning (#18824) (#18826)
vitess-bot[bot] Oct 29, 2025
25789f7
[release-22.0] ci: DRY up MySQL Setup (#18815) (#18836)
vitess-bot[bot] Oct 29, 2025
3553c5e
[release-22.0] Fix flaky tests (#18835) (#18838)
vitess-bot[bot] Oct 29, 2025
2f483ed
[release-22.0] copy_state: use a mediumblob instead of a smaller varb…
vitess-bot[bot] Nov 3, 2025
cbce157
[release-22.0] BuiltinBackupEngine: Retry file close and fail backup …
vitess-bot[bot] Nov 4, 2025
a2acfba
[release-22.0] fix sqlSelectLimit propagating to subqueries (#18716) …
vitess-bot[bot] Nov 5, 2025
f10461a
[release-22.0] Code Freeze for `v22.0.2` (#18876)
mattlord Nov 5, 2025
ef39c16
[release-22.0] Release of `v22.0.2` (#18878)
mattlord Nov 5, 2025
3cdcdb5
Merge upstream tag v22.0.2 into Slack fork
tanjinx Jan 15, 2026
47aa369
connpool: Replace semaphore with channel-based synchronization
tanjinx Jan 15, 2026
6a52784
deps: Migrate from cgroups v1 to v3 for Go 1.24 compatibility
tanjinx Jan 15, 2026
bd824c8
ci: Remove slack branch restriction from workflow skip logic
tanjinx Jan 15, 2026
8866f10
ci: Remove workflow skip check entirely
tanjinx Jan 15, 2026
54d75db
ci: Remove slack branch pattern from hand-written workflows
tanjinx Jan 15, 2026
f2eba68
ci: Remove skip-workflow step from all remaining workflows
tanjinx Jan 15, 2026
2acce25
ci: Use GitHub native triggers to prevent duplicate runs
tanjinx Jan 16, 2026
e3d6398
ci: Add branch filters to upgrade_downgrade_test workflows
tanjinx Jan 16, 2026
fe2e5c3
docker: Add private repository support for vitess-addons
tanjinx Jan 16, 2026
aa3f762
build: Restore private repository configuration
tanjinx Jan 16, 2026
87917a0
proto: Regenerate proto files after v22.0.2 merge
tanjinx Jan 16, 2026
83454f0
ci: Add branch filters to static_checks_etc workflow
tanjinx Jan 16, 2026
a337d90
[release-22.0] Don't hardcode the go version to use for upgrade/downg…
vitess-bot Nov 30, 2025
13338f7
[release-22.0] Upgrade the Golang version to `go1.24.10` (#18897)
tanjinx Jan 16, 2026
cf185c6
[release-22.0] `ci`: use `etcd` v3.5.25, add retries (#19015) (#19021)
vitess-bot[bot] Dec 15, 2025
3bf9d5e
temporary change previous version to v21
tanjinx Jan 16, 2026
af02701
ci: Skip upgrade_downgrade_*_next_release tests for slack-* branch PRs
tanjinx Jan 16, 2026
91133dc
ci: Add vitess-addons env and GitHub access token to upgrade_downgrad…
tanjinx Jan 16, 2026
4f7d2a6
temporarily set previous release to 21.0
tanjinx Jan 16, 2026
72b36c3
ci: Skip reparent_new tests for slack-* branch PRs
tanjinx Jan 17, 2026
a7a2938
fix conflict merge mistake
tanjinx Jan 17, 2026
86f833e
ci: Skip vtop_example test for slack-* branch PRs
tanjinx Jan 17, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
28 changes: 12 additions & 16 deletions .github/workflows/check_make_vtadmin_authz_testgen.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
name: check_make_vtadmin_authz_testgen
on: [push, pull_request]
on:
push:
branches:
- "main"
- "release-[0-9]+.[0-9]"
tags: '**'
pull_request:
branches: '**'

permissions: read-all

Expand All @@ -15,24 +22,13 @@ jobs:
exit 1
fi

- name: Check if workflow needs to be skipped
id: skip-workflow
run: |
skip='false'
if [[ "${{github.event.pull_request}}" == "" ]] && [[ "${{github.ref}}" != "refs/heads/main" ]] && [[ ! "${{github.ref}}" =~ ^refs/heads/slack-[0-9]+\.[0-9]$ ]] && [[ ! "${{github.ref}}" =~ "refs/tags/.*" ]]; then
skip='true'
fi
echo Skip ${skip}
echo "skip-workflow=${skip}" >> $GITHUB_OUTPUT

- name: Check out code
if: steps.skip-workflow.outputs.skip-workflow == 'false'
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
with:
persist-credentials: 'false'

- name: Check for changes in relevant files
if: steps.skip-workflow.outputs.skip-workflow == 'false'
uses: dorny/paths-filter@ebc4d7e9ebcb0b1eb21480bb8f43113e996ac77a # v3.0.1
id: changes
with:
Expand All @@ -49,7 +45,7 @@ jobs:
- '.github/workflows/check_make_vtadmin_authz_testgen.yml'

- name: Setup GitHub access token
if: steps.skip-workflow.outputs.skip-workflow == 'false' && steps.changes.outputs.vtadmin_changes == 'true'
if: steps.changes.outputs.vtadmin_changes == 'true'
run: git config --global url.https://${{ secrets.GH_ACCESS_TOKEN }}@github.com/.insteadOf https://github.com/

- name: Tune the OS
Expand All @@ -62,7 +58,7 @@ jobs:
uses: ./.github/actions/tune-os

- name: Get dependencies
if: steps.skip-workflow.outputs.skip-workflow == 'false' && steps.changes.outputs.vtadmin_changes == 'true'
if: steps.changes.outputs.vtadmin_changes == 'true'
run: |
sudo apt-get update
sudo apt-get install -y make unzip g++ etcd-client etcd-server curl git wget
Expand All @@ -71,11 +67,11 @@ jobs:
go install golang.org/x/tools/cmd/goimports@latest

- name: Run make minimaltools
if: steps.skip-workflow.outputs.skip-workflow == 'false' && steps.changes.outputs.vtadmin_changes == 'true'
if: steps.changes.outputs.vtadmin_changes == 'true'
run: |
make minimaltools

- name: check_make_vtadmin_authz_testgen
if: steps.skip-workflow.outputs.skip-workflow == 'false' && steps.changes.outputs.vtadmin_changes == 'true'
if: steps.changes.outputs.vtadmin_changes == 'true'
run: |
tools/check_make_vtadmin_authz_testgen.sh
29 changes: 12 additions & 17 deletions .github/workflows/check_make_vtadmin_web_proto.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
name: check_make_vtadmin_web_proto
on: [push, pull_request]
on:
push:
branches:
- "main"
- "release-[0-9]+.[0-9]"
tags: '**'
pull_request:
branches: '**'

permissions: read-all

Expand All @@ -15,28 +22,16 @@ jobs:
exit 1
fi

- name: Check if workflow needs to be skipped
id: skip-workflow
run: |
skip='false'
if [[ "${{github.event.pull_request}}" == "" ]] && [[ "${{github.ref}}" != "refs/heads/main" ]] && [[ ! "${{github.ref}}" =~ ^refs/heads/slack-[0-9]+\.[0-9]$ ]] && [[ ! "${{github.ref}}" =~ "refs/tags/.*" ]]; then
skip='true'
fi
echo Skip ${skip}
echo "skip-workflow=${skip}" >> $GITHUB_OUTPUT

- name: Check out code
if: steps.skip-workflow.outputs.skip-workflow == 'false'
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
with:
persist-credentials: 'false'

- name: Tune the OS
if: steps.skip-workflow.outputs.skip-workflow == 'false'
uses: ./.github/actions/tune-os

- name: Check for changes in relevant files
if: steps.skip-workflow.outputs.skip-workflow == 'false'
uses: dorny/paths-filter@ebc4d7e9ebcb0b1eb21480bb8f43113e996ac77a # v3.0.1
id: changes
with:
Expand All @@ -56,23 +51,23 @@ jobs:

- name: Set up Go
uses: actions/setup-go@0a12ed9d6a96ab950c8f026ed9f722fe0da7ef32 # v5.0.2
if: steps.skip-workflow.outputs.skip-workflow == 'false' && steps.changes.outputs.proto_changes == 'true'
if: steps.changes.outputs.proto_changes == 'true'
with:
go-version-file: go.mod

- name: Setup Node
if: steps.skip-workflow.outputs.skip-workflow == 'false' && steps.changes.outputs.proto_changes == 'true'
if: steps.changes.outputs.proto_changes == 'true'
uses: actions/setup-node@1e60f620b9541d16bece96c5465dc8ee9832be0b # v4.0.3
with:
# node-version should match package.json
node-version: '22.13.1'

- name: Install npm dependencies
if: steps.skip-workflow.outputs.skip-workflow == 'false' && steps.changes.outputs.proto_changes == 'true'
if: steps.changes.outputs.proto_changes == 'true'
run: npm ci
working-directory: ./web/vtadmin

- name: check_make_vtadmin_web_proto
if: steps.skip-workflow.outputs.skip-workflow == 'false' && steps.changes.outputs.proto_changes == 'true'
if: steps.changes.outputs.proto_changes == 'true'
run: |
tools/check_make_vtadmin_web_proto.sh
39 changes: 17 additions & 22 deletions .github/workflows/cluster_endtoend_12.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,14 @@
# DO NOT MODIFY: THIS FILE IS GENERATED USING "make generate_ci_workflows"

name: Cluster (12)
on: [push, pull_request]
on:
push:
branches:
- "main"
- "release-[0-9]+.[0-9]"
tags: '**'
pull_request:
branches: '**'
concurrency:
group: format('{0}-{1}', ${{ github.ref }}, 'Cluster (12)')
cancel-in-progress: true
Expand All @@ -28,24 +35,12 @@ jobs:
exit 1
fi

- name: Check if workflow needs to be skipped
id: skip-workflow
run: |
skip='false'
if [[ "${{github.event.pull_request}}" == "" ]] && [[ "${{github.ref}}" != "refs/heads/main" ]] && [[ ! "${{github.ref}}" =~ ^refs/heads/slack-[0-9]+\.[0-9]$ ]] && [[ ! "${{github.ref}}" =~ "refs/tags/.*" ]]; then
skip='true'
fi
echo Skip ${skip}
echo "skip-workflow=${skip}" >> $GITHUB_OUTPUT

- name: Check out code
if: steps.skip-workflow.outputs.skip-workflow == 'false'
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
with:
persist-credentials: 'false'

- name: Check for changes in relevant files
if: steps.skip-workflow.outputs.skip-workflow == 'false'
uses: dorny/paths-filter@ebc4d7e9ebcb0b1eb21480bb8f43113e996ac77a # v3.0.1
id: changes
with:
Expand All @@ -68,17 +63,17 @@ jobs:
- '.github/workflows/cluster_endtoend_12.yml'

- name: Set up Go
if: steps.skip-workflow.outputs.skip-workflow == 'false' && steps.changes.outputs.end_to_end == 'true'
if: steps.changes.outputs.end_to_end == 'true'
uses: actions/setup-go@0a12ed9d6a96ab950c8f026ed9f722fe0da7ef32 # v5.0.2
with:
go-version-file: go.mod

- name: Setup GitHub access token
if: steps.skip-workflow.outputs.skip-workflow == 'false' && steps.changes.outputs.end_to_end == 'true'
if: steps.changes.outputs.end_to_end == 'true'
run: git config --global url.https://${{ secrets.GH_ACCESS_TOKEN }}@github.com/.insteadOf https://github.com/

- name: Set up python
if: steps.skip-workflow.outputs.skip-workflow == 'false' && steps.changes.outputs.end_to_end == 'true'
if: steps.changes.outputs.end_to_end == 'true'
uses: actions/setup-python@39cd14951b08e74b54015e9e001cdefcf80e669f # v5.1.1

- name: Tune the OS
Expand All @@ -92,7 +87,7 @@ jobs:
flavor: mysql-8.0

- name: Get dependencies
if: steps.skip-workflow.outputs.skip-workflow == 'false' && steps.changes.outputs.end_to_end == 'true'
if: steps.changes.outputs.end_to_end == 'true'
timeout-minutes: 10
run: |

Expand All @@ -109,7 +104,7 @@ jobs:
go install github.com/vitessio/go-junit-report@HEAD

- name: Setup launchable dependencies
if: github.event_name == 'pull_request' && github.event.pull_request.draft == 'false' && steps.skip-workflow.outputs.skip-workflow == 'false' && steps.changes.outputs.end_to_end == 'true' && github.base_ref == 'main'
if: github.event_name == 'pull_request' && github.event.pull_request.draft == 'false' && steps.changes.outputs.end_to_end == 'true' && github.base_ref == 'main'
run: |
# Get Launchable CLI installed. If you can, make it a part of the builder image to speed things up
pip3 install --user launchable~=1.0 > /dev/null
Expand All @@ -121,7 +116,7 @@ jobs:
launchable record build --name "$GITHUB_RUN_ID" --no-commit-collection --source .

- name: Run cluster endtoend test
if: steps.skip-workflow.outputs.skip-workflow == 'false' && steps.changes.outputs.end_to_end == 'true'
if: steps.changes.outputs.end_to_end == 'true'
timeout-minutes: 45
run: |
# We set the VTDATAROOT to the /tmp folder to reduce the file path of mysql.sock file
Expand All @@ -137,19 +132,19 @@ jobs:
go run test.go -docker=false -follow -shard 12 | tee -a output.txt | go-junit-report -set-exit-code > report.xml

- name: Record test results in launchable if PR is not a draft
if: github.event_name == 'pull_request' && github.event.pull_request.draft == 'false' && steps.skip-workflow.outputs.skip-workflow == 'false' && steps.changes.outputs.end_to_end == 'true' && github.base_ref == 'main' && always()
if: github.event_name == 'pull_request' && github.event.pull_request.draft == 'false' && steps.changes.outputs.end_to_end == 'true' && github.base_ref == 'main' && always()
run: |
# send recorded tests to launchable
launchable record tests --build "$GITHUB_RUN_ID" go-test . || true

- name: Print test output
if: steps.skip-workflow.outputs.skip-workflow == 'false' && steps.changes.outputs.end_to_end == 'true' && always()
if: steps.changes.outputs.end_to_end == 'true' && always()
run: |
# print test output
cat output.txt

- name: Test Summary
if: steps.skip-workflow.outputs.skip-workflow == 'false' && steps.changes.outputs.end_to_end == 'true' && always()
if: steps.changes.outputs.end_to_end == 'true' && always()
uses: test-summary/action@31493c76ec9e7aa675f1585d3ed6f1da69269a86 # v2.4
with:
paths: "report.xml"
Expand Down
39 changes: 17 additions & 22 deletions .github/workflows/cluster_endtoend_13.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,14 @@
# DO NOT MODIFY: THIS FILE IS GENERATED USING "make generate_ci_workflows"

name: Cluster (13)
on: [push, pull_request]
on:
push:
branches:
- "main"
- "release-[0-9]+.[0-9]"
tags: '**'
pull_request:
branches: '**'
concurrency:
group: format('{0}-{1}', ${{ github.ref }}, 'Cluster (13)')
cancel-in-progress: true
Expand All @@ -28,24 +35,12 @@ jobs:
exit 1
fi

- name: Check if workflow needs to be skipped
id: skip-workflow
run: |
skip='false'
if [[ "${{github.event.pull_request}}" == "" ]] && [[ "${{github.ref}}" != "refs/heads/main" ]] && [[ ! "${{github.ref}}" =~ ^refs/heads/slack-[0-9]+\.[0-9]$ ]] && [[ ! "${{github.ref}}" =~ "refs/tags/.*" ]]; then
skip='true'
fi
echo Skip ${skip}
echo "skip-workflow=${skip}" >> $GITHUB_OUTPUT

- name: Check out code
if: steps.skip-workflow.outputs.skip-workflow == 'false'
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
with:
persist-credentials: 'false'

- name: Check for changes in relevant files
if: steps.skip-workflow.outputs.skip-workflow == 'false'
uses: dorny/paths-filter@ebc4d7e9ebcb0b1eb21480bb8f43113e996ac77a # v3.0.1
id: changes
with:
Expand All @@ -68,17 +63,17 @@ jobs:
- '.github/workflows/cluster_endtoend_13.yml'

- name: Set up Go
if: steps.skip-workflow.outputs.skip-workflow == 'false' && steps.changes.outputs.end_to_end == 'true'
if: steps.changes.outputs.end_to_end == 'true'
uses: actions/setup-go@0a12ed9d6a96ab950c8f026ed9f722fe0da7ef32 # v5.0.2
with:
go-version-file: go.mod

- name: Setup GitHub access token
if: steps.skip-workflow.outputs.skip-workflow == 'false' && steps.changes.outputs.end_to_end == 'true'
if: steps.changes.outputs.end_to_end == 'true'
run: git config --global url.https://${{ secrets.GH_ACCESS_TOKEN }}@github.com/.insteadOf https://github.com/

- name: Set up python
if: steps.skip-workflow.outputs.skip-workflow == 'false' && steps.changes.outputs.end_to_end == 'true'
if: steps.changes.outputs.end_to_end == 'true'
uses: actions/setup-python@39cd14951b08e74b54015e9e001cdefcf80e669f # v5.1.1

- name: Tune the OS
Expand All @@ -92,7 +87,7 @@ jobs:
flavor: mysql-8.0

- name: Get dependencies
if: steps.skip-workflow.outputs.skip-workflow == 'false' && steps.changes.outputs.end_to_end == 'true'
if: steps.changes.outputs.end_to_end == 'true'
timeout-minutes: 10
run: |

Expand All @@ -109,7 +104,7 @@ jobs:
go install github.com/vitessio/go-junit-report@HEAD

- name: Setup launchable dependencies
if: github.event_name == 'pull_request' && github.event.pull_request.draft == 'false' && steps.skip-workflow.outputs.skip-workflow == 'false' && steps.changes.outputs.end_to_end == 'true' && github.base_ref == 'main'
if: github.event_name == 'pull_request' && github.event.pull_request.draft == 'false' && steps.changes.outputs.end_to_end == 'true' && github.base_ref == 'main'
run: |
# Get Launchable CLI installed. If you can, make it a part of the builder image to speed things up
pip3 install --user launchable~=1.0 > /dev/null
Expand All @@ -121,7 +116,7 @@ jobs:
launchable record build --name "$GITHUB_RUN_ID" --no-commit-collection --source .

- name: Run cluster endtoend test
if: steps.skip-workflow.outputs.skip-workflow == 'false' && steps.changes.outputs.end_to_end == 'true'
if: steps.changes.outputs.end_to_end == 'true'
timeout-minutes: 45
run: |
# We set the VTDATAROOT to the /tmp folder to reduce the file path of mysql.sock file
Expand All @@ -137,19 +132,19 @@ jobs:
go run test.go -docker=false -follow -shard 13 | tee -a output.txt | go-junit-report -set-exit-code > report.xml

- name: Record test results in launchable if PR is not a draft
if: github.event_name == 'pull_request' && github.event.pull_request.draft == 'false' && steps.skip-workflow.outputs.skip-workflow == 'false' && steps.changes.outputs.end_to_end == 'true' && github.base_ref == 'main' && always()
if: github.event_name == 'pull_request' && github.event.pull_request.draft == 'false' && steps.changes.outputs.end_to_end == 'true' && github.base_ref == 'main' && always()
run: |
# send recorded tests to launchable
launchable record tests --build "$GITHUB_RUN_ID" go-test . || true

- name: Print test output
if: steps.skip-workflow.outputs.skip-workflow == 'false' && steps.changes.outputs.end_to_end == 'true' && always()
if: steps.changes.outputs.end_to_end == 'true' && always()
run: |
# print test output
cat output.txt

- name: Test Summary
if: steps.skip-workflow.outputs.skip-workflow == 'false' && steps.changes.outputs.end_to_end == 'true' && always()
if: steps.changes.outputs.end_to_end == 'true' && always()
uses: test-summary/action@31493c76ec9e7aa675f1585d3ed6f1da69269a86 # v2.4
with:
paths: "report.xml"
Expand Down
Loading
Loading