-
Notifications
You must be signed in to change notification settings - Fork 18.8k
Use os.ReadDir instead of filepath.Walk in netns cleanup #36511
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
base: master
Are you sure you want to change the base?
Conversation
ping @kolyshkin @cpuguy83 @fcrisciani PTAL; not entirely sure if this is correct, but opened this to discuss 👍 |
hm, this one is flaky /cc @selansen
|
It didnt fail for me and number of instance can never be 0. will check it
again.
…On Wed, Mar 7, 2018 at 9:20 AM, Sebastiaan van Stijn < ***@***.***> wrote:
hm, this one is flaky /cc @selansen <https://github.com/selansen>
13:44:44 --- FAIL: TestServiceWithPredefinedNetwork (11.75s)
13:44:44 daemon.go:283: [dce2b71fc535a] waiting for daemon to start
13:44:44 daemon.go:315: [dce2b71fc535a] daemon started
13:44:44 service_test.go:52: timeout hit after 10s: task count at 1 waiting for 0
13:44:44 daemon.go:273: [dce2b71fc535a] exiting daemon
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#36511 (comment)>, or mute
the thread
<https://github.com/notifications/unsubscribe-auth/AKEKnxkS-TkdkLLhoQavJtqF7ovTSQ1qks5tb-omgaJpZM4Sgaqu>
.
|
@selansen @vdemeester pointed me that that message probably comes from moby/integration/network/service_test.go Line 52 in 0b0af85
|
Interesting . I didnt see this issue while I test and when CI ran against
my PR.
Let me see if I can reproduce it locally. Else will check for service
instead of task and see if it helps.
…On Wed, Mar 7, 2018 at 10:07 AM, Sebastiaan van Stijn < ***@***.***> wrote:
@selansen <https://github.com/selansen> @vdemeester
<https://github.com/vdemeester> pointed me that that message probably
comes from https://github.com/moby/moby/blob/
0b0af85/integration/
network/service_test.go#L52 (so the "teardown" of the test)
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#36511 (comment)>, or mute
the thread
<https://github.com/notifications/unsubscribe-auth/AKEKnwKsPehBF03viOHzRVHEF3UTTiW2ks5tb_e2gaJpZM4Sgaqu>
.
|
The FS type is
From limited reading of linux kernel source code it seems MNT_FORCE is used by any fs which implements To sum it up:
|
Codecov Report
@@ Coverage Diff @@
## master #36511 +/- ##
=========================================
Coverage ? 37.33%
=========================================
Files ? 609
Lines ? 45210
Branches ? 0
=========================================
Hits ? 16878
Misses ? 26044
Partials ? 2288 |
@kolyshkin thanks for doing the research! I updated the PR, and captioned your information in the commit message 👍 |
Opened #36547 for the flaky |
trying to reproduce it. on top this issue now.
…On Fri, Mar 9, 2018 at 4:02 AM, Sebastiaan van Stijn < ***@***.***> wrote:
Opened #36547 <#36547> for the flaky
TestServiceWithPredefinedNetwork
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#36511 (comment)>, or mute
the thread
<https://github.com/notifications/unsubscribe-auth/AKEKnzj9GGMwMx9WUIuHwjNdhTeMX7b9ks5tckU2gaJpZM4Sgaqu>
.
|
All of experimental, janky, powerpc and z are failing on |
Looks like this one has the same issue with tasks not getting to zero;
|
073bbdf
to
d970f0f
Compare
Test is still failing; need to find out what's causing that;
Logs attached of that daemon
This looks to be the error:
Test itself looks straightforward at a glance moby/integration-cli/docker_cli_swarm_test.go Lines 1534 to 1551 in ef91b40
|
d970f0f
to
8687d68
Compare
8687d68
to
0fb4ca6
Compare
The That case was fixed through moby/libnetwork#1065 |
@thaJeztah just as a note, got this today with docker
|
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
This needs to be rebased/retested/merged. @thaJeztah can you please revive it? |
0aace81
to
6383213
Compare
Rebased to trigger CI again |
Hmm still failing on this one
|
6383213
to
ae4691f
Compare
Rebased again, to see if things changed since last year |
7b009d5
to
7f183ec
Compare
7f183ec
to
7be92f2
Compare
7be92f2
to
408089c
Compare
- Use `os.ReadDir()` instead of `filepath.WalkDir()`, because `filepath.WalkDir()` does a lot of extra things we don't need - Log errors on directory removal (omitting `os.IsNotExist`) - Touch-up error messages for consistency Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
408089c
to
5d8286b
Compare
@thaJeztah PTAL. |
ioutil.ReadDir()
instead offilepath.Walk()
, becausefilepath.Walk()
does a lot of extra things we don't needos.IsNotExist
)