|
|
Created:
6 years, 8 months ago by pgervais Modified:
6 years, 8 months ago Reviewers:
Ryan Tseng, M-A Ruel, hinoka CC:
chromium-reviews, Dirk Pranke, cmp-cc_chromium.org, M-A Ruel, iannucci+depot_tools_chromium.org, ilevy-cc_chromium.org Base URL:
https://chromium.googlesource.com/chromium/tools/depot_tools.git@master Visibility:
Public. |
DescriptionMake Lockfile._remove_lockfile more robust on win32
Sometimes, removing lockfiles fails on windows, for obscure reasons.
Following advice from gclient_utils.rmtree, lock file removal has
been improved by using the builtin executable 'del' and retrying 3
times in case it fails.
BUG=
Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=264557
Patch Set 1 #
Total comments: 1
Patch Set 2 : Fixed indentation #
Total comments: 1
Created: 6 years, 8 months ago
Messages
Total messages: 14 (0 generated)
This is supposed to fix the flaky issues we're having with the WinGit builder. https://build.chromium.org/p/chromium.git/buildslaves/vm402-m1 This code works, I tested it on vm402-m1, but I don't know if it actually fixes the problem.
https://codereview.chromium.org/240653002/diff/1/git_cache.py File git_cache.py (right): https://codereview.chromium.org/240653002/diff/1/git_cache.py#newcode77 git_cache.py:77: raise LockError('Failed to remove lock: %s' % lockfile) I think you want to put this outside the for loop
On 2014/04/17 08:20:22, Ryan T. wrote: > https://codereview.chromium.org/240653002/diff/1/git_cache.py > File git_cache.py (right): > > https://codereview.chromium.org/240653002/diff/1/git_cache.py#newcode77 > git_cache.py:77: raise LockError('Failed to remove lock: %s' % lockfile) > I think you want to put this outside the for loop Fixed. This code (with the indentation issue) has been running on vm402-m1 all night, and it seems the problem has gone away.
lgtm ship it!
The CQ bit was checked by pgervais@chromium.org
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/pgervais@chromium.org/240653002/20001
The CQ bit was unchecked by commit-bot@chromium.org
Presubmit check for 240653002-20001 failed and returned exit status 1. Running presubmit commit checks ... Checking out rietveld... Running save-description-on-failure.sh Running push-basic.sh Running upstream.sh Running submit-from-new-dir.sh Running abandon.sh Running submodule-merge-test.sh Running upload-local-tracking-branch.sh Running hooks.sh Running post-dcommit-hook-test.sh Running upload-stale.sh Running patch.sh Running basic.sh ** Presubmit ERRORS ** Missing LGTM from an OWNER for these files: depot_tools/git_cache.py Presubmit checks took 123.3s to calculate.
On 2014/04/17 17:05:02, I haz the power (commit-bot) wrote: > Presubmit check for 240653002-20001 failed and returned exit status 1. > > Running presubmit commit checks ... > Checking out rietveld... > Running save-description-on-failure.sh > Running push-basic.sh > Running upstream.sh > Running submit-from-new-dir.sh > Running abandon.sh > Running submodule-merge-test.sh > Running upload-local-tracking-branch.sh > Running hooks.sh > Running post-dcommit-hook-test.sh > Running upload-stale.sh > Running patch.sh > Running basic.sh > > ** Presubmit ERRORS ** > Missing LGTM from an OWNER for these files: > depot_tools/git_cache.py > > Presubmit checks took 123.3s to calculate. maruel, could you lgtm that?
lgtm https://codereview.chromium.org/240653002/diff/20001/git_cache.py File git_cache.py (right): https://codereview.chromium.org/240653002/diff/20001/git_cache.py#newcode64 git_cache.py:64: """Delete the lockfile. Complains (implicitly) if it doesn't exist. Deletes :)
On 2014/04/17 17:17:19, M-A Ruel wrote: > lgtm > > https://codereview.chromium.org/240653002/diff/20001/git_cache.py > File git_cache.py (right): > > https://codereview.chromium.org/240653002/diff/20001/git_cache.py#newcode64 > git_cache.py:64: """Delete the lockfile. Complains (implicitly) if it doesn't > exist. > Deletes :) Thanks! And I do think 'delete' is correct in this context (this beats me, but I've always seen verbs with no 's' for describing function behavior.) Maybe Ryan can help us understand that?
The CQ bit was checked by pgervais@chromium.org
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/pgervais@chromium.org/240653002/20001
Message was sent while issue was closed.
Change committed as 264557 |