Skip to content

Upgrade project to Go 1.27 - #6639

Merged
JAORMX merged 5 commits into
mainfrom
upgrade-go-1-27
Sep 11, 2026
Merged

JAORMX merged 5 commits into
mainfrom
upgrade-go-1-27

Conversation

@JAORMX

@JAORMX JAORMX commented Sep 11, 2026

Copy link
Copy Markdown
Collaborator

Summary

  • Keep ToolHive on the current supported Go release so local development and CI build against Go 1.27.
  • Update the module directive, generated go:// builder default, default-image coverage, and affected developer/API documentation.
  • Remove security-scan exclusions whose Go standard-library fixes are included by the new toolchain.

Type of change

  • Bug fix
  • New feature
  • Refactoring (no behavior change)
  • Dependency update
  • Documentation
  • Other (Go toolchain upgrade)

Test plan

  • Unit tests (task test)

  • E2E tests (task test-e2e)

  • Linting (task lint-fix)

  • Manual testing (describe below)

  • task docs completed and regenerated the expected OpenAPI documentation.

  • task build completed successfully.

  • task test reached its test command but the locally installed gotestfmt v2.5.0 panicked under Go 1.27 (BUG: Empty package name encountered); CI should validate with its clean tool setup.

Changes

File group Change
go.mod, .github/workflows/lint.yml, .claude/rules/go-style.md Target Go 1.27 and keep version guidance aligned.
pkg/container/templates/*, pkg/runner/protocol_test.go Make Go 1.27 the default go:// builder image and cover it.
docs/ Update runtime and developer documentation; regenerate OpenAPI artifacts.
.github/workflows/security-scan.yml Remove obsolete standard-library vulnerability exclusions.

Does this introduce a user-facing change?

Yes. go:// workloads now use golang:1.27-alpine as their default builder image.

Special notes for reviewers

The local gotestfmt binary must be updated before task test can run under Go 1.27. The project source generated successfully and task build passed.

@github-actions github-actions Bot added the size/XS Extra small PR: < 100 lines changed label Sep 11, 2026
rdimitrov
rdimitrov previously approved these changes Sep 11, 2026
@github-actions github-actions Bot added size/XS Extra small PR: < 100 lines changed and removed size/XS Extra small PR: < 100 lines changed labels Sep 11, 2026
@github-actions github-actions Bot added size/XS Extra small PR: < 100 lines changed and removed size/XS Extra small PR: < 100 lines changed labels Sep 11, 2026
@github-actions github-actions Bot added size/S Small PR: 100-299 lines changed and removed size/XS Extra small PR: < 100 lines changed labels Sep 11, 2026
@codecov

codecov Bot commented Sep 11, 2026

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 82.05128% with 7 lines in your changes missing coverage. Please review.
✅ Project coverage is 78.96%. Comparing base (b934b7c) to head (a777757).
⚠️ Report is 3 commits behind head on main.

Files with missing lines Patch % Lines
pkg/authserver/storage/redis.go 76.47% 4 Missing ⚠️
pkg/authserver/storage/memory.go 80.00% 3 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #6639      +/-   ##
==========================================
+ Coverage   78.92%   78.96%   +0.04%     
==========================================
  Files         781      782       +1     
  Lines       77881    78008     +127     
==========================================
+ Hits        61467    61600     +133     
+ Misses      16409    16403       -6     
  Partials        5        5              

☔ 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.

@github-actions github-actions Bot added size/S Small PR: 100-299 lines changed and removed size/S Small PR: 100-299 lines changed labels Sep 11, 2026
@JAORMX
JAORMX merged commit 2d869a1 into main Sep 11, 2026
46 checks passed
@JAORMX
JAORMX deleted the upgrade-go-1-27 branch September 11, 2026 09:14
reyortiz3 pushed a commit that referenced this pull request Sep 11, 2026
Two leftovers from #6639.

The workflow installs Go from sdk/go/go.mod (1.26.0), but sdk-verify
runs generator tooling out of the root module, which now needs 1.27.
setup-go pins GOTOOLCHAIN=local, so that fails outright instead of
upgrading:

  go: go.mod requires go >= 1.27 (running go 1.26.0; GOTOOLCHAIN=local)

Point setup-go at the root go.mod. The SDK module keeps its own lower
floor, so this doesn't raise the minimum for SDK consumers.

The committed SDK artifacts were also left stale: the bump edited a
BuilderImage doc comment ("golang:1.26-alpine" -> "golang:1.27-alpine")
which flows through swagger.json into openapi.json/yaml and the
generated client, so verify's diff fails even on a correct toolchain.
Regenerated with task sdk-generate.
@github-actions github-actions Bot mentioned this pull request Sep 11, 2026
2 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

size/S Small PR: 100-299 lines changed

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants