Skip to content

chore: upgrade builderd's go version to latest#3929

Merged
chronark merged 3 commits intomainfrom
09-08-chore_upgrade_builderd_s_go_version_to_latest
Sep 9, 2025
Merged

chore: upgrade builderd's go version to latest#3929
chronark merged 3 commits intomainfrom
09-08-chore_upgrade_builderd_s_go_version_to_latest

Conversation

@chronark
Copy link
Collaborator

@chronark chronark commented Sep 8, 2025

What does this PR do?

Fixes # (issue)

If there is not an issue for this, please create one first. This is used to tracking purposes and also helps use understand why this PR exists

Type of change

  • Bug fix (non-breaking change which fixes an issue)
  • Chore (refactoring code, technical debt, workflow improvements)
  • Enhancement (small improvements)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • This change requires a documentation update

How should this be tested?

  • Test A
  • Test B

Checklist

Required

  • Filled out the "How to test" section in this PR
  • Read Contributing Guide
  • Self-reviewed my own code
  • Commented on my code in hard-to-understand areas
  • Ran pnpm build
  • Ran pnpm fmt
  • Checked for warnings, there are none
  • Removed all console.logs
  • Merged the latest changes from main onto my branch with git pull origin main
  • My changes don't cause any responsiveness issues

Appreciated

  • If a UI change was made: Added a screen recording or screenshots to this PR
  • Updated the Unkey Docs if changes were necessary

Summary by CodeRabbit

  • Chores
    • Upgraded the backend build toolchain to a newer Go patch version to enhance security, stability, and compatibility across environments.
    • Improves build reliability and reduces potential build-time issues without altering product behavior.
    • No changes to features or APIs; end-user experience remains the same.
    • No action required from users or administrators.

@changeset-bot
Copy link

changeset-bot bot commented Sep 8, 2025

⚠️ No Changeset found

Latest commit: f0f2002

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

@vercel
Copy link

vercel bot commented Sep 8, 2025

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Preview Comments Updated (UTC)
dashboard Ready Ready Preview Comment Sep 9, 2025 9:49am
engineering Ready Ready Preview Comment Sep 9, 2025 9:49am

@coderabbitai
Copy link
Contributor

coderabbitai bot commented Sep 8, 2025

📝 Walkthrough

Walkthrough

Updated Go toolchain version in a single go.mod file from 1.24.4 to 1.25.1. No other configuration or code changes.

Changes

Cohort / File(s) Summary
Toolchain bump
go/deploy/builderd/go.mod
Update Go toolchain directive from 1.24.4 to 1.25.1

Estimated code review effort

🎯 1 (Trivial) | ⏱️ ~2 minutes

Suggested reviewers

  • imeyer
  • perkinsjr

Pre-merge checks (2 passed, 1 warning)

❌ Failed checks (1 warning)
Check name Status Explanation Resolution
Description Check ⚠️ Warning The PR description remains populated with template placeholders and lacks any specific details: the summary section has no actual description or issue number, the testing instructions are generic placeholders, and the checklist items are unmarked, providing no context or validation steps for reviewers. Please replace the placeholder text in “What does this PR do?” with a concise summary and relevant issue number, update “How should this be tested?” with concrete test steps, and complete the checklist to document the tasks you’ve performed.
✅ Passed checks (2 passed)
Check name Status Explanation
Title Check ✅ Passed The title succinctly and accurately describes the main change as upgrading builderd’s Go version, clearly reflecting the modification to the go/deploy/builderd/go.mod file.
Docstring Coverage ✅ Passed No functions found in the changes. Docstring coverage check skipped.

Tip

👮 Agentic pre-merge checks are now available in preview!

Pro plan users can now enable pre-merge checks in their settings to enforce checklists before merging PRs.

  • Built-in checks – Quickly apply ready-made checks to enforce title conventions, require pull request descriptions that follow templates, validate linked issues for compliance, and more.
  • Custom agentic checks – Define your own rules using CodeRabbit’s advanced agentic capabilities to enforce organization-specific policies and workflows. For example, you can instruct CodeRabbit’s agent to verify that API documentation is updated whenever API schema files are modified in a PR. Note: Upto 5 custom checks are currently allowed during the preview period. Pricing for this feature will be announced in a few weeks.

Example:

reviews:
  pre_merge_checks:
    custom_checks:
      - name: "Undocumented Breaking Changes"
        mode: "warning"
        instructions: |
          Pass/fail criteria: All breaking changes to public APIs, CLI flags, environment variables, configuration keys, database schemas, or HTTP/GraphQL endpoints must be documented in the "Breaking Change" section of the PR description and in CHANGELOG.md. Exclude purely internal or private changes (e.g., code not exported from package entry points or explicitly marked as internal).

Please share your feedback with us on this Discord post.

✨ Finishing Touches
🧪 Generate unit tests
  • Create PR with unit tests
  • Post copyable unit tests in a comment
  • Commit unit tests in branch 09-08-chore_upgrade_builderd_s_go_version_to_latest

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.

Copy link
Collaborator Author

chronark commented Sep 8, 2025

@chronark chronark marked this pull request as ready for review September 8, 2025 06:20
@vercel vercel bot temporarily deployed to Preview – engineering September 8, 2025 06:20 Inactive
@vercel vercel bot temporarily deployed to Preview – dashboard September 8, 2025 06:21 Inactive
Base automatically changed from 09-08-chore_remove_tenancy_environment_project_ids_if_there_are_any to main September 8, 2025 15:41
@github-actions
Copy link
Contributor

github-actions bot commented Sep 8, 2025

Thank you for following the naming conventions for pull request titles! 🙏

@vercel vercel bot temporarily deployed to Preview – dashboard September 9, 2025 09:49 Inactive
@vercel vercel bot temporarily deployed to Preview – engineering September 9, 2025 09:49 Inactive
Copy link
Contributor

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

Actionable comments posted: 2

📜 Review details

Configuration used: CodeRabbit UI

Review profile: ASSERTIVE

Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between c6c7206 and f0f2002.

📒 Files selected for processing (1)
  • go/deploy/builderd/go.mod (1 hunks)
⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (5)
  • GitHub Check: Test Go API Local / Test
  • GitHub Check: Test API / API Test Local
  • GitHub Check: Build / Build
  • GitHub Check: Test Packages / Test
  • GitHub Check: Analyze (javascript-typescript)
🔇 Additional comments (1)
go/deploy/builderd/go.mod (1)

3-3: LGTM: go directive bumped to Go 1.25.1 (current).

go 1.25.1 is valid in go.mod and will direct toolchain selection appropriately (Go ≥1.21). Go 1.25 shipped in August 2025 and 1.25.1 was released on September 3, 2025. Looks good. (go.dev, groups.google.com)

module github.com/unkeyed/unkey/go/deploy/builderd

go 1.24.4
go 1.25.1
Copy link
Contributor

Choose a reason for hiding this comment

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

🧹 Nitpick (assertive)

Run tidy with the new language version.

After bumping, run in this module to refresh metadata as needed:

(cd go/deploy/builderd && go mod tidy -go=1.25)
🤖 Prompt for AI Agents
In go/deploy/builderd/go.mod around line 3, the Go version was bumped to 1.25.1
but module metadata wasn’t refreshed; run the tidy command in that module to
update go.sum and module metadata: execute (cd go/deploy/builderd && go mod tidy
-go=1.25), verify go.sum changes, and commit the updated go.mod/go.sum.

💡 Verification agent

🧩 Analysis chain

Verify CI/tooling pick up 1.25.1 automatically.

Ensure:

  • CI (e.g., actions/setup-go) uses go-version-file or a semver that resolves to 1.25.x.
  • Local/distro toolchains (Dockerfiles, Makefiles, build images) aren’t pinned to older 1.24.x.

Run this to audit the repo for potential mismatches:


🏁 Script executed:

#!/bin/bash
# From repo root

echo "== go directives in all modules =="
rg -nP '^\s*go\s+1\.\d+(\.\d+)?\b' -g '*go.mod' -S -C0

echo -e "\n== toolchain directives (if any) =="
rg -nP '^\s*toolchain\s+go1\.\d+(\.\d+)?\b' -g '*go.mod' -S -C0

echo -e "\n== GH Actions: setup-go usage =="
rg -nP -C2 'uses:\s*actions/setup-go' .github/workflows \
  && rg -nP -C1 'go-version-file|go-version' .github/workflows

echo -e "\n== Dockerfiles referencing golang images =="
fd -t f -H 'Dockerfile*' | xargs -I{} rg -n 'golang:' -n {}

Length of output: 1621


Update CI and Dockerfiles to Go 1.25.x

  • CI: the autofix.ci.yaml workflow uses go-version-file: ./go/go.mod (which pins Go 1.24.4), so it won’t pick up the go 1.25.1 directive in go/deploy/builderd/go.mod. Point the action at the correct module file or use a semver go-version: '1.25.x'.
  • Dockerfiles: every FROM golang:1.24[-alpine] needs to be bumped to golang:1.25[-alpine] to match the new module Go versions.
🤖 Prompt for AI Agents
In go/deploy/builderd/go.mod around line 3, the project file specifies "go
1.25.1" but CI and Dockerfiles still pin Go 1.24; update the CI workflow to
reference the correct module (change go-version-file to point at
./go/deploy/builderd/go.mod) or set go-version to a semver like '1.25.x', and
update all Dockerfiles that use FROM golang:1.24 or golang:1.24-alpine to use
golang:1.25 or golang:1.25-alpine so the runtime/build images match the module
Go directive.

@chronark chronark merged commit 0086690 into main Sep 9, 2025
18 checks passed
@chronark chronark deleted the 09-08-chore_upgrade_builderd_s_go_version_to_latest branch September 9, 2025 11:58
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.

2 participants