Skip to content

upgrade Go version to 1.25 and update dependencies - #2

Merged
creativeprojects merged 1 commit into
mainfrom
upgrade-go-125
Sep 2, 2025
Merged

upgrade Go version to 1.25 and update dependencies#2
creativeprojects merged 1 commit into
mainfrom
upgrade-go-125

Conversation

@creativeprojects

@creativeprojects creativeprojects commented Sep 2, 2025

Copy link
Copy Markdown
Owner

upgrade Go version to 1.25 and update dependencies in workflow files and go.mod

Summary by CodeRabbit

  • Chores
    • Upgraded Go runtime to 1.25 across build and release pipelines, improving compatibility and performance.
    • Updated dependencies to latest stable versions for enhanced security and stability.
    • Refreshed CI tooling to newer versions, increasing build reliability and coverage reporting accuracy.
    • No changes to user-facing functionality; runtime and tooling updates only.

@coderabbitai

coderabbitai Bot commented Sep 2, 2025

Copy link
Copy Markdown

Walkthrough

Bumped Go to 1.25 across CI and module, updated GitHub Actions versions in build, docker, and release workflows, and upgraded multiple Go module dependencies in go.mod. No logic, control flow, or exported/public API changes.

Changes

Cohort / File(s) Summary of changes
CI workflows: build
\.github/workflows/build.yaml
Updated Go matrix from 1.24 to 1.25; actions/checkout v4→v5; codecov-action v4→v5; coverage input key changed from file to files; no other logic changes.
CI workflows: docker & release
\.github/workflows/docker.yml, \.github/workflows/release.yml
actions/checkout v4→v5; actions/setup-go v4→v5 (docker); Go version 1.24→1.25; no control-flow changes.
Go module updates
go.mod
go 1.24.2→1.25.0; multiple direct and indirect dependency version bumps only, no code changes.

Estimated code review effort

🎯 2 (Simple) | ⏱️ ~10 minutes

Poem

I twitch my whiskers at version skies,
Go hops to 1.25—no surprise.
CI burrows swept, actions anew,
Modules fresh like morning dew.
Thump, thump! I merge with fearless cheer—
Carrots compile, the path is clear. 🥕✨

Warning

There were issues while running some tools. Please review the errors and either fix the tool's configuration or disable the tool if it's a critical failure.

🔧 golangci-lint (2.2.2)

Error: can't load config: unsupported version of the configuration: "" See https://golangci-lint.run/product/migration-guide for migration instructions
The command is terminated due to an error: can't load config: unsupported version of the configuration: "" See https://golangci-lint.run/product/migration-guide for migration instructions

✨ Finishing Touches
🧪 Generate unit tests
  • Create PR with unit tests
  • Post copyable unit tests in a comment
  • Commit unit tests in branch upgrade-go-125

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
🪧 Tips

Chat

There are 3 ways to chat with CodeRabbit:

  • Review comments: Directly reply to a review comment made by CodeRabbit. Example:
    • I pushed a fix in commit <commit_id>, please review it.
    • Open a follow-up GitHub issue for this discussion.
  • Files and specific lines of code (under the "Files changed" tab): Tag @coderabbitai in a new review comment at the desired location with your query.
  • PR comments: Tag @coderabbitai in a new PR comment to ask questions about the PR branch. For the best results, please provide a very specific query, as very limited context is provided in this mode. Examples:
    • @coderabbitai gather interesting stats about this repository and render them as a table. Additionally, render a pie chart showing the language distribution in the codebase.
    • @coderabbitai read the files in the src/scheduler package and generate a class diagram using mermaid and a README in the markdown format.

Support

Need help? Create a ticket on our support page for assistance with any issues or questions.

CodeRabbit Commands (Invoked using PR/Issue comments)

Type @coderabbitai help to get the list of available commands.

Other keywords and placeholders

  • Add @coderabbitai ignore or @coderabbit ignore anywhere in the PR description to prevent this PR from being reviewed.
  • Add @coderabbitai summary to generate the high-level summary at a specific location in the PR description.
  • Add @coderabbitai anywhere in the PR title to generate the title automatically.

CodeRabbit Configuration File (.coderabbit.yaml)

  • You can programmatically configure CodeRabbit by adding a .coderabbit.yaml file to the root of your repository.
  • Please see the configuration documentation for more information.
  • If your editor has YAML language server enabled, you can add the path at the top of this file to enable auto-completion and validation: # yaml-language-server: $schema=https://coderabbit.ai/integrations/schema.v2.json

Status, Documentation and Community

  • Visit our Status Page to check the current availability of CodeRabbit.
  • Visit our Documentation for detailed information on how to use CodeRabbit.
  • Join our Discord Community to get help, request features, and share feedback.
  • Follow us on X/Twitter for updates and announcements.

@codecov

codecov Bot commented Sep 2, 2025

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 50.70%. Comparing base (bf854d4) to head (b4246a6).
⚠️ Report is 2 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main       #2   +/-   ##
=======================================
  Coverage   50.70%   50.70%           
=======================================
  Files          15       15           
  Lines        1992     1992           
=======================================
  Hits         1010     1010           
  Misses        847      847           
  Partials      135      135           
Flag Coverage Δ
unittests 50.70% <ø> (ø)

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

☔ View full report in Codecov by Sentry.
📢 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.

@coderabbitai coderabbitai 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.

Actionable comments posted: 0

🧹 Nitpick comments (8)
.github/workflows/docker.yml (2)

26-26: Prefer an explicit minor.x or caret range over “~1.25”, and quote it

setup-go supports exact versions and SemVer ranges like ^ and >=. “~” isn’t documented; use '1.25.x' or '^1.25.0' and wrap in quotes to avoid YAML pitfalls.
Apply within this step:

-          go-version: ~1.25
+          go-version: '1.25.x'

Refs. setup-go docs on supported syntax and quoting. (github.com)


9-11: Add least-privilege permissions and a concurrency gate

Reduce token blast radius and avoid overlapping weekly runs.
Outside the shown lines, add at job level:

permissions:
  contents: read
concurrency:
  group: docker-rebuild
  cancel-in-progress: false

GitHub recommends declaring minimal permissions explicitly. (github.blog)

.github/workflows/build.yaml (2)

16-16: Matrix Go version: consider '1.25.x' to ensure latest patch

This avoids stale cached patches without needing check-latest.

-        go_version: ['1.25']
+        go_version: ['1.25.x']

Supported version forms per setup-go. (github.com)


41-45: Codecov v5 migration: input name is correct; optionally switch to OIDC

files input is correct for v5; consider OIDC auth to drop repo token in public repos (set permissions id-token: write and use use_oidc: true).

-      uses: codecov/codecov-action@v5
+      uses: codecov/codecov-action@v5
       with:
         env_vars: OS,GO
         files: ./coverage.out
         flags: unittests
         fail_ci_if_error: false
         verbose: true
-        token: ${{ secrets.CODECOV_TOKEN }}
+        use_oidc: true
+permissions:
+  id-token: write

Codecov v5 deprecates file→files; supports OIDC. (github.com)

.github/workflows/release.yml (3)

22-22: Use '1.25.x' (or '^1.25.0') and quote it

“~” isn’t in the documented setup-go range syntax; prefer a documented form and quote to avoid YAML surprises.

-          go-version: ~1.25
+          go-version: '1.25.x'

Refs. setup-go docs. (github.com)


9-12: Explicit permissions for GoReleaser

GoReleaser typically needs contents: write for tagging/releases. Add minimal permissions at the job level.

permissions:
  contents: write

GitHub recommends declaring least-privilege permissions. (github.blog)


16-18: Drop Unshallow by fetching full history in checkout

Slight simplification and one less git call.

-      - name: Unshallow
-        run: git fetch --prune --unshallow
+      - name: Checkout
+        uses: actions/checkout@v5
+        with:
+          fetch-depth: 0
go.mod (1)

3-3: Go 1.25 target confirmed

Go 1.25 was released on August 12, 2025; upgrade aligns with CI.
Optional: decide whether you want 'go 1.25' or 'go 1.25.0'—since Go 1.21, patch-level in the go directive is supported and used by tooling, but it does set a stricter minimum. (go.dev, github.com)

📜 Review details

Configuration used: CodeRabbit UI

Review profile: CHILL

Plan: Pro

💡 Knowledge Base configuration:

  • MCP integration is disabled by default for public repositories
  • Jira integration is disabled by default for public repositories
  • Linear integration is disabled by default for public repositories

You can enable these sources in your CodeRabbit configuration.

📥 Commits

Reviewing files that changed from the base of the PR and between bf854d4 and b4246a6.

⛔ Files ignored due to path filters (1)
  • go.sum is excluded by !**/*.sum
📒 Files selected for processing (4)
  • .github/workflows/build.yaml (2 hunks)
  • .github/workflows/docker.yml (2 hunks)
  • .github/workflows/release.yml (1 hunks)
  • go.mod (2 hunks)
🔇 Additional comments (5)
.github/workflows/docker.yml (1)

13-13: Checkout v5 upgrade looks good

Up-to-date with Actions’ Node 20 runtime. (github.blog)

.github/workflows/build.yaml (1)

22-22: Checkout v5 is aligned with current runners

Nice bump; compatible with Node 20-based runners. (github.blog)

.github/workflows/release.yml (1)

14-14: Checkout v5 upgrade looks good

Matches current Actions runtime. (github.blog)

go.mod (2)

14-15: bbolt v1.4.x bump is valid

v1.4.3 exists upstream; good to pick latest in that series. (github.com)


15-16: x/net, x/time bumps: enable cgo for race‐detector sweep

Quick sanity check across Linux, Windows, and Darwin with the race detector. From the repo root, run:

#!/bin/bash
set -euo pipefail
for os in linux windows darwin; do
  CGO_ENABLED=1 GOOS=$os GOARCH=amd64 go vet ./...
  CGO_ENABLED=1 GOOS=$os GOARCH=amd64 go test -race ./...
done

@creativeprojects
creativeprojects merged commit 97c01b9 into main Sep 2, 2025
6 checks passed
@creativeprojects
creativeprojects deleted the upgrade-go-125 branch September 2, 2025 20:40
@coderabbitai coderabbitai Bot mentioned this pull request Feb 15, 2026
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