Skip to content
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

test: skip the flay case #2686

Merged
merged 1 commit into from
Jan 24, 2019
Merged

test: skip the flay case #2686

merged 1 commit into from
Jan 24, 2019

Conversation

fuweid
Copy link
Contributor

@fuweid fuweid commented Jan 23, 2019

Signed-off-by: Wei Fu fuweid89@gmail.com

Ⅰ. Describe what this PR did

When the init process in a container exits, the pouchcontainer daemon
will handle the cleanup job, such as update status code, delete the
containerd's task/container record. The action is handled in the
goroutine. Since pouchcontainer doesn't lock the whole container, when
the status has been updated from running into stopped, the
containerd's task/container records are not removed by the cleanup job.
if the user wants to use wait command to make sure that cleanup job
has been done, it will fail because the status is updated first.

The flaky case is running on this case. We can run it until we have
better solutions to make the status notification more stable.

Ⅱ. Does this pull request fix one issue?

none

Ⅲ. Why don't you add test cases (unit test/integration test)? (你真的觉得不需要加测试吗?)

no need

Ⅳ. Describe how to verify it

Ⅴ. Special notes for reviews

@codecov
Copy link

codecov bot commented Jan 23, 2019

Codecov Report

Merging #2686 into master will increase coverage by 10.39%.
The diff coverage is n/a.

Impacted file tree graph

@@            Coverage Diff             @@
##           master   #2686       +/-   ##
==========================================
+ Coverage    58.9%   69.3%   +10.39%     
==========================================
  Files         276     278        +2     
  Lines       17361   17392       +31     
==========================================
+ Hits        10227   12053     +1826     
+ Misses       5934    4015     -1919     
- Partials     1200    1324      +124
Flag Coverage Δ
#criv1alpha2_test 39.41% <ø> (?)
#integration_test_0 36.23% <ø> (?)
#integration_test_1 35.15% <ø> (?)
#integration_test_2 36.3% <ø> (?)
#integration_test_3 35.17% <ø> (+0.01%) ⬆️
#node_e2e_test 35.11% <ø> (+0.07%) ⬆️
#unittest 27.36% <ø> (ø) ⬆️
Impacted Files Coverage Δ
pkg/meta/store.go 67.44% <0%> (-1.56%) ⬇️
daemon/mgr/container_utils.go 83.92% <0%> (ø) ⬆️
daemon/mgr/spec_apparmor_linux.go 20% <0%> (ø)
daemon/mgr/spec_seccomp_linux.go 71.42% <0%> (ø)
daemon/mgr/container_stats.go 71.83% <0%> (+1.14%) ⬆️
pkg/user/user.go 40% <0%> (+1.66%) ⬆️
registry/auth.go 55.14% <0%> (+1.86%) ⬆️
pkg/utils/utils.go 83.26% <0%> (+2.04%) ⬆️
apis/filters/parse.go 83.15% <0%> (+2.1%) ⬆️
ctrd/client.go 65.73% <0%> (+2.24%) ⬆️
... and 74 more

@pouchrobot pouchrobot added size/XS and removed size/S labels Jan 24, 2019
@fuweid fuweid changed the title donotmerge: testing flaky case test: skip the flay case Jan 24, 2019
When the init process in a container exits, the pouchcontainer daemon
will handle the cleanup job, such as update status code, delete the
containerd's task/container record. The action is handled in the
goroutine. Since pouchcontainer doesn't lock the whole container, when
the status has been updated from `running` into `stopped`, the
containerd's task/container records are not removed by the cleanup job.
if the user wants to use `wait` command to make sure that cleanup job
has been done, it will fail because the status is updated first.

The flaky case is running on this case. We can run it until we have
better solutions to make the status notification more stable.

Signed-off-by: Wei Fu <fuweid89@gmail.com>
@HusterWan
Copy link
Contributor

lgtm

@pouchrobot pouchrobot added the LGTM one maintainer or community participant agrees to merge the pull reuqest. label Jan 24, 2019
@HusterWan HusterWan merged commit ba2ebf7 into AliyunContainerService:master Jan 24, 2019
@fuweid fuweid deleted the flaky-test branch February 21, 2019 03:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
areas/test LGTM one maintainer or community participant agrees to merge the pull reuqest. size/XS
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants