Skip to content

[release/1.3] backport: Transfer error to ErrNotFound when kill a not exist container, also add test case.#4361

Merged
AkihiroSuda merged 7 commits intocontainerd:release/1.3from
joejulian:backport-4214
Jul 28, 2020
Merged

[release/1.3] backport: Transfer error to ErrNotFound when kill a not exist container, also add test case.#4361
AkihiroSuda merged 7 commits intocontainerd:release/1.3from
joejulian:backport-4214

Conversation

@joejulian
Copy link
Copy Markdown

@joejulian joejulian commented Jul 3, 2020

Backports:

Not-backport:

  • fixes for backports to 1.3 from 1.4
    Fixes up backport changes that didn't fit 1.3

Signed-off-by: Joe Julian [email protected]

@theopenlab-ci
Copy link
Copy Markdown

theopenlab-ci Bot commented Jul 3, 2020

Build succeeded.

@theopenlab-ci
Copy link
Copy Markdown

theopenlab-ci Bot commented Jul 3, 2020

Build succeeded.

@theopenlab-ci
Copy link
Copy Markdown

theopenlab-ci Bot commented Jul 3, 2020

Build succeeded.

@theopenlab-ci
Copy link
Copy Markdown

theopenlab-ci Bot commented Jul 3, 2020

Build succeeded.

Comment thread .github/workflows/ci.yml Outdated
@theopenlab-ci
Copy link
Copy Markdown

theopenlab-ci Bot commented Jul 7, 2020

Build succeeded.

@theopenlab-ci
Copy link
Copy Markdown

theopenlab-ci Bot commented Jul 7, 2020

Build succeeded.

@theopenlab-ci
Copy link
Copy Markdown

theopenlab-ci Bot commented Jul 8, 2020

Build succeeded.

@theopenlab-ci
Copy link
Copy Markdown

theopenlab-ci Bot commented Jul 8, 2020

Build succeeded.

@theopenlab-ci
Copy link
Copy Markdown

theopenlab-ci Bot commented Jul 8, 2020

Build succeeded.

@theopenlab-ci
Copy link
Copy Markdown

theopenlab-ci Bot commented Jul 8, 2020

Build succeeded.

@joejulian
Copy link
Copy Markdown
Author

I can't get TestImageUsage to fail when I run that test locally.

@joejulian joejulian marked this pull request as ready for review July 13, 2020 23:26
@joejulian
Copy link
Copy Markdown
Author

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.

@theopenlab-ci
Copy link
Copy Markdown

theopenlab-ci Bot commented Jul 14, 2020

Build succeeded.

@theopenlab-ci
Copy link
Copy Markdown

theopenlab-ci Bot commented Jul 14, 2020

Build succeeded.

@theopenlab-ci
Copy link
Copy Markdown

theopenlab-ci Bot commented Jul 14, 2020

Build succeeded.

@cpuguy83
Copy link
Copy Markdown
Member

Can you squash your new commits?

@theopenlab-ci
Copy link
Copy Markdown

theopenlab-ci Bot commented Jul 15, 2020

Build succeeded.

@thaJeztah
Copy link
Copy Markdown
Member

could someone edit the PR title to use [release/1.3 backport] (for easier finding back which release this was back ported to)?

@estesp estesp changed the title [backport] Transfer error to ErrNotFound when kill a not exist container, also add test case. [release/1.3] backport: Transfer error to ErrNotFound when kill a not exist container, also add test case. Jul 15, 2020
@estesp
Copy link
Copy Markdown
Member

estesp commented Jul 15, 2020

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:

Client:
  Version:  42a27e5
  Revision: 42a27e52e8a40c69ea9ef84e35b135a925f0fca3

Server:
  Version:  1.3.5+azure
  Revision: 9b6f3ec0307a825c38617b93ad55162b5bb94234
  UUID: 8ad8caab-77b0-4195-801f-dc84bc0ee5a5

@theopenlab-ci
Copy link
Copy Markdown

theopenlab-ci Bot commented Jul 15, 2020

Build succeeded.

@theopenlab-ci
Copy link
Copy Markdown

theopenlab-ci Bot commented Jul 15, 2020

Build succeeded.

@joejulian
Copy link
Copy Markdown
Author

Included the attempted changes in #4382 since these all seem to need to be included as a set.

@fuweid
Copy link
Copy Markdown
Member

fuweid commented Jul 22, 2020

Change looks good to me. Just see the commit message doesn't contain the cherry-pick field :)

@thaJeztah
Copy link
Copy Markdown
Member

Just see the commit message doesn't contain the cherry-pick field :)

Good catch; looks like the first two cherry-picks were done with -x, but the other ones were not

@theopenlab-ci
Copy link
Copy Markdown

theopenlab-ci Bot commented Jul 23, 2020

Build succeeded.

payall4u and others added 7 commits July 22, 2020 21:34
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)
@theopenlab-ci
Copy link
Copy Markdown

theopenlab-ci Bot commented Jul 23, 2020

Build succeeded.

Copy link
Copy Markdown
Member

@fuweid fuweid left a comment

Choose a reason for hiding this comment

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

LGTM

Comment thread container_test.go
var opts interface{}
runtimeVersion := getRuntimeVersion()
switch runtimeVersion {
case "v1":
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.

Can we cherry-pick b2ee432 instead

Comment thread container_test.go
}
}

func getRuntimeVersion() string {
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.

This stays on container_linux_test.go on master

@joejulian
Copy link
Copy Markdown
Author

That PR reads:

We are going to deprecate shim v1 (#4365), but it is still early to disable the tests for them

But that's not true in 1.3, is it? Wouldn't testing be better than skipping here?

@AkihiroSuda
Copy link
Copy Markdown
Member

I meant just cherry-picking codes from container_test.go.

@joejulian
Copy link
Copy Markdown
Author

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.

@AkihiroSuda AkihiroSuda merged commit 4f6d25c into containerd:release/1.3 Jul 28, 2020
Sign up for free to 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.

8 participants