Skip to content

[main] Upgrade the Golang version to go1.27.0 - #20875

Open
vitess-bot[bot] wants to merge 3 commits into
mainfrom
upgrade-go-to-1.27.0-on-main
Open

[main] Upgrade the Golang version to go1.27.0#20875
vitess-bot[bot] wants to merge 3 commits into
mainfrom
upgrade-go-to-1.27.0-on-main

Conversation

@vitess-bot

@vitess-bot vitess-bot Bot commented Aug 19, 2026

Copy link
Copy Markdown
Contributor

This Pull Request bumps the Golang version to go1.27.0 and the bootstrap version to 60.

Do not trust the bot blindly. A thorough code review must be done to ensure all the files have been correctly modified.

cc @vitessio/release

Copilot AI balanced review requested due to automatic review settings August 19, 2026 23:36
@vitess-bot
vitess-bot Bot requested a review from frouioui as a code owner August 19, 2026 23:36
@vitess-bot vitess-bot Bot added Benchmark me Add label to PR to run benchmarks Component: General Changes throughout the code base go labels Aug 19, 2026
@vitess-bot
vitess-bot Bot requested a review from derekperkins as a code owner August 19, 2026 23:36
@vitess-bot
vitess-bot Bot requested a review from a team August 19, 2026 23:36
@vitess-bot

vitess-bot Bot commented Aug 19, 2026

Copy link
Copy Markdown
Contributor Author

Hello! 👋

This Pull Request is now handled by arewefastyet. The current HEAD and future commits will be benchmarked.

You can find the performance comparison on the arewefastyet website.

@github-actions github-actions Bot added this to the v25.0.0 milestone Aug 19, 2026
@vitess-bot vitess-bot Bot added NeedsWebsiteDocsUpdate What it says NeedsDescriptionUpdate The description is not clear or comprehensive enough, and needs work NeedsIssue A linked issue is missing for this Pull Request NeedsBackportReason If backport labels have been applied to a PR, a justification is required labels Aug 19, 2026
@vitess-bot

vitess-bot Bot commented Aug 19, 2026

Copy link
Copy Markdown
Contributor Author

Review Checklist

Hello reviewers! 👋 Please follow this checklist when reviewing this Pull Request.

General

  • Ensure that the Pull Request has a descriptive title.
  • Ensure there is a link to an issue (except for internal cleanup and flaky test fixes), new features should have an RFC that documents use cases and test cases.

Tests

  • Bug fixes should have at least one unit or end-to-end test, enhancement and new features should have a sufficient number of tests.

Documentation

  • Apply the release notes (needs details) label if users need to know about this change.
  • New features should be documented.
  • There should be some code comments as to why things are implemented the way they are.
  • There should be a comment at the top of each new or modified test to explain what the test does.

New flags

  • Is this flag really necessary?
  • Flag names must be clear and intuitive, use dashes (-), and have a clear help text.

If a workflow is added or modified:

  • Each item in Jobs should be named in order to mark it as required.
  • If the workflow needs to be marked as required, the maintainer team must be notified.

Backward compatibility

  • Protobuf changes should be wire-compatible.
  • Changes to _vt tables and RPCs need to be backward compatible.
  • RPC changes should be compatible with vitess-operator
  • If a flag is removed, then it should also be removed from vitess-operator and arewefastyet, if used there.
  • vtctl command output order should be stable and awk-able.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Upgrades Vitess’s Go toolchain baseline to Go 1.27.0 and advances bootstrap images to version 60.

Changes:

  • Updates all root and tool module Go directives.
  • Updates pinned Go Docker images and digests.
  • Bumps bootstrap defaults and documents version 60.

Reviewed changes

Copilot reviewed 18 out of 18 changed files in this pull request and generated no comments.

Show a summary per file
File Description
go.mod Sets Go 1.27.0.
tools/addlicense/go.mod Updates tool module baseline.
tools/gofumpt/go.mod Updates tool module baseline.
tools/goimports/go.mod Updates tool module baseline.
tools/golangci-lint/go.mod Updates tool module baseline.
tools/gotestsum/go.mod Updates tool module baseline.
tools/goyacc/go.mod Updates tool module baseline.
Makefile Sets bootstrap version 60.
test.go Uses bootstrap version 60 by default.
docker/bootstrap/Dockerfile.common Pins the Go 1.27.0 Bookworm image.
docker/bootstrap/CHANGELOG.md Records bootstrap version 60.
docker/lite/Dockerfile Pins the Go 1.27.0 Trixie image.
docker/lite/Dockerfile.mysql80 Updates the MySQL 8.0 builder image.
docker/lite/Dockerfile.mysql84 Updates the MySQL 8.4 builder image.
docker/lite/Dockerfile.percona80 Updates the Percona 8.0 builder image.
docker/lite/Dockerfile.percona84 Updates the Percona 8.4 builder image.
docker/vttestserver/Dockerfile.mysql80 Updates the test-server builder image.
docker/vttestserver/Dockerfile.mysql84 Updates the test-server builder image.

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: d83a70814b

ℹ️ About Codex in GitHub

Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".

Comment thread go.mod
@mhamza15 mhamza15 removed Component: Build/CI Type: CI/Build NeedsDescriptionUpdate The description is not clear or comprehensive enough, and needs work NeedsWebsiteDocsUpdate What it says Component: Docker labels Aug 19, 2026
@mhamza15 mhamza15 removed NeedsIssue A linked issue is missing for this Pull Request NeedsBackportReason If backport labels have been applied to a PR, a justification is required labels Aug 19, 2026
Copilot AI review requested due to automatic review settings August 20, 2026 00:21
@vitess-bot
vitess-bot Bot force-pushed the upgrade-go-to-1.27.0-on-main branch from d83a708 to efbbaea Compare August 20, 2026 00:21

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 18 out of 18 changed files in this pull request and generated no new comments.

Signed-off-by: vitess-bot[bot] <108069721+vitess-bot[bot]@users.noreply.github.com>
Copilot AI review requested due to automatic review settings August 21, 2026 00:23
@vitess-bot
vitess-bot Bot force-pushed the upgrade-go-to-1.27.0-on-main branch from efbbaea to 2e92974 Compare August 21, 2026 00:23

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 18 out of 18 changed files in this pull request and generated no new comments.

Signed-off-by: Matt Lord <mattalord@gmail.com>
Copilot AI review requested due to automatic review settings August 21, 2026 04:31

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 23 out of 26 changed files in this pull request and generated no new comments.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 9ebb5b7de6

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

logger.mu.Lock()
defer logger.mu.Unlock()
return len(logger.subscribed) == 0
}, 5*time.Second, 1*time.Millisecond, "expected the server handler to notice the closed client and unsubscribe")

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P1 Badge Raise the HTTP unsubscribe timeout to 30 seconds

On a resource-starved GitHub Actions runner, a scheduling pause or delayed loopback shutdown longer than five seconds can make this test fail even though the handler eventually unsubscribes. Use the repository-mandated timeout of at least 30 seconds while retaining assert.Eventually.

AGENTS.md reference: AGENTS.md:L69-L76

Useful? React with 👍 / 👎.

// By now vtgate will shut down because it reached its onterm-timeout, despite idle
// connections still being opened. There is a brief window between the connections
// being force-closed above and the process exiting, so allow for it.
require.Eventually(t, clusterInstance.VtgateProcess.IsShutdown, 10*time.Second, 100*time.Millisecond)

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P1 Badge Allow at least 30 seconds for vtgate to exit

When the end-to-end runner is heavily loaded, process teardown can be delayed beyond this ten-second window after the connections close, causing a spurious failure even though vtgate exits correctly. Increase this Eventually timeout to the repository-required minimum of 30 seconds.

AGENTS.md reference: AGENTS.md:L69-L76

Useful? React with 👍 / 👎.

@codecov

codecov Bot commented Aug 21, 2026

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 78.07018% with 50 lines in your changes missing coverage. Please review.
✅ Project coverage is 73.96%. Comparing base (70c7a72) to head (2133c3a).
⚠️ Report is 498 commits behind head on main.

Files with missing lines Patch % Lines
go/vt/mysqlctl/xtrabackupengine.go 0.00% 13 Missing ⚠️
go/vt/servenv/metrics_linux.go 40.00% 6 Missing ⚠️
go/vt/vtgate/evalengine/translate_builtin.go 86.20% 4 Missing ⚠️
go/vt/hook/hook.go 0.00% 3 Missing ⚠️
go/vt/vttablet/onlineddl/executor.go 0.00% 3 Missing ⚠️
go/mysql/binlog_event_filepos.go 33.33% 2 Missing ⚠️
...est/fuzzing/autogenerate/convert_grep_to_fuzzer.go 0.00% 2 Missing ⚠️
go/vt/vtctl/vtctl.go 0.00% 2 Missing ⚠️
go/vt/vtctl/workflow/traffic_switcher.go 66.66% 2 Missing ⚠️
go/vt/vtorc/inst/analysis.go 0.00% 2 Missing ⚠️
... and 9 more
Additional details and impacted files
@@            Coverage Diff             @@
##             main   #20875      +/-   ##
==========================================
+ Coverage   69.67%   73.96%   +4.29%     
==========================================
  Files        1614      989     -625     
  Lines      216793   134844   -81949     
==========================================
- Hits       151044    99744   -51300     
+ Misses      65749    35100   -30649     
Flag Coverage Δ
partial 73.96% <78.07%> (?)

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

Signed-off-by: Matt Lord <mattalord@gmail.com>
Copilot AI review requested due to automatic review settings August 21, 2026 14:55

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 115 out of 118 changed files in this pull request and generated no new comments.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Benchmark me Add label to PR to run benchmarks Component: General Changes throughout the code base go Type: CI/Build Type: Dependencies Dependency updates

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants