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

Issue 2853953002: [Chromedriver] Retry deleting temp dir when needed (Closed)

Created:
3 years, 7 months ago by johnchen
Modified:
3 years, 7 months ago
Reviewers:
stgao
CC:
chromium-reviews, johnchen+watch_chromium.org
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

[Chromedriver] Retry deleting temp dir when needed Occasionally ChromeDriver may fail to delete temporary directories while exiting, causing wasted disk space. This change adds retry logic while cleaning up these directories. BUG=chromedriver:644 Review-Url: https://codereview.chromium.org/2853953002 Cr-Commit-Position: refs/heads/master@{#469199} Committed: https://chromium.googlesource.com/chromium/src/+/7dfc58a73db333dc9b76adc2c6eb409b389a39bf

Patch Set 1 #

Total comments: 1

Patch Set 2 : Fix warning message #

Unified diffs Side-by-side diffs Delta from patch set Stats (+50 lines, -5 lines) Patch
M chrome/test/chromedriver/BUILD.gn View 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/test/chromedriver/chrome/chrome_desktop_impl.h View 2 chunks +3 lines, -3 lines 0 comments Download
A chrome/test/chromedriver/chrome/scoped_temp_dir_with_retry.h View 1 chunk +22 lines, -0 lines 0 comments Download
A chrome/test/chromedriver/chrome/scoped_temp_dir_with_retry.cc View 1 1 chunk +21 lines, -0 lines 0 comments Download
M chrome/test/chromedriver/session.h View 2 chunks +2 lines, -2 lines 0 comments Download

Messages

Total messages: 9 (5 generated)
johnchen
Shuotao: PTAL. This CL fixes http://crbug.com/chromedriver/644, where ChromeDriver doesn't always delete temp directories before exiting. ...
3 years, 7 months ago (2017-05-02 01:38:48 UTC) #2
stgao
lgtm https://codereview.chromium.org/2853953002/diff/1/chrome/test/chromedriver/chrome/scoped_temp_dir_with_retry.cc File chrome/test/chromedriver/chrome/scoped_temp_dir_with_retry.cc (right): https://codereview.chromium.org/2853953002/diff/1/chrome/test/chromedriver/chrome/scoped_temp_dir_with_retry.cc#newcode15 chrome/test/chromedriver/chrome/scoped_temp_dir_with_retry.cc:15: DLOG(WARNING) << "Could not delete temp dir in ...
3 years, 7 months ago (2017-05-03 20:16:50 UTC) #3
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/2853953002/20001
3 years, 7 months ago (2017-05-03 22:18:46 UTC) #6
commit-bot: I haz the power
3 years, 7 months ago (2017-05-03 23:27:19 UTC) #9
Message was sent while issue was closed.
Committed patchset #2 (id:20001) as
https://chromium.googlesource.com/chromium/src/+/7dfc58a73db333dc9b76adc2c6eb...

Powered by Google App Engine
This is Rietveld 408576698