Skip to content

Conversation

@klihub
Copy link
Contributor

@klihub klihub commented Nov 4, 2025

This PR bumps our opencontainers runtime-spec dependency to the latest tagged v1.3.0.

Unfortunately v1.3.0 brings a backward incompatible change, switching the Linux PID limit from int64 to *int64. Make corresponding changes in generate/generate.go. Also, add an UnlimitedPidsLimit = -1 const to codify what is the correct Limit setting for unlimited PIDs.

Note: This PR is stacked on #797, a separate PR to bump golangci-lint to v2 and fix existing linter issues.

@klihub klihub requested a review from a team as a code owner November 4, 2025 10:37
@klihub klihub force-pushed the fixes/spec-linux-pids-limit-is-ptr branch 2 times, most recently from 1227392 to cbbb466 Compare November 4, 2025 12:22
@klihub klihub changed the title runtime-spec: bump to v1.3.0. runtime-spec: bump to v1.3.0, fixup for backward incompatible linux PIDs limit type change . Nov 4, 2025
@aojea aojea mentioned this pull request Nov 4, 2025
@aojea
Copy link

aojea commented Nov 4, 2025

ping @cyphar for guidance, since was the author of opencontainers/runtime-spec@869b2d5

Copy link
Contributor

@marquiz marquiz left a comment

Choose a reason for hiding this comment

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

One small nit, otherwise looks good to me.

Copy link
Contributor

@kolyshkin kolyshkin left a comment

Choose a reason for hiding this comment

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

Let me bump golangci-lint in a separate PR, as it will be faster than commenting here.

@kolyshkin
Copy link
Contributor

golangci-lint bump is at #797, PTAL

@klihub
Copy link
Contributor Author

klihub commented Nov 6, 2025

golangci-lint bump is at #797, PTAL

I'll do a final rebase once #797 is merged.

@kolyshkin
Copy link
Contributor

@klihub fyi #797 is merged now

Bump runtime-spec to v1.3.0. Unfortunately there is a backward
incompatible change there switching the Linux PID limit from
int64 to *int64. Update generate/generate.go accordingly. Also,
add a constant UnlimitedPidsLimit with the correct PID limit
indicating "unlimited".

Signed-off-by: Krisztian Litkey <krisztian.litkey@intel.com>
Signed-off-by: Krisztian Litkey <krisztian.litkey@intel.com>
Signed-off-by: Krisztian Litkey <krisztian.litkey@intel.com>
@klihub klihub force-pushed the fixes/spec-linux-pids-limit-is-ptr branch from 35dc18d to 3c27840 Compare November 11, 2025 08:42
@klihub
Copy link
Contributor Author

klihub commented Nov 11, 2025

@klihub fyi #797 is merged now

@kolyshkin Rebased on latest master/HEAD.

@klihub
Copy link
Contributor Author

klihub commented Nov 11, 2025

ping @opencontainers/runtime-tools-maintainers

@klihub
Copy link
Contributor Author

klihub commented Nov 11, 2025

@cyphar @AkihiroSuda @giuseppe PTAL

Copy link
Member

@cyphar cyphar left a comment

Choose a reason for hiding this comment

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

LGTM, thanks!

@kolyshkin
Copy link
Contributor

If there's anything else that needs to be done, let's do this as a followup.

@kolyshkin kolyshkin merged commit edf4cb3 into opencontainers:master Nov 14, 2025
9 checks passed
@klihub klihub deleted the fixes/spec-linux-pids-limit-is-ptr branch November 17, 2025 11:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants