Skip to content

Conversation

@nalind
Copy link
Member

@nalind nalind commented Nov 13, 2025

What type of PR is this?

/kind cleanup

What this PR does / why we need it:

  • Update the version of golangci-lint that we use, since 2.1.0 can panic with newer compilers.
  • Address new warnings.
  • Add a "fmt" target to the top-level Makefile that runs its formatters.
  • Drop a Dockerfile that I don't think we've used for years.
  • Update the VM images to use the same ones that podman's main branch currently does.

How to verify it

CI should notice if we were using this Dockerfile somewhere that I didn't find.

Which issue(s) this PR fixes:

None

Special notes for your reviewer:

Sometimes, suppressing a "revive" warning triggers a bogus warning from "nolintlint", so yeah, we're working around that by suppressing both of them.

Does this PR introduce a user-facing change?

None

Drop this Dockerfile, which was used by a script which was removed
before v1.14.0.

Signed-off-by: Nalin Dahyabhai <nalin@redhat.com>
Update the linter, and add a top-level 'fmt' target to run its built-in
formatters.

Signed-off-by: Nalin Dahyabhai <nalin@redhat.com>
Fix a "that doesn't take %w" warning.
Fix two "you forgot to pass that error to the formatter" warnings.

Signed-off-by: Nalin Dahyabhai <nalin@redhat.com>
These are internal and test packages, so this shouldn't break any of our
API consumers.

Signed-off-by: Nalin Dahyabhai <nalin@redhat.com>
Supporess "meaningless package name" warnings for exported APIs which we
know are being used by our API consumers, so that we don't break them.

Signed-off-by: Nalin Dahyabhai <nalin@redhat.com>
@openshift-ci openshift-ci bot added kind/cleanup Categorizes issue or PR as related to cleaning up code, process, or technical debt. approved labels Nov 13, 2025
@nalind nalind changed the title Update linter, fix warnings, add a "fmt" target Update VMS, linter, fix warnings, add a "fmt" target Nov 14, 2025
Copy link
Member

@TomSweeneyRedHat TomSweeneyRedHat left a comment

Choose a reason for hiding this comment

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

LGTM

@nalind nalind changed the title Update VMS, linter, fix warnings, add a "fmt" target Update VMs, linter, fix warnings, add a "fmt" target Nov 14, 2025
Copy link
Member

@Luap99 Luap99 left a comment

Choose a reason for hiding this comment

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

Weird, renovate is supposed to create update PRs. I did a look at the last one (#6122) and it seemed it failed to delete branch somehow so it never proposed a new update afterwards

Overall this looks fine the revive,nolintlint flakes I have seen in podman as well but could never reproduce properly so didn't report it or chase down further.
Just one blocking comment on the debian name.


# Image identifiers
IMAGE_SUFFIX: "c20250910t092246z-f42f41d13"
IMAGE_SUFFIX: "c20251110t154831z-f42f41d14"
Copy link
Member

Choose a reason for hiding this comment

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

blocker: This bumps to debian 14 so you must update DEBIAN_NAME above as well

Copy link
Member Author

Choose a reason for hiding this comment

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

Thanks for catching that! Rebasing with that updated.

Signed-off-by: Nalin Dahyabhai <nalin@redhat.com>
Now that we've got runc 1.3.3, which includes the fix that went into
1.3.2 for the flake we've been seeing, block on runc jobs again.

Signed-off-by: Nalin Dahyabhai <nalin@redhat.com>
Copy link
Member

@Luap99 Luap99 left a comment

Choose a reason for hiding this comment

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

/lgtm

@openshift-ci
Copy link
Contributor

openshift-ci bot commented Nov 17, 2025

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: Luap99, nalind

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

The pull request process is described here

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

@openshift-merge-bot openshift-merge-bot bot merged commit 04f196a into containers:main Nov 17, 2025
37 of 41 checks passed
@nalind nalind deleted the format branch November 17, 2025 15:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

approved kind/cleanup Categorizes issue or PR as related to cleaning up code, process, or technical debt. lgtm

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants