Skip to content

Update to golang 1.25.9#170

Merged
vkmc merged 3 commits intomasterfrom
golang-1.25.9
Apr 28, 2026
Merged

Update to golang 1.25.9#170
vkmc merged 3 commits intomasterfrom
golang-1.25.9

Conversation

@vkmc
Copy link
Copy Markdown
Contributor

@vkmc vkmc commented Apr 14, 2026

Update to golang 1.25.9 and golangci-lint 2.11.4

vkmc and others added 2 commits April 14, 2026 16:16
* Bump golangci-lint version to v2.11.4 for Go 1.25.9 support

* Migrate .golangci.yaml to v2 configuration format

* Remove deprecated linters integrated into staticcheck
  - gosimple (now part of staticcheck)
  - stylecheck (now part of staticcheck)

* Remove formatters from linters list
  - gofmt (now a formatter, not a linter)
  - goimports (now a formatter, not a linter)

* Remove typecheck (always enabled by default in v2)

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
Comment thread .golangci.yaml
- devenv
linters:
disable-all: true
disable:
Copy link
Copy Markdown
Contributor Author

@vkmc vkmc Apr 14, 2026

Choose a reason for hiding this comment

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

In golangci-lint v2, there are "Enabled by default linters" (errcheck, govet, ineffassign, staticcheck, unused) that are active even with disable-all: true. So we do need the disable section to override these defaults.

Temporarily disable linters that report pre-existing code quality
issues unrelated to the Go 1.25.9 upgrade to make CI pass:

* errcheck - 50 unchecked errors (mostly logger calls and defers)
* staticcheck - 4 code simplifications (De Morgan's law, fmt usage)
* gosec - 10 security warnings (test/dummy code with weak permissions)
* noctx - 4 missing context (legacy code using net.Dial, http.NewRequest)
* revive - 48 style issues (missing comments, unused parameters)

These can be addressed in separate code quality improvement PRs.

Removed unused exclude-rules for disabled linters and legacy deadcode
references that no longer exist in golangci-lint v2.

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
@vkmc
Copy link
Copy Markdown
Contributor Author

vkmc commented Apr 14, 2026

A major update and cleanup is proposed as part of this PR.

We carry over many linting issues since this is already a legacy code base.

Ideally we would address the linting issues, but since infrawatch/sg-core is in maintenance mode and no new code is being added I don't think we should work on fixing those.

@vkmc vkmc requested a review from elfiesmelfie April 14, 2026 15:14
@softwarefactory-project-zuul
Copy link
Copy Markdown

Build failed (check pipeline). Post recheck (without leading slash)
to rerun all jobs. Make sure the failure cause has been resolved before
you rerun jobs.

https://softwarefactory-project.io/zuul/t/rdoproject.org/buildset/2576aaafec0d4aa6bf2869a4f214361c

stf-crc-ocp_418-local_build FAILURE in 27m 50s
✔️ stf-crc-ocp_420-local_build SUCCESS in 43m 24s
✔️ stf-crc-ocp_418-local_build-index_deploy SUCCESS in 54m 42s
✔️ stf-crc-ocp_420-local_build-index_deploy SUCCESS in 45m 12s
✔️ stf-crc-ocp_418-nightly_bundles-index_deploy SUCCESS in 38m 38s
stf-crc-ocp_420-nightly_bundles-index_deploy RETRY_LIMIT in 3m 10s
✔️ stf-crc-ocp_418-catalog_deploy SUCCESS in 40m 19s
✔️ stf-crc-ocp_420-catalog_deploy SUCCESS in 35m 51s

@vkmc
Copy link
Copy Markdown
Contributor Author

vkmc commented Apr 15, 2026

recheck

@softwarefactory-project-zuul
Copy link
Copy Markdown

Build failed (check pipeline). Post recheck (without leading slash)
to rerun all jobs. Make sure the failure cause has been resolved before
you rerun jobs.

https://softwarefactory-project.io/zuul/t/rdoproject.org/buildset/6a0b724e8ff64bfc985f7f4ba322b37b

stf-crc-ocp_418-local_build FAILURE in 26m 49s
stf-crc-ocp_420-local_build NODE_FAILURE Node request 100-0008210835 failed in 0s
stf-crc-ocp_418-local_build-index_deploy FAILURE in 27m 29s
✔️ stf-crc-ocp_420-local_build-index_deploy SUCCESS in 46m 16s
✔️ stf-crc-ocp_418-nightly_bundles-index_deploy SUCCESS in 39m 40s
✔️ stf-crc-ocp_420-nightly_bundles-index_deploy SUCCESS in 37m 17s
stf-crc-ocp_418-catalog_deploy FAILURE in 30m 36s
✔️ stf-crc-ocp_420-catalog_deploy SUCCESS in 34m 45s

@vkmc
Copy link
Copy Markdown
Contributor Author

vkmc commented Apr 15, 2026

recheck

@softwarefactory-project-zuul
Copy link
Copy Markdown

Build failed (check pipeline). Post recheck (without leading slash)
to rerun all jobs. Make sure the failure cause has been resolved before
you rerun jobs.

https://softwarefactory-project.io/zuul/t/rdoproject.org/buildset/a049c527fcdb4e88afc4fc32d3cadca8

✔️ stf-crc-ocp_418-local_build SUCCESS in 46m 21s
✔️ stf-crc-ocp_420-local_build SUCCESS in 43m 06s
✔️ stf-crc-ocp_418-local_build-index_deploy SUCCESS in 50m 07s
stf-crc-ocp_420-local_build-index_deploy POST_FAILURE in 46m 22s
stf-crc-ocp_418-nightly_bundles-index_deploy FAILURE in 26m 40s
✔️ stf-crc-ocp_420-nightly_bundles-index_deploy SUCCESS in 37m 24s
✔️ stf-crc-ocp_418-catalog_deploy SUCCESS in 36m 52s
✔️ stf-crc-ocp_420-catalog_deploy SUCCESS in 34m 27s

@vkmc
Copy link
Copy Markdown
Contributor Author

vkmc commented Apr 17, 2026

recheck

@softwarefactory-project-zuul
Copy link
Copy Markdown

Build failed (check pipeline). Post recheck (without leading slash)
to rerun all jobs. Make sure the failure cause has been resolved before
you rerun jobs.

https://softwarefactory-project.io/zuul/t/rdoproject.org/buildset/154ee338ce8549978732ef59132f16cf

stf-crc-ocp_418-local_build FAILURE in 27m 58s
✔️ stf-crc-ocp_420-local_build SUCCESS in 43m 34s
✔️ stf-crc-ocp_418-local_build-index_deploy SUCCESS in 50m 48s
✔️ stf-crc-ocp_420-local_build-index_deploy SUCCESS in 46m 24s
stf-crc-ocp_418-nightly_bundles-index_deploy FAILURE in 25m 56s
✔️ stf-crc-ocp_420-nightly_bundles-index_deploy SUCCESS in 34m 31s
stf-crc-ocp_418-catalog_deploy FAILURE in 31m 13s
✔️ stf-crc-ocp_420-catalog_deploy SUCCESS in 34m 55s

@vkmc
Copy link
Copy Markdown
Contributor Author

vkmc commented Apr 20, 2026

recheck

@vkmc
Copy link
Copy Markdown
Contributor Author

vkmc commented Apr 20, 2026

CI is unstable, not related to this change

@softwarefactory-project-zuul
Copy link
Copy Markdown

Build failed (check pipeline). Post recheck (without leading slash)
to rerun all jobs. Make sure the failure cause has been resolved before
you rerun jobs.

https://softwarefactory-project.io/zuul/t/rdoproject.org/buildset/c181108427b940d6b65e8fe4a47a98ee

stf-crc-ocp_418-local_build RETRY_LIMIT in 20m 09s
stf-crc-ocp_420-local_build RETRY_LIMIT in 19m 42s
stf-crc-ocp_418-local_build-index_deploy RETRY_LIMIT in 22m 56s
stf-crc-ocp_420-local_build-index_deploy RETRY_LIMIT in 19m 14s
stf-crc-ocp_418-nightly_bundles-index_deploy RETRY_LIMIT in 20m 30s
stf-crc-ocp_420-nightly_bundles-index_deploy RETRY_LIMIT in 19m 09s
stf-crc-ocp_418-catalog_deploy RETRY_LIMIT in 3m 40s
stf-crc-ocp_420-catalog_deploy RETRY_LIMIT in 21m 45s

@vkmc
Copy link
Copy Markdown
Contributor Author

vkmc commented Apr 20, 2026

recheck

@softwarefactory-project-zuul
Copy link
Copy Markdown

Build failed (check pipeline). Post recheck (without leading slash)
to rerun all jobs. Make sure the failure cause has been resolved before
you rerun jobs.

https://softwarefactory-project.io/zuul/t/rdoproject.org/buildset/ca9b526c43ad4f758d13571fec53837f

stf-crc-ocp_418-local_build RETRY_LIMIT in 3m 34s
stf-crc-ocp_420-local_build RETRY_LIMIT in 23m 06s
stf-crc-ocp_418-local_build-index_deploy RETRY_LIMIT in 3m 36s
stf-crc-ocp_420-local_build-index_deploy RETRY_LIMIT in 21m 41s
stf-crc-ocp_418-nightly_bundles-index_deploy RETRY_LIMIT in 23m 13s
stf-crc-ocp_420-nightly_bundles-index_deploy RETRY_LIMIT in 22m 18s
stf-crc-ocp_418-catalog_deploy RETRY_LIMIT in 19m 22s
stf-crc-ocp_420-catalog_deploy RETRY_LIMIT in 20m 35s

@vkmc
Copy link
Copy Markdown
Contributor Author

vkmc commented Apr 27, 2026

recheck

@vkmc vkmc requested a review from vyzigold April 27, 2026 15:18
@softwarefactory-project-zuul
Copy link
Copy Markdown

Build failed (check pipeline). Post recheck (without leading slash)
to rerun all jobs. Make sure the failure cause has been resolved before
you rerun jobs.

https://softwarefactory-project.io/zuul/t/rdoproject.org/buildset/091193baee5d41ea8218337f59514760

✔️ stf-crc-ocp_418-local_build SUCCESS in 46m 14s
✔️ stf-crc-ocp_420-local_build SUCCESS in 44m 44s
✔️ stf-crc-ocp_418-local_build-index_deploy SUCCESS in 49m 45s
✔️ stf-crc-ocp_420-local_build-index_deploy SUCCESS in 45m 11s
stf-crc-ocp_418-nightly_bundles-index_deploy FAILURE in 28m 37s
✔️ stf-crc-ocp_420-nightly_bundles-index_deploy SUCCESS in 35m 38s
stf-crc-ocp_418-catalog_deploy FAILURE in 28m 40s
✔️ stf-crc-ocp_420-catalog_deploy SUCCESS in 35m 07s

@vkmc vkmc merged commit f3f9180 into master Apr 28, 2026
20 of 21 checks passed
@vkmc vkmc deleted the golang-1.25.9 branch April 28, 2026 11:46
vkmc added a commit that referenced this pull request Apr 29, 2026
* Update to golang 1.25.9

Closes-Bug: https://redhat.atlassian.net/browse/OSPRH-28974
Closes-Bug: https://redhat.atlassian.net/browse/OSPRH-27803

* Update golangci-lint to v2.11.4

* Bump golangci-lint version to v2.11.4 for Go 1.25.9 support

* Migrate .golangci.yaml to v2 configuration format

* Remove deprecated linters integrated into staticcheck
  - gosimple (now part of staticcheck)
  - stylecheck (now part of staticcheck)

* Remove formatters from linters list
  - gofmt (now a formatter, not a linter)
  - goimports (now a formatter, not a linter)

* Remove typecheck (always enabled by default in v2)

* Disable linters with existing code quality issues

Temporarily disable linters that report pre-existing code quality
issues unrelated to the Go 1.25.9 upgrade to make CI pass:

* errcheck - 50 unchecked errors (mostly logger calls and defers)
* staticcheck - 4 code simplifications (De Morgan's law, fmt usage)
* gosec - 10 security warnings (test/dummy code with weak permissions)
* noctx - 4 missing context (legacy code using net.Dial, http.NewRequest)
* revive - 48 style issues (missing comments, unused parameters)

These can be addressed in separate code quality improvement PRs.

Removed unused exclude-rules for disabled linters and legacy deadcode
references that no longer exist in golangci-lint v2.

(cherry picked from commit f3f9180)

Co-authored-by: Claude Sonnet 4.5 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

3 participants