Skip to content

ci: test latest Go only and bump go.mod to 1.26.0#191

Merged
echarrod merged 3 commits into
mainfrom
ci/go-version-latest-only
Apr 9, 2026
Merged

ci: test latest Go only and bump go.mod to 1.26.0#191
echarrod merged 3 commits into
mainfrom
ci/go-version-latest-only

Conversation

@echarrod
Copy link
Copy Markdown
Contributor

@echarrod echarrod commented Apr 9, 2026

Simplify the CI test matrix to only test with the latest Go ('1'), and bump the go directive in go.mod to 1.26.0.

Testing multiple Go versions caused flaky failures whenever we bumped deps ahead of the oldest supported version. Since we don't commit to long-term compatibility with older Go releases, there's no value in the matrix.

Summary by CodeRabbit

  • Chores
    • Updated Go toolchain requirement to version 1.26.0 across all modules and examples.
    • Adjusted CI workflow configuration for consistency and added trailing newline formatting.

@coderabbitai
Copy link
Copy Markdown

coderabbitai Bot commented Apr 9, 2026

📝 Walkthrough

Walkthrough

This PR updates the Go toolchain version from 1.25.3 to 1.26.0 across 17 example and adapter module files, plus the main module. The CI workflow configuration in .github/workflows/tests.yml was also modified to replace the dynamic Go version matrix with a fixed version '1' and to adjust echo message formatting for container tests.

Estimated code review effort

🎯 1 (Trivial) | ⏱️ ~5 minutes

Possibly related PRs

Suggested reviewers

  • andrewwormald

Poem

🐰 A hoppy hop through versions new,
From 1.25 we bid adieu!
To 1.26 the toolchain springs,
Across the modules, batches, things—
Consistency in every file,
Makes this upgrade worth a smile! 🎉

🚥 Pre-merge checks | ✅ 3
✅ Passed checks (3 passed)
Check name Status Explanation
Title check ✅ Passed The title accurately summarises the main changes: simplifying CI to test with latest Go only and bumping go.mod to 1.26.0, matching the changeset content.
Description check ✅ Passed The description clearly relates to the changeset, explaining the rationale for testing only the latest Go version and documenting the go.mod version bump to 1.26.0.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch ci/go-version-latest-only

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@coderabbitai coderabbitai Bot requested a review from andrewwormald April 9, 2026 10:14
@sonarqubecloud
Copy link
Copy Markdown

sonarqubecloud Bot commented Apr 9, 2026

Copy link
Copy Markdown

@coderabbitai coderabbitai Bot left a comment

Choose a reason for hiding this comment

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

🧹 Nitpick comments (2)
go.mod (1)

3-3: Consider upgrading to Go 1.26.1.

Go 1.26.0 is officially released and stable. However, Go 1.26.1 (the latest patch release) was released on March 6, 2026 and includes bug fixes. Consider updating to go 1.26.1 for stability improvements.

🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed.

In `@go.mod` at line 3, Update the Go toolchain version in the module file by
changing the go directive from "1.26.0" to "1.26.1" in go.mod; after updating,
run your usual project checks (e.g., go version in CI, go mod tidy and a
build/test run) to ensure compatibility with the new patch release.
.github/workflows/tests.yml (1)

20-20: Standardise Go version selection across all jobs.

Line 20 uses go-version: '1' which resolves to any Go 1.x version and will automatically upgrade to future Go minor releases as they are released. Lines 36 and 62 use go-version-file: 'go.mod' which pins to the version specified in go.mod. This inconsistency means the core job may run on a different Go version than the other jobs, making cross-job test failures harder to reproduce and triage.

🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed.

In @.github/workflows/tests.yml at line 20, The workflow uses an inconsistent Go
selector: change the literal key "go-version: '1'" to use the same pinning
mechanism as the other jobs by replacing it with "go-version-file: 'go.mod'" (or
otherwise set the exact version that matches go.mod) so the core job uses the
same Go version as the other jobs; update the entry containing "go-version: '1'"
to "go-version-file: 'go.mod'".
🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.

Nitpick comments:
In @.github/workflows/tests.yml:
- Line 20: The workflow uses an inconsistent Go selector: change the literal key
"go-version: '1'" to use the same pinning mechanism as the other jobs by
replacing it with "go-version-file: 'go.mod'" (or otherwise set the exact
version that matches go.mod) so the core job uses the same Go version as the
other jobs; update the entry containing "go-version: '1'" to "go-version-file:
'go.mod'".

In `@go.mod`:
- Line 3: Update the Go toolchain version in the module file by changing the go
directive from "1.26.0" to "1.26.1" in go.mod; after updating, run your usual
project checks (e.g., go version in CI, go mod tidy and a build/test run) to
ensure compatibility with the new patch release.

ℹ️ Review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro

Run ID: f908f505-cf27-43aa-beb6-7c51c9fef429

📥 Commits

Reviewing files that changed from the base of the PR and between c4a417e and 01603ce.

📒 Files selected for processing (18)
  • .github/workflows/tests.yml
  • _examples/callback/go.mod
  • _examples/connector/go.mod
  • _examples/gettingstarted/go.mod
  • _examples/orderprocessor/go.mod
  • _examples/schedule/go.mod
  • _examples/sqlexample/go.mod
  • _examples/timeout/go.mod
  • _examples/webui/go.mod
  • adapters/jlog/go.mod
  • adapters/kafkastreamer/go.mod
  • adapters/reflexstreamer/go.mod
  • adapters/rinkrolescheduler/go.mod
  • adapters/sqlstore/go.mod
  • adapters/sqltimeout/go.mod
  • adapters/webui/go.mod
  • adapters/wredis/go.mod
  • go.mod

@echarrod echarrod merged commit a6b358a into main Apr 9, 2026
9 checks passed
@echarrod echarrod deleted the ci/go-version-latest-only branch April 9, 2026 10:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant