Skip to content

Conversation

samuelkarp
Copy link
Member

This adds support for adding rlimits to containers through NRI.

@samuelkarp samuelkarp requested a review from klihub September 12, 2023 23:31
Signed-off-by: Samuel Karp <samuelkarp@google.com>
@samuelkarp
Copy link
Member Author

samuelkarp force-pushed the nri branch from 4c43a9f to 6f9de91

Helps to use the same version of Go that CI is using 😂

Signed-off-by: Samuel Karp <samuelkarp@google.com>
@thaJeztah
Copy link
Member

Curious where the "foo" cones from 🤔

time="2023-09-13T01:07:30Z" level=warning msg="Invalid SOURCE_DATE_EPOCH" error="invalid SOURCE_DATE_EPOCH value: invalid value: strconv.ParseInt: parsing \"foo\": invalid syntax"
    epoch_test.go:110: 
        	Error Trace:	D:/a/containerd/containerd/src/github.com/containerd/containerd/pkg/epoch/epoch_test.go:110
        	Error:      	Should be true
        	Test:       	TestSourceDateEpoch/WithInvalidSourceDateEpoch
        	Messages:   	now: 2023-09-13 01:07:30.1079008 +0000 UTC, v: 2023-09-13 01:07:30.2645118 +0000 UTC
 	})

@thaJeztah
Copy link
Member

oh, never mind; that's part of the test, but wondering why it didn't match the error

@samuelkarp
Copy link
Member Author

The failing line is

require.True(t, rightAfter(now, v), "now: %s, v: %s", now, v)

Maybe the timer resolution on Windows is a bit different from what we expect?

	threshold := 10 * time.Millisecond
	if runtime.GOOS == "windows" {
		// Low timer resolution on Windows
		threshold *= 10
	}
	return t2.After(t1) && t2.Before(t1.Add(threshold))

Either way it's unrelated to this vendor update.

@samuelkarp
Copy link
Member Author

Opened #9090 for the test flake.

Copy link
Member

@klihub klihub left a comment

Choose a reason for hiding this comment

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

LGTM

Copy link
Member

@thaJeztah thaJeztah left a comment

Choose a reason for hiding this comment

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

LGTM

@estesp estesp merged commit 0f52935 into containerd:main Sep 13, 2023
@samuelkarp samuelkarp added the cherry-pick/1.7.x Change to be cherry picked to release/1.7 branch label Sep 14, 2023
@samuelkarp samuelkarp added cherry-picked/1.7.x PR commits are cherry-picked into release/1.7 branch and removed cherry-pick/1.7.x Change to be cherry picked to release/1.7 branch labels Sep 18, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cherry-picked/1.7.x PR commits are cherry-picked into release/1.7 branch
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants