Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(524)

Issue 1812673003: Use rmdir /s/q instead of flaky shutil.rmtree on Windows (Closed)

Created:
4 years, 9 months ago by brucedawson
Modified:
4 years, 9 months ago
Reviewers:
scottmg
CC:
chromium-reviews
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Use rmdir /s/q instead of flaky shutil.rmtree on Windows For unknown reasons (Windows!) shutil.rmtree has been failing frequently when the landmines change due to a toolchain change. This avoids the the problem. This is necessary because manually deleting the 'out' directory causes args.gn to get lost, which is a hassle. This was noticed because the VS 2015 toolchain upgrades kept failing to clobber the out directory on multiple machines. Committed: https://crrev.com/b0e768eae38f683886600ba869e31054273ebeab Cr-Commit-Position: refs/heads/master@{#382140}

Patch Set 1 #

Patch Set 2 : Use rmdir instead of iterating exceptions #

Patch Set 3 : Restore return #

Total comments: 4

Patch Set 4 : Code review tweaks #

Unified diffs Side-by-side diffs Delta from patch set Stats (+12 lines, -2 lines) Patch
M build/clobber.py View 1 2 3 3 chunks +12 lines, -2 lines 0 comments Download

Messages

Total messages: 15 (6 generated)
brucedawson
I am super unhappy about this change, but I'm also super unhappy about continuously hitting ...
4 years, 9 months ago (2016-03-16 23:32:18 UTC) #2
scottmg
I did hit this, yes. shutil.rmtree is junk on Windows. Normally, we do `cmd /c ...
4 years, 9 months ago (2016-03-16 23:39:41 UTC) #3
brucedawson
Well it's *less* gross now. And it does the job of nuking the out directory ...
4 years, 9 months ago (2016-03-18 00:28:03 UTC) #4
brucedawson
I just updated the title and description also.
4 years, 9 months ago (2016-03-18 00:30:13 UTC) #6
scottmg
lgtm https://codereview.chromium.org/1812673003/diff/40001/build/clobber.py File build/clobber.py (right): https://codereview.chromium.org/1812673003/diff/40001/build/clobber.py#newcode43 build/clobber.py:43: if platform.system() == 'Windows': I think "if sys.platform.startswith('win')" ...
4 years, 9 months ago (2016-03-18 00:40:37 UTC) #7
brucedawson
Fixes made as suggested. Will commit in a bit. https://codereview.chromium.org/1812673003/diff/40001/build/clobber.py File build/clobber.py (right): https://codereview.chromium.org/1812673003/diff/40001/build/clobber.py#newcode43 build/clobber.py:43: ...
4 years, 9 months ago (2016-03-18 20:55:50 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1812673003/60001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1812673003/60001
4 years, 9 months ago (2016-03-18 21:38:55 UTC) #11
commit-bot: I haz the power
Committed patchset #4 (id:60001)
4 years, 9 months ago (2016-03-19 00:31:01 UTC) #13
commit-bot: I haz the power
4 years, 9 months ago (2016-03-19 00:33:20 UTC) #15
Message was sent while issue was closed.
Patchset 4 (id:??) landed as
https://crrev.com/b0e768eae38f683886600ba869e31054273ebeab
Cr-Commit-Position: refs/heads/master@{#382140}

Powered by Google App Engine
This is Rietveld 408576698