Skip to content

chore(deps): bump golang version to 1.26#2712

Merged
kovayur merged 4 commits into
mainfrom
yury/golang-1-26
May 28, 2026
Merged

chore(deps): bump golang version to 1.26#2712
kovayur merged 4 commits into
mainfrom
yury/golang-1-26

Conversation

@kovayur

@kovayur kovayur commented May 26, 2026

Copy link
Copy Markdown
Contributor

Description

Checklist (Definition of Done)

  • Unit and integration tests added
  • Added test description under Test manual
  • Documentation added if necessary (i.e. changes to dev setup, test execution, ...)
  • CI and all relevant tests are passing
  • Add the ticket number to the PR title if available, i.e. ROX-12345: ...
  • Discussed security and business related topics privately. Will move any security and business related topics that arise to private communication channel.
  • Add secret to app-interface Vault or Secrets Manager if necessary
  • RDS changes were e2e tested manually
  • Check AWS limits are reasonable for changes provisioning new resources

Test manual

TODO: Add manual testing efforts

# To run tests locally run:
make db/teardown db/setup db/migrate
make ocm/setup
make verify lint binary test test/integration

@kovayur

kovayur commented May 26, 2026

Copy link
Copy Markdown
Contributor Author

@coderabbitai review

@coderabbitai

coderabbitai Bot commented May 26, 2026

Copy link
Copy Markdown
✅ Actions performed

Review triggered.

Note: CodeRabbit is an incremental review system and does not re-review already reviewed commits. This command is applicable only when automatic reviews are paused.

@coderabbitai

coderabbitai Bot commented May 26, 2026

Copy link
Copy Markdown

Review Change Stack

📝 Walkthrough

Summary by CodeRabbit

  • Chores
    • Updated Go toolchain version from 1.25 to 1.26 across CI/CD workflows, Dockerfiles, and build configurations.
    • Updated minimum Go version requirement to 1.26+ in project documentation.

Walkthrough

Go toolchain version upgraded from 1.25 to 1.26 across module declarations, Docker build images, CI workflows, linter configuration, and user documentation. All files consistently updated to reference Go 1.26 or 1.26.2 depending on context.

Changes

Go 1.26 Toolchain Upgrade

Layer / File(s) Summary
Go module version declarations
go.mod, tools/go.mod
Module toolchain versions bumped from 1.25.0 to 1.26.0.
Build infrastructure toolchain versions
Dockerfile, emailsender/Dockerfile, probe/Dockerfile, .openshift-ci/e2e-runtime/Dockerfile, .golangci.yml, .github/workflows/aws-integration.yaml, .github/workflows/ci.yaml, .github/workflows/emailsender-central-compatibility.yaml
Docker base images updated from go-toolset:1.25.9 to 1.26.2, CI workflows updated to use Go 1.26 for setup-go, and linter configuration updated to 1.26.2.
Documentation requirements
README.md, CLAUDE.md
User-facing documentation updated to specify Go 1.26+ as minimum requirement.

🎯 1 (Trivial) | ⏱️ ~3 minutes

🚥 Pre-merge checks | ✅ 4 | ❌ 1

❌ Failed checks (1 warning)

Check name Status Explanation Resolution
Description check ⚠️ Warning The PR description follows the repository template structure with all required sections present, but the Description section is empty and most checklist items remain unchecked, indicating incomplete preparation for merge. Add a summary of the change and link to JIRA ticket in the Description section; check or strikethrough relevant checklist items; provide actual manual testing details instead of TODO placeholder.
✅ Passed checks (4 passed)
Check name Status Explanation
Title check ✅ Passed The PR title 'chore(deps): bump golang version to 1.26' accurately summarizes the main change across all modified files, which consistently update Go toolchain versions from 1.25 to 1.26.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.

✏️ 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 yury/golang-1-26

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.12.2)

level=warning msg="[linters_context] gocritic: no need to enable check "commentFormatting": it's already enabled"


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 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: 1

Caution

Some comments are outside the diff and can’t be posted inline due to platform limitations.

⚠️ Outside diff range comments (1)
.openshift-ci/e2e-runtime/Dockerfile (1)

1-1: ⚠️ Potential issue | 🟠 Major | ⚡ Quick win

Missing platform specification for linux/amd64.

The base image does not specify a target platform. Per coding guidelines, container images should be built for linux/amd64 platform. As per coding guidelines, "Build container images for linux/amd64 platform" for Dockerfile*.

📝 Proposed fix
-FROM quay.io/centos/centos:stream9
+FROM --platform=linux/amd64 quay.io/centos/centos:stream9
🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In @.openshift-ci/e2e-runtime/Dockerfile at line 1, Update the Dockerfile base
image declaration to target the linux/amd64 platform by adding the platform
specification to the FROM instruction (the existing FROM
quay.io/centos/centos:stream9 line); ensure the FROM line is changed so the
image build explicitly uses --platform=linux/amd64 (or equivalent Dockerfile
platform syntax) to comply with the "Build container images for linux/amd64
platform" guideline.
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

Inline comments:
In `@Dockerfile`:
- Line 1: Update the FROM instruction in the Dockerfile to use a fixed platform
instead of the build-time variable: replace the current
--platform=$BUILDPLATFORM with --platform=linux/amd64 in the FROM line that
defines the build stage (the existing "FROM ... AS build" instruction), so the
image is always built for linux/amd64 per guidelines; keep the same base image
tag/sha and stage name unchanged and rerun your build to verify no breakage.

---

Outside diff comments:
In @.openshift-ci/e2e-runtime/Dockerfile:
- Line 1: Update the Dockerfile base image declaration to target the linux/amd64
platform by adding the platform specification to the FROM instruction (the
existing FROM quay.io/centos/centos:stream9 line); ensure the FROM line is
changed so the image build explicitly uses --platform=linux/amd64 (or equivalent
Dockerfile platform syntax) to comply with the "Build container images for
linux/amd64 platform" guideline.
🪄 Autofix (Beta)

Fix all unresolved CodeRabbit comments on this PR:

  • Push a commit to this branch (recommended)
  • Create a new PR with the fixes

ℹ️ Review info
⚙️ Run configuration

Configuration used: Central YAML (base), Organization UI (inherited)

Review profile: CHILL

Plan: Enterprise

Run ID: 64b7003c-85fc-4c46-803e-2a921bce0c27

📥 Commits

Reviewing files that changed from the base of the PR and between f4ea062 and 19b0191.

📒 Files selected for processing (12)
  • .github/workflows/aws-integration.yaml
  • .github/workflows/ci.yaml
  • .github/workflows/emailsender-central-compatibility.yaml
  • .golangci.yml
  • .openshift-ci/e2e-runtime/Dockerfile
  • CLAUDE.md
  • Dockerfile
  • README.md
  • emailsender/Dockerfile
  • go.mod
  • probe/Dockerfile
  • tools/go.mod

Comment thread Dockerfile
@@ -1,4 +1,4 @@
FROM --platform=$BUILDPLATFORM registry.access.redhat.com/ubi9/go-toolset:1.25.9@sha256:e06a6f4c85c3ca75f64127542449c9770fb885adfb592f987c576d268ac108de AS build
FROM --platform=$BUILDPLATFORM registry.access.redhat.com/ubi9/go-toolset:1.26.2@sha256:a82d974dae02330d0669fb0a5ced2ae498bd1bd708359d61493b9fb0dc0748eb AS build

@coderabbitai coderabbitai Bot May 26, 2026

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

⚠️ Potential issue | 🟠 Major | ⚡ Quick win

Platform specification conflicts with coding guidelines.

The --platform=$BUILDPLATFORM allows dynamic platform selection, but the coding guidelines specify that container images should be built for linux/amd64 platform. Consider using --platform=linux/amd64 instead to ensure consistent builds. As per coding guidelines, "Build container images for linux/amd64 platform" for Dockerfile*.

📝 Proposed fix
-FROM --platform=$BUILDPLATFORM registry.access.redhat.com/ubi9/go-toolset:1.26.2@sha256:a82d974dae02330d0669fb0a5ced2ae498bd1bd708359d61493b9fb0dc0748eb AS build
+FROM --platform=linux/amd64 registry.access.redhat.com/ubi9/go-toolset:1.26.2@sha256:a82d974dae02330d0669fb0a5ced2ae498bd1bd708359d61493b9fb0dc0748eb AS build
📝 Committable suggestion

‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.

Suggested change
FROM --platform=$BUILDPLATFORM registry.access.redhat.com/ubi9/go-toolset:1.26.2@sha256:a82d974dae02330d0669fb0a5ced2ae498bd1bd708359d61493b9fb0dc0748eb AS build
FROM --platform=linux/amd64 registry.access.redhat.com/ubi9/go-toolset:1.26.2@sha256:a82d974dae02330d0669fb0a5ced2ae498bd1bd708359d61493b9fb0dc0748eb AS build
🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In `@Dockerfile` at line 1, Update the FROM instruction in the Dockerfile to use a
fixed platform instead of the build-time variable: replace the current
--platform=$BUILDPLATFORM with --platform=linux/amd64 in the FROM line that
defines the build stage (the existing "FROM ... AS build" instruction), so the
image is always built for linux/amd64 per guidelines; keep the same base image
tag/sha and stage name unchanged and rerun your build to verify no breakage.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

The platform selection is made dynamic on purpose to build images on arm chips (mac developer laptops)

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

@kovayur, understood — using $BUILDPLATFORM makes sense for cross-compilation support so developers on ARM Macs can build without emulation. I'll withdraw that comment.


📝 Learnings were identified and not saved (knowledge base disabled). Enable

@stackrox stackrox deleted a comment from coderabbitai Bot May 26, 2026
@kovayur

kovayur commented May 26, 2026

Copy link
Copy Markdown
Contributor Author

/retest

@kovayur

kovayur commented May 27, 2026

Copy link
Copy Markdown
Contributor Author

/retest

2 similar comments
@kovayur

kovayur commented May 28, 2026

Copy link
Copy Markdown
Contributor Author

/retest

@kovayur

kovayur commented May 28, 2026

Copy link
Copy Markdown
Contributor Author

/retest

Comment thread probe/Dockerfile

FROM registry.access.redhat.com/ubi9/ubi-minimal:9.7@sha256:12db9874bd753eb98b1ab3d840e75de5d6842ac0604fbd68c012adefe97140be as standard

RUN microdnf install shadow-utils

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

The build is stuck because it prompts to upgrade an existing package:

Upgrading:
shadow-utils-2:4.9-16.el9.x86_64 ubi-9-baseos-rpms 1.3 MB
replacing shadow-utils-2:4.9-15.el9.x86_64
Transaction Summary:
Installing: 0 packages
Reinstalling: 0 packages
Upgrading: 1 packages
Obsoleting: 0 packages
Removing: 0 packages
Downgrading: 0 packages
Is this ok [y/N]:

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Stupid q but... did we not need this package?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

It already exists in the base image

Comment thread probe/Dockerfile

FROM registry.access.redhat.com/ubi9/ubi-minimal:9.7@sha256:12db9874bd753eb98b1ab3d840e75de5d6842ac0604fbd68c012adefe97140be as standard

RUN microdnf install shadow-utils

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Stupid q but... did we not need this package?

@openshift-ci

openshift-ci Bot commented May 28, 2026

Copy link
Copy Markdown
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: ebensh, kovayur

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Details Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@kovayur kovayur merged commit 3c49c0e into main May 28, 2026
20 checks passed
@kovayur kovayur deleted the yury/golang-1-26 branch May 28, 2026 15:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants