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

Issue 408653002: Git Cache speculative fix for windows (Closed)

Created:
6 years, 5 months ago by hinoka
Modified:
6 years, 5 months ago
Reviewers:
Ryan Tseng, iannucci
CC:
chromium-reviews, Dirk Pranke, cmp-cc_chromium.org, iannucci+depot_tools_chromium.org, ilevy-cc_chromium.org
Project:
tools
Visibility:
Public.

Description

Git Cache speculative fix for windows Git cache sometimes fail on: Traceback (most recent call last): File "E:\b\depot_tools\\gclient.py", line 2064, in <module> sys.exit(Main(sys.argv[1:])) File "E:\b\depot_tools\\gclient.py", line 2052, in Main return dispatcher.execute(OptionParser(), argv) File "E:\b\depot_tools\subcommand.py", line 245, in execute return command(parser, args[1:]) File "E:\b\depot_tools\\gclient.py", line 1830, in CMDsync ret = client.RunOnDeps('update', args) File "E:\b\depot_tools\\gclient.py", line 1342, in RunOnDeps work_queue.flush(revision_overrides, command, args, options=self._options) File "E:\b\depot_tools\gclient_utils.py", line 852, in flush self._run_one_task(self.queued.pop(i), args, kwargs) File "E:\b\depot_tools\gclient_utils.py", line 944, in _run_one_task task_item.run(*args, **kwargs) File "E:\b\depot_tools\\gclient.py", line 744, in run file_list) File "E:\b\depot_tools\gclient_scm.py", line 160, in RunCommand return getattr(self, command)(options, args, file_list) File "E:\b\depot_tools\gclient_scm.py", line 387, in update self._UpdateMirror(mirror, options) File "E:\b\depot_tools\gclient_scm.py", line 802, in _UpdateMirror ignore_lock=options.ignore_locks) File "E:\b\depot_tools\git_cache.py", line 409, in populate os.rename(tempdir, self.mirror_path) WindowsError: [Error 183] Cannot create a file when that file already exists It would appear that its being racy, but otherwise it doesn't make any sense. A theory is that this could be running twice and stepping on each other. Allowing this to pass on OSError allows us to test this theory. BUG=395333 Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=284272

Patch Set 1 #

Total comments: 1

Patch Set 2 : Lint #

Unified diffs Side-by-side diffs Delta from patch set Stats (+8 lines, -1 line) Patch
M git_cache.py View 1 1 chunk +8 lines, -1 line 0 comments Download

Messages

Total messages: 9 (0 generated)
Ryan Tseng
As we discussed earlier
6 years, 5 months ago (2014-07-19 00:37:34 UTC) #1
iannucci
lgtm https://codereview.chromium.org/408653002/diff/1/git_cache.py File git_cache.py (right): https://codereview.chromium.org/408653002/diff/1/git_cache.py#newcode412 git_cache.py:412: # This is somehow racy on Windows. this ...
6 years, 5 months ago (2014-07-19 01:00:52 UTC) #2
Ryan Tseng
The CQ bit was checked by hinoka@google.com
6 years, 5 months ago (2014-07-19 01:01:28 UTC) #3
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/hinoka@chromium.org/408653002/1
6 years, 5 months ago (2014-07-19 01:02:28 UTC) #4
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 5 months ago (2014-07-19 01:04:21 UTC) #5
commit-bot: I haz the power
Presubmit check for 408653002-1 failed and returned exit status 1. Running presubmit commit checks ...
6 years, 5 months ago (2014-07-19 01:04:22 UTC) #6
Ryan Tseng
The CQ bit was checked by hinoka@google.com
6 years, 5 months ago (2014-07-19 01:20:42 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/hinoka@chromium.org/408653002/20001
6 years, 5 months ago (2014-07-19 01:21:53 UTC) #8
commit-bot: I haz the power
6 years, 5 months ago (2014-07-19 01:23:47 UTC) #9
Message was sent while issue was closed.
Change committed as 284272

Powered by Google App Engine
This is Rietveld 408576698