OCPBUGS-79591: Bump Golang to v1.25.8 and golangci-lint to v2.10.1#420
Conversation
- Bump Go version to v1.25.8 - Bump golangci-lint to v2.10.1 as a compatible version with Golang 1.25. - Resolve issues highlighted by new version of golangci-lint: ``` pkg/operator/controller/externaldns/deployment_test.go:4065:39 staticcheck QF1008: could remove embedded field "VolumeSource" from selector pkg/operator/controller/externaldns/deployment_test.go:4073:39 staticcheck QF1008: could remove embedded field "VolumeSource" from selector pkg/operator/controller/names.go:121:42 staticcheck QF1010: could convert argument to string test/e2e/azure.go:124:19 staticcheck QF1008: could remove embedded field "ZoneProperties" from selector test/e2e/util.go:160:22 staticcheck QF1008: could remove embedded field "ExternalDNSSourceUnion" from selector test/e2e/util.go:186:22 staticcheck QF1008: could remove embedded field "ExternalDNSSourceUnion" from selector ```
|
@grzpiotrowski: This pull request references Jira Issue OCPBUGS-79591, which is invalid:
Comment The bug has been updated to refer to the pull request using the external bug tracker. DetailsIn response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the openshift-eng/jira-lifecycle-plugin repository. |
📝 WalkthroughWalkthroughThis pull request upgrades the project's Go toolchain from version 1.24 to 1.25. Changes include updating the Go version directive in 🚥 Pre-merge checks | ✅ 11 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (11 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches🧪 Generate unit tests (beta)
Warning Review ran into problems🔥 ProblemsGit: Failed to clone repository. Please run the 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. Comment |
There was a problem hiding this comment.
🧹 Nitpick comments (1)
Containerfile.external-dns-operator (1)
12-12: Consider a pinned digest or build-id suffix for reproducibility.The previous tag (
1.24.6-1763548439) included a build-id suffix, while the new1.25.8is just the semver tag, meaning the underlying image contents can change over time. For Konflux-built certified images, pinning to a specific build-id suffix (e.g.1.25.8-<build-id>) or an@sha256:digest is preferable for reproducibility. Renovate should re-pin this on the next update via the existing rule inrenovate.json, so this is just a minor observation.🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed. In `@Containerfile.external-dns-operator` at line 12, Replace the floating base image tag in the FROM instruction ("registry.access.redhat.com/ubi9/go-toolset:1.25.8") with an immutable reference by pinning either a build-id suffix (e.g. append "-<build-id>" to the tag) or an `@sha256`: digest; update the FROM instruction accordingly so the builder stage uses a reproducible image and let Renovate re-pin on its next run per the existing renovate.json rule.
🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.
Nitpick comments:
In `@Containerfile.external-dns-operator`:
- Line 12: Replace the floating base image tag in the FROM instruction
("registry.access.redhat.com/ubi9/go-toolset:1.25.8") with an immutable
reference by pinning either a build-id suffix (e.g. append "-<build-id>" to the
tag) or an `@sha256`: digest; update the FROM instruction accordingly so the
builder stage uses a reproducible image and let Renovate re-pin on its next run
per the existing renovate.json rule.
ℹ️ Review info
⚙️ Run configuration
Configuration used: Repository YAML (base), Central YAML (inherited)
Review profile: CHILL
Plan: Enterprise
Run ID: 2881179e-6743-4ab3-8d1e-1f741f478d18
📒 Files selected for processing (12)
.ci-operator.yaml.golangci.yamlContainerfile.external-dns-operatorDockerfiledrift-cache/Dockerfilego.modhack/golangci-lint.shpkg/operator/controller/externaldns/deployment_test.gopkg/operator/controller/names.gorenovate.jsontest/e2e/azure.gotest/e2e/util.go
|
/retest |
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: alebedev87 The full list of commands accepted by this bot can be found here. The pull request process is described here DetailsNeeds approval from an approver in each of these files:
Approvers can indicate their approval by writing |
|
/jira refresh |
|
@alebedev87: This pull request references Jira Issue OCPBUGS-79591, which is valid. The bug has been moved to the POST state. 3 validation(s) were run on this bug
DetailsIn response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the openshift-eng/jira-lifecycle-plugin repository. |
|
@grzpiotrowski: all tests passed! Full PR test history. Your PR dashboard. DetailsInstructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. I understand the commands that are listed here. |
|
@grzpiotrowski: Jira Issue OCPBUGS-79591: All pull requests linked via external trackers have merged:
Jira Issue OCPBUGS-79591 has been moved to the MODIFIED state. DetailsIn response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the openshift-eng/jira-lifecycle-plugin repository. |
.golangci.yamlto version2.