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
Update moby to containerd and runc 1.0 final rc #33007
Conversation
|
@crosbymichael panic in the unit tests |
2dbfb9f
to
e7e42e1
Compare
|
@LK4D4 do you know why it was saying |
| @@ -12,6 +12,25 @@ func iPtr(i int64) *int64 { return &i } | |||
| func u32Ptr(i int64) *uint32 { u := uint32(i); return &u } | |||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
sPtr should be unused now
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done
| result = icmd.RunCmd(cmd) | ||
| // for some reason there is carriage return in the output. i think this is | ||
| // just expected. | ||
| c.Assert(result, icmd.Matches, icmd.Expected{Out: "out\r\nerr\r\n"}) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The test should still be meaningful. Just remove carriage return.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
could remove the comment as well
fc1c258
to
c0fb8eb
Compare
|
@crosbymichael can you rebase ?
That's why you end up with selinux errors with vndr. |
c0fb8eb
to
18fa02c
Compare
|
@vieux thanks |
18fa02c
to
429f708
Compare
|
I'm having to update and sync the deps with runc because some of them are out of date and causing the validation to fail. The others will be a bump for docker's versions where runc depends on a newer version. |
|
Can we turn off this new vendor comparison because runc is a binary dep I don't know why its diffing the vendor files. |
|
@crosbymichael as long as
This file seems to be missing in the commit but is while using |
|
@vdemeester its comparing things it shouldn't because runc has a vendor.conf that is not used here because its a binary dep and shouldn't matter. |
Signed-off-by: Michael Crosby <crosbymichael@gmail.com>
429f708
to
005506d
Compare
|
All green now @tonistiigi @mlaventure PTAL! |
| @@ -77,7 +77,7 @@ func getMemoryResources(config containertypes.Resources) *specs.Memory { | |||
| memory.Reservation = &reservation | |||
| } | |||
|
|
|||
| if config.MemorySwap != 0 { | |||
| if config.MemorySwap > 0 { | |||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This one has been tricky, IIRC.
Seems -1 (previously unlimited) and 0 (unset) are now treated the same.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This routine seems to only be used when creating the container spec initially (not when updating), in which case it's correct. The default value for that limit being unlimited.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
(one small nit)
|
|
||
| if config.CPUShares != 0 { | ||
| if config.CPUShares < 0 { | ||
| return nil, fmt.Errorf("shares: invalid argument") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit: cpu shares: ...
|
LGTM |
|
@mlaventure can you verify if #32667 and #32699 should be resolved by this? |
Getting this up for review, I'll have to change the repo paths one last time before we can merge but CI takes so long to run I wanted to open this now.
This is the last rc for the runtime spec and runc before a 1.0 release.