Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.
Sign uptest: try to reduce flakes on Windows #28035
Conversation
refack
requested a review
from Trott
Jun 2, 2019
refack
self-assigned this
Jun 2, 2019
This comment was marked as outdated.
This comment was marked as outdated.
This comment has been minimized.
This comment has been minimized.
|
/CC @nodejs/testing |
This comment has been minimized.
This comment has been minimized.
|
Shouldn't the subsystem prefix here just be |
refack
force-pushed the
refack:testutils-rmdir-first-on-windows
branch
from
297daf1
to
9c57dea
Jun 2, 2019
This comment has been minimized.
This comment has been minimized.
|
Please could you add a brief sentence or two in the commit message as to why? |
This comment has been minimized.
This comment has been minimized.
Fixed. |
refack
force-pushed the
refack:testutils-rmdir-first-on-windows
branch
from
9c57dea
to
b557192
Jun 2, 2019
This comment has been minimized.
This comment has been minimized.
Wrote some words. Didn't have anything too enlightening
|
nodejs
deleted a comment from
nodejs-github-bot
Jun 2, 2019
This comment was marked as outdated.
This comment was marked as outdated.
refack
force-pushed the
refack:testutils-rmdir-first-on-windows
branch
from
c869ded
to
ccf9100
Jun 2, 2019
This comment was marked as outdated.
This comment was marked as outdated.
mscdex
changed the title
test,lib: try `rmdir` first on windows
test: try `rmdir` first on windows
Jun 3, 2019
refack
force-pushed the
refack:testutils-rmdir-first-on-windows
branch
2 times, most recently
from
55fd037
to
a17d5ba
Jun 3, 2019
nodejs
deleted a comment from
nodejs-github-bot
Jun 3, 2019
This comment was marked as outdated.
This comment was marked as outdated.
refack
added
the
test
label
Jun 3, 2019
|
LGTM if CI is green and once info about |
This comment has been minimized.
This comment has been minimized.
|
LGTM but it seems like on Windows it will now always try both ways, even though the folder might already be deleted by |
| // On Windows first try to delegate rmdir to a shell. | ||
| if (process.platform === 'win32' && st.isDirectory()) { | ||
| try { | ||
| execSync(`rmdir /q /s ${pathname}`, { timout: 1000 }); |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
refack
Jun 6, 2019
Author
Member
Not totally sure why, but it's not trivial https://ci.nodejs.org/job/node-test-binary-windows-2/1275/
This comment has been minimized.
This comment has been minimized.
|
Is this intended to fix failures like below?
|
This comment has been minimized.
This comment has been minimized.
Exactly. |
refack
force-pushed the
refack:testutils-rmdir-first-on-windows
branch
from
91c51b2
to
bf5b8e8
Jun 5, 2019
This comment has been minimized.
This comment has been minimized.
This comment was marked as outdated.
This comment was marked as outdated.
refack
force-pushed the
refack:testutils-rmdir-first-on-windows
branch
from
bf5b8e8
to
4059eba
Jun 5, 2019
nodejs
deleted a comment from
nodejs-github-bot
Jun 5, 2019
refack
force-pushed the
refack:testutils-rmdir-first-on-windows
branch
from
4059eba
to
e531a68
Jun 5, 2019
This comment was marked as outdated.
This comment was marked as outdated.
refack
changed the title
test: try `rmdir` first on windows
test: try to reduce flakes on Windows
Jun 5, 2019
refack
force-pushed the
refack:testutils-rmdir-first-on-windows
branch
from
e531a68
to
803a946
Jun 5, 2019
This comment was marked as outdated.
This comment was marked as outdated.
|
LGTM with minor doc update to the function signature |
refack commentedJun 2, 2019
•
edited
tmpdirThis makes temp dir names consistent whether we run in stand-alone mode,
via
test.pyin single process, or in multi-process.rmdirfirst on Windowscmd's
rmdiris hardened to deal with Windows edge cases, likelingering processes, indexing, and AV checks. So we give it a try first.
tmpdirChecklist
make -j4 test(UNIX), orvcbuild test(Windows) passes