Skip to content

runtime-spec: bump to v1.3.0, fixup for backward incompatible linux PIDs limit type change . - #795

Merged
kolyshkin merged 3 commits into
opencontainers:masterfrom
klihub:fixes/spec-linux-pids-limit-is-ptr
Nov 14, 2025
Merged

runtime-spec: bump to v1.3.0, fixup for backward incompatible linux PIDs limit type change .#795
kolyshkin merged 3 commits into
opencontainers:masterfrom
klihub:fixes/spec-linux-pids-limit-is-ptr

Conversation

@klihub

@klihubklihub commented Nov 4, 2025

Copy link
Copy Markdown
Contributor

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 ownerNovember 4, 2025 10:37
@klihub
klihubforce-pushed the fixes/spec-linux-pids-limit-is-ptr branch 2 times, most recently from 1227392 to cbbb466CompareNovember 4, 2025 12:22
@klihubklihub 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
@aojeaaojea mentioned this pull request Nov 4, 2025
Comment threadcgroups/cgroups_v1.go
Comment threadgenerate/generate.go Outdated
@aojea

aojea commented Nov 4, 2025

Copy link
Copy Markdown

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

Comment threadgenerate/generate.go Outdated

@marquizmarquiz left a comment

Copy link
Copy Markdown
Contributor

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.

Comment threadgenerate/generate.go
Comment thread.github/workflows/test.yml Outdated

@kolyshkinkolyshkin left a comment

Copy link
Copy Markdown
Contributor

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
Copy Markdown
Contributor

golangci-lint bump is at #797, PTAL

@klihub

klihub commented Nov 6, 2025

Copy link
Copy Markdown
ContributorAuthor

golangci-lint bump is at #797, PTAL

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

@kolyshkin

Copy link
Copy Markdown
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
klihubforce-pushed the fixes/spec-linux-pids-limit-is-ptr branch from 35dc18d to 3c27840CompareNovember 11, 2025 08:42
@klihub

Copy link
Copy Markdown
ContributorAuthor

@klihub fyi #797 is merged now

@kolyshkin Rebased on latest master/HEAD.

@klihub

Copy link
Copy Markdown
ContributorAuthor

ping @opencontainers/runtime-tools-maintainers

@klihub

Copy link
Copy Markdown
ContributorAuthor

Comment threadcgroups/cgroups_v1.go

@cypharcyphar left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

LGTM, thanks!

@askervinaskervin mentioned this pull request Nov 12, 2025
@kolyshkin

Copy link
Copy Markdown
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:masterNov 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 freeto 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

@klihub@aojea@kolyshkin@marquiz@cyphar