[release/1.3] backport: Transfer error to ErrNotFound when kill a not exist container, also add test case.#4361
Conversation
|
Build succeeded.
|
|
Build succeeded.
|
|
Build succeeded.
|
|
Build succeeded.
|
|
Build succeeded.
|
|
Build succeeded.
|
|
Build succeeded.
|
|
Build succeeded.
|
|
Build succeeded.
|
|
Build succeeded.
|
|
I can't get |
|
Tests always succeed when run locally on my desktop and my laptop. I also had a coworker run the tests and they succeeded. @cpuguy83 suggested in slack that this might be a flake. |
|
Build succeeded.
|
|
Build succeeded.
|
|
Build succeeded.
|
|
Can you squash your new commits? |
|
Build succeeded.
|
|
could someone edit the PR title to use |
|
Looks like all PRs are hitting a potential change in the GH actions runners when executing the CRI tests; containerd is now running on the local system on the same socket we are starting on? the version of the "server" seems to be the clue: |
|
Build succeeded.
|
|
Build succeeded.
|
|
Included the attempted changes in #4382 since these all seem to need to be included as a set. |
|
Change looks good to me. Just see the commit message doesn't contain the cherry-pick field :) |
Good catch; looks like the first two cherry-picks were done with |
|
Build succeeded.
|
Signed-off-by: payall4u <[email protected]> Add integration test case Signed-off-by: payall4u <[email protected]> (cherry picked from commit b437938) Signed-off-by: Joe Julian <[email protected]> Fixes: containerd#4359
- always apt-get update before installing packages - move to tagged official create_release action The official GH create_release action now has support for body text from file. Signed-off-by: Phil Estes <[email protected]> (cherry picked from commit 57a9f0b) Signed-off-by: Joe Julian <[email protected]>
add test support for v1 move getRuntimeVersion so it is defined on non-linux platforms Remove unused RUNC_FLAVOR The backport from 1.4 included setting RUNC_FLAVOR whis is not used in the 1.3 test matrix. Removing per feedback. Signed-off-by: Joe Julian <[email protected]>
Simply delete the image will not clean up the snapshots. Signed-off-by: Li Yuxuan <[email protected]> (cherry picked from commit 19f7f3c)
TestImageIsUnpacked will unpacked docker.io/library/busybox:latest with linux/amd64 platform. If the TestImageUsage doesn't wait for cleanup finish (snapshotter is cleanup by gc asynchronously) and fetch image, the Usage(ctx) will get 10767844 bytes(manifestUsage + snapshotUsage). However, the manifestUsage is 9466142 bytes. That is why we got the error: ``` Expected actual usage to equal manifest reported usage of 9466142: got 10767844 ``` This commit is to make sure that the image has been cleanup fully. Signed-off-by: Wei Fu <[email protected]> (cherry picked from commit 1d888ad)
GH runners now have a systemd-run containerd running on the standard socket, impacting the CRI test's expectation of our CI-built containerd running there. Signed-off-by: Phil Estes <[email protected]> (cherry picked from commit 7af3d7e)
Signed-off-by: Phil Estes <[email protected]> (cherry picked from commit b47c7ec)
|
Build succeeded.
|
| var opts interface{} | ||
| runtimeVersion := getRuntimeVersion() | ||
| switch runtimeVersion { | ||
| case "v1": |
| } | ||
| } | ||
|
|
||
| func getRuntimeVersion() string { |
There was a problem hiding this comment.
This stays on container_linux_test.go on master
|
That PR reads:
But that's not true in 1.3, is it? Wouldn't testing be better than skipping here? |
|
I meant just cherry-picking codes from |
|
Right, but that cherry-pick skips the test for v1. b2ee432#diff-80b94ff9a9d56a9492f043f938353acbR666 Since v1 is not being deprecated in 1.3, by moving that one function we are able to actually test the code instead of skipping. |
Backports:
Fixes Backport: runc container does not exist fix #4359
Fixes build issues
cleanup the image synchronously for Usage case cleanup the image synchronously for Usage case #4049
Fixes race that causes
TestImageUsageto failFixes Github Actions
Not-backport:
Fixes up backport changes that didn't fit 1.3
Signed-off-by: Joe Julian [email protected]