Skip to content

[1.3] ci: bump golangci-lint to v2.1 #4754

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
May 2, 2025

Conversation

kolyshkin
Copy link
Contributor

Backport of #4747 to release-1.3.

(The current v2.1 release is v2.1.5 as of today).

Signed-off-by: Kir Kolyshkin <[email protected]>
(cherry picked from commit b0aa863)
Signed-off-by: Kir Kolyshkin <[email protected]>
@kolyshkin kolyshkin added the backport/1.3-pr A backport PR to release-1.3 label Apr 30, 2025
@kolyshkin kolyshkin requested a review from Copilot April 30, 2025 20:53
@kolyshkin kolyshkin changed the base branch from main to release-1.3 April 30, 2025 20:54
Copy link

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR backports changes to the release-1.3 branch with a focus on CI configuration updates (notably bumping golangci-lint to v2.1) and documentation improvements. Key changes include updating function comments for better clarity, adjusting environment variable preparation order during container initialization, and revising CI workflow configurations.

Reviewed Changes

Copilot reviewed 35 out of 40 changed files in this pull request and generated no comments.

Show a summary per file
File Description
libcontainer/intelrdt/intelrdt.go Updated function comments for consistent godoc style.
libcontainer/intelrdt/cmt.go Renamed comment to “IsCMTEnabled” for consistency.
libcontainer/init_linux.go Removed an early call to prepareEnv and moved environment setup to finalizeNamespace.
libcontainer/env_test.go Added test cases to verify proper handling of HOME values.
libcontainer/env.go Adjusted environment deduplication logic to treat empty HOME values appropriately.
libcontainer/criu_linux.go Adjusted CRIU-related conditions to add a time namespace when applicable.
libcontainer/capabilities/capabilities.go Updated function comment to “ApplyCaps” to better clarify its functionality.
docs/spec-conformance.md Updated the OCI Runtime Spec version from v1.2.0 to v1.2.1.
checkpoint.go Modified the container destruction condition for checkpoints; the logic remains equivalent.
CHANGELOG.md Updated changelog entries to reflect the improvements and configuration changes.
.golangci.yml / .golangci-extra.yml Upgraded linters and adjusted configuration for improved code quality checks.
.github/workflows/validate.yml / test.yml Upgraded relevant actions (including golangci-lint and shellcheck) and added a Fedora job setup.
.cirrus.yml Simplified task definitions to better align with the current CI platform capabilities.
Files not reviewed (5)
  • Dockerfile: Language not supported
  • Makefile: Language not supported
  • VERSION: Language not supported
  • Vagrantfile.fedora: Language not supported
  • go.mod: Language not supported
Comments suppressed due to low confidence (1)

libcontainer/init_linux.go:324

  • The removal of the early prepareEnv call from container initialization may impact components expecting the environment to be set up before entering the container jail. Verify that moving this call to finalizeNamespace is intentional and that it does not create side effects.
env, err := prepareEnv(config.Env, config.UID)

@kolyshkin
Copy link
Contributor Author

close/reopen to kick ci

@kolyshkin kolyshkin closed this May 1, 2025
@kolyshkin kolyshkin reopened this May 1, 2025
@kolyshkin kolyshkin requested a review from Copilot May 1, 2025 18:35
Copy link

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This backport updates the GolangCI-Lint version used in the CI pipeline for release-1.3.

  • Updated the linter version in .github/workflows/validate.yml from v2.0 to v2.1.

@AkihiroSuda AkihiroSuda merged commit 971739f into opencontainers:release-1.3 May 2, 2025
34 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport/1.3-pr A backport PR to release-1.3
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants