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

Issue 2862173002: webkitpy: Merge script fix windows directory removing. (Closed)

Created:
3 years, 7 months ago by mithro
Modified:
3 years, 7 months ago
CC:
chromium-reviews, blink-reviews
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

webkitpy: Merge script fix windows directory removing. Attempt to remove a directory tree multiple times as on Windows a process which is currently closing could still have a file open in the directory. Also continue going even if we fail to remove the directory. The merge script currently sometimes fails on Windows with the following error; ------------------------- Traceback (most recent call last): File "E:\b\c\b\WebKit_Win___RandomOrder\src\third_party\WebKit\Tools\Scripts\merge-layout-test-results", line 185, in <module> main(sys.argv[1:]) File "E:\b\c\b\WebKit_Win___RandomOrder\src\third_party\WebKit\Tools\Scripts\merge-layout-test-results", line 161, in main shutil.rmtree(args.output_directory) File "E:\b\depot_tools\python276_bin\lib\shutil.py", line 256, in rmtree onerror(os.rmdir, path, sys.exc_info()) File "E:\b\depot_tools\python276_bin\lib\shutil.py", line 254, in rmtree os.rmdir(path) WindowsError: [Error 32] The process cannot access the file because it is being used by another process: 'E:\\b\\rr\\tmpxu2pfv\\w' WARNING:root:merge_cmd had non-zero return code: 1 ------------------------- BUG=717347, 524758 Review-Url: https://codereview.chromium.org/2862173002 Cr-Commit-Position: refs/heads/master@{#469588} Committed: https://chromium.googlesource.com/chromium/src/+/49345d02f5e5a10cf2789d1d45b4eeec4656b542

Patch Set 1 #

Total comments: 1

Patch Set 2 : Rework error handling. #

Total comments: 2

Patch Set 3 : Use the return code. #

Patch Set 4 : Output remaining contents. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+32 lines, -1 line) Patch
M third_party/WebKit/Tools/Scripts/merge-layout-test-results View 1 2 3 2 chunks +32 lines, -1 line 0 comments Download

Messages

Total messages: 23 (15 generated)
mithro
3 years, 7 months ago (2017-05-05 00:58:01 UTC) #2
Dirk Pranke
https://codereview.chromium.org/2862173002/diff/1/third_party/WebKit/Tools/Scripts/merge-layout-test-results File third_party/WebKit/Tools/Scripts/merge-layout-test-results (right): https://codereview.chromium.org/2862173002/diff/1/third_party/WebKit/Tools/Scripts/merge-layout-test-results#newcode182 third_party/WebKit/Tools/Scripts/merge-layout-test-results:182: rmtree(args.output_directory) if you're actually going to ignore the error ...
3 years, 7 months ago (2017-05-05 01:05:02 UTC) #6
mithro
On 2017/05/05 01:05:02, Dirk Pranke (slow until May 4) wrote: > https://codereview.chromium.org/2862173002/diff/1/third_party/WebKit/Tools/Scripts/merge-layout-test-results > File third_party/WebKit/Tools/Scripts/merge-layout-test-results ...
3 years, 7 months ago (2017-05-05 01:29:00 UTC) #7
mithro
I've reworked the error handling so that it uses the onerror function rather than just ...
3 years, 7 months ago (2017-05-05 01:35:14 UTC) #8
Dirk Pranke
lgtm w/ comment. https://codereview.chromium.org/2862173002/diff/20001/third_party/WebKit/Tools/Scripts/merge-layout-test-results File third_party/WebKit/Tools/Scripts/merge-layout-test-results (right): https://codereview.chromium.org/2862173002/diff/20001/third_party/WebKit/Tools/Scripts/merge-layout-test-results#newcode186 third_party/WebKit/Tools/Scripts/merge-layout-test-results:186: rmtree(args.output_directory) You're still ignoring the error ...
3 years, 7 months ago (2017-05-05 01:49:49 UTC) #11
mithro
https://codereview.chromium.org/2862173002/diff/20001/third_party/WebKit/Tools/Scripts/merge-layout-test-results File third_party/WebKit/Tools/Scripts/merge-layout-test-results (right): https://codereview.chromium.org/2862173002/diff/20001/third_party/WebKit/Tools/Scripts/merge-layout-test-results#newcode186 third_party/WebKit/Tools/Scripts/merge-layout-test-results:186: rmtree(args.output_directory) On 2017/05/05 01:49:49, Dirk Pranke wrote: > You're ...
3 years, 7 months ago (2017-05-05 02:29:20 UTC) #15
commit-bot: I haz the power
CQ is trying da patch. Follow status at: https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2862173002/60001
3 years, 7 months ago (2017-05-05 02:29:46 UTC) #20
commit-bot: I haz the power
3 years, 7 months ago (2017-05-05 03:40:59 UTC) #23
Message was sent while issue was closed.
Committed patchset #4 (id:60001) as
https://chromium.googlesource.com/chromium/src/+/49345d02f5e5a10cf2789d1d45b4...

Powered by Google App Engine
This is Rietveld 408576698