bump runc to v1.5.1 and remove deprecated methods - #2040
Merged
Conversation
Coverage Report for CI Build 33444058247Coverage decreased (-0.09%) to 43.54%Details
Uncovered Changes
Coverage Regressions5 previously-covered lines in 2 files lost coverage.
Coverage Stats
💛 - Coveralls |
tariq1890
force-pushed
the
bump-runc-1.5.1
branch
3 times, most recently
from
August 31, 2026 22:41
8140850 to
2363e1d
Compare
henry118
reviewed
Aug 31, 2026
Contributor
Author
That's fair. Even less runc code to copy then! |
tariq1890
force-pushed
the
bump-runc-1.5.1
branch
from
August 31, 2026 23:52
2363e1d to
95b8e7c
Compare
tariq1890
commented
Sep 1, 2026
tariq1890
force-pushed
the
bump-runc-1.5.1
branch
4 times, most recently
from
September 1, 2026 03:49
ec10008 to
e71432a
Compare
Signed-off-by: Tariq Ibrahim <tibrahim@nvidia.com> Co-Authored-by: Henry Wang <henrwang@nvidia.com>
tariq1890
force-pushed
the
bump-runc-1.5.1
branch
from
September 1, 2026 20:05
e71432a to
c4d2f10
Compare
cdesiniotis
reviewed
Sep 1, 2026
| func createParamsFileInContainer(containerRoot *os.Root, contents []byte) error { | ||
| containerRootDirPath := containerRoot.Name() | ||
|
|
||
| hookScratchDirPath := "/run/nvidia-ctk-hook" + uuid.NewString() |
Contributor
There was a problem hiding this comment.
Potentially out of scope for this PR, but shouldn't this be hookScratchDirPath := "/run/nvidia-ctk-hook/" + uuid.NewString()? I think there is a typo here. In a running container, I see the below:
root@d2af80a529ad:/# ls -ltr /run/nvidia-ctk-hook*
/run/nvidia-ctk-hook:
total 4
drwxr-xr-x 2 root root 4096 Sep 1 22:20 2c3a944a-b848-4af1-b4b9-d6da24166562
/run/nvidia-ctk-hookb870042d-5b35-4c44-8ac8-ca3ac990d3c9:
total 4
-r--r--r-- 1 root root 1021 Sep 1 22:20 nvct-params
when in reality I am guessing we want:
/run/nvidia-ctk-hook/<uid-1>
/run/nvidia-ctk-hook/<uid-2>
Contributor
Author
There was a problem hiding this comment.
Thanks for pointing this out. Agreed that we should be doing a filepath.Join instead of a string concatenate. As discussed, I can make this change in a follow-up PR.
cdesiniotis
approved these changes
Sep 1, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
In runc v1.5.x, the
WithProcfdfile is no longer available to import so any dependabot bump PRs will fail with compilation errors.The
utils.WithProcfdmethod is no longer used and has been further simplified to useos.Root.Open()to perform safe file operations and rendering procfd paths directly as/prof/self/fd/<fd-number>. h/t @henry118 for this suggestionBonus: This PR also inlines the recommended
devices.DeviceFromPathmethod call as defined in themoby/sys/devicesgo module.