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

Issue 2382653005: Remove git lockfile flakiness on win (bot_update) (Closed)

Created:
4 years, 2 months ago by katthomas
Modified:
4 years, 1 month ago
CC:
chromium-reviews, dpranke+depot_tools_chromium.org, iannucci+depot_tools_chromium.org, phajdan
Target Ref:
refs/heads/master
Visibility:
Public.

Description

Remove git lockfile flakiness on win (bot_update) Hypothesis: Sometimes bot update fails because windows fails to delete a lockfile associated with a git process. Test: If this happens, let's delete that lockfile and try again. BUG=651602 Committed: https://chromium.googlesource.com/chromium/tools/depot_tools/+/df66a34f68f4b2f2c08039f178d267c7dafd9d59

Patch Set 1 #

Patch Set 2 : Remove git lockfile flakiness on win (bot_update) #

Total comments: 7

Patch Set 3 : Remove git lockfile flakiness on win (bot_update) #

Total comments: 11

Patch Set 4 : Remove git lockfile flakiness on win (bot_update) #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+20 lines, -3 lines) Patch
M recipe_modules/bot_update/resources/bot_update.py View 1 2 3 3 chunks +8 lines, -2 lines 1 comment Download
M tests/bot_update_coverage_test.py View 1 2 3 3 chunks +12 lines, -1 line 0 comments Download

Messages

Total messages: 19 (6 generated)
Paweł Hajdan Jr.
Drive-by. Hope you'd find it useful. https://codereview.chromium.org/2382653005/diff/20001/recipe_modules/bot_update/resources/bot_update.py File recipe_modules/bot_update/resources/bot_update.py (right): https://codereview.chromium.org/2382653005/diff/20001/recipe_modules/bot_update/resources/bot_update.py#newcode224 recipe_modules/bot_update/resources/bot_update.py:224: exitcode = subprocess.call(['cmd.exe', ...
4 years, 2 months ago (2016-10-03 11:53:22 UTC) #4
agable
https://codereview.chromium.org/2382653005/diff/20001/recipe_modules/bot_update/resources/bot_update.py File recipe_modules/bot_update/resources/bot_update.py (right): https://codereview.chromium.org/2382653005/diff/20001/recipe_modules/bot_update/resources/bot_update.py#newcode209 recipe_modules/bot_update/resources/bot_update.py:209: maybe_remove_win_lockfile(sys.platform, outval) If possible, this shouldn't be at the ...
4 years, 2 months ago (2016-10-05 16:28:21 UTC) #5
katthomas
PTAL https://codereview.chromium.org/2382653005/diff/20001/recipe_modules/bot_update/resources/bot_update.py File recipe_modules/bot_update/resources/bot_update.py (right): https://codereview.chromium.org/2382653005/diff/20001/recipe_modules/bot_update/resources/bot_update.py#newcode209 recipe_modules/bot_update/resources/bot_update.py:209: maybe_remove_win_lockfile(sys.platform, outval) On 2016/10/05 16:28:21, agable wrote: > ...
4 years, 2 months ago (2016-10-06 21:50:20 UTC) #6
Paweł Hajdan Jr.
https://codereview.chromium.org/2382653005/diff/40001/recipe_modules/bot_update/resources/bot_update.py File recipe_modules/bot_update/resources/bot_update.py (right): https://codereview.chromium.org/2382653005/diff/40001/recipe_modules/bot_update/resources/bot_update.py#newcode226 recipe_modules/bot_update/resources/bot_update.py:226: remove_git_lockfiles(sys.platform, os.getcwd()) Well this still runs before _each_ git ...
4 years, 2 months ago (2016-10-07 13:47:43 UTC) #7
katthomas
https://codereview.chromium.org/2382653005/diff/40001/recipe_modules/bot_update/resources/bot_update.py File recipe_modules/bot_update/resources/bot_update.py (right): https://codereview.chromium.org/2382653005/diff/40001/recipe_modules/bot_update/resources/bot_update.py#newcode226 recipe_modules/bot_update/resources/bot_update.py:226: remove_git_lockfiles(sys.platform, os.getcwd()) Right, I was thinking that any git ...
4 years, 2 months ago (2016-10-07 18:49:16 UTC) #8
Paweł Hajdan Jr.
https://codereview.chromium.org/2382653005/diff/40001/recipe_modules/bot_update/resources/bot_update.py File recipe_modules/bot_update/resources/bot_update.py (right): https://codereview.chromium.org/2382653005/diff/40001/recipe_modules/bot_update/resources/bot_update.py#newcode226 recipe_modules/bot_update/resources/bot_update.py:226: remove_git_lockfiles(sys.platform, os.getcwd()) On 2016/10/07 at 18:49:16, katthomas wrote: > ...
4 years, 2 months ago (2016-10-10 14:58:04 UTC) #9
agable
https://codereview.chromium.org/2382653005/diff/40001/recipe_modules/bot_update/resources/bot_update.py File recipe_modules/bot_update/resources/bot_update.py (right): https://codereview.chromium.org/2382653005/diff/40001/recipe_modules/bot_update/resources/bot_update.py#newcode226 recipe_modules/bot_update/resources/bot_update.py:226: remove_git_lockfiles(sys.platform, os.getcwd()) On 2016/10/10 at 14:58:04, Paweł Hajdan Jr. ...
4 years, 2 months ago (2016-10-10 23:01:34 UTC) #10
katthomas
PTAL I found that gclient sync has a flag that does what we wanted, so ...
4 years, 2 months ago (2016-10-11 17:29:18 UTC) #11
Paweł Hajdan Jr.
LGTM
4 years, 2 months ago (2016-10-11 20:42:03 UTC) #12
agable
lgtm
4 years, 2 months ago (2016-10-11 20:46:19 UTC) #13
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/2382653005/60001
4 years, 2 months ago (2016-10-11 23:51:44 UTC) #15
commit-bot: I haz the power
Committed patchset #4 (id:60001) as https://chromium.googlesource.com/chromium/tools/depot_tools/+/df66a34f68f4b2f2c08039f178d267c7dafd9d59
4 years, 2 months ago (2016-10-11 23:55:19 UTC) #17
ddoman1
4 years, 1 month ago (2016-10-25 19:08:55 UTC) #19
Message was sent while issue was closed.
https://codereview.chromium.org/2382653005/diff/60001/recipe_modules/bot_upda...
File recipe_modules/bot_update/resources/bot_update.py (right):

https://codereview.chromium.org/2382653005/diff/60001/recipe_modules/bot_upda...
recipe_modules/bot_update/resources/bot_update.py:730: git_ref =
git_checkout(solutions, revisions, shallow, refs, git_cache_dir)
@katthomas,

The following log shows that git checkout failed at this due to a broken lock:
https://build.chromium.org/p/chromium.win/builders/Win%20x64%20Builder/builds...

Therefore, those locks need to be checked and removed before git_checkout().

Powered by Google App Engine
This is Rietveld 408576698