Closed
Bug 1005185
Opened 11 years ago
Closed 11 years ago
nuke lockfiles in .repo dir in b2g_build.py
Categories
(Release Engineering :: General, defect)
Tracking
(Not tracked)
RESOLVED
FIXED
People
(Reporter: mozilla, Assigned: catlee)
References
Details
Attachments
(2 files)
1.38 KB,
patch
|
mozilla
:
review+
catlee
:
checked-in+
|
Details | Diff | Splinter Review |
2.53 KB,
patch
|
mozilla
:
review+
catlee
:
checked-in+
|
Details | Diff | Splinter Review |
[09:58] <philor> [14:59:42] "fatal: Unable to create '/builds/slave/b2g_m-in_wsb_dep-0000000000000/build/.repo/projects/external/fdlibm.git/refs/remotes/caf/kk_2.7_rb1.37.lock': File exists"
Evidently build/.repo is a softlink to the git share dir, so a clobber doesn't help here. We could do a find build/.repo -name \*.lock -exec rm -f {} \; (or something) to clear those up.
Updated•11 years ago
|
Reporter | ||
Comment 2•11 years ago
|
||
[cltbld@bld-centos6-hp-012.build.scl1.mozilla.com repo]$ find . -name \*.lock -mmin +30 -print -exec
rm -f {} \;
./projects/external/ipsec-tools.git/refs/remotes/m/master.lock
[cltbld@bld-centos6-hp-012.build.scl1.mozilla.com repo]$
[cltbld@bld-centos6-hp-008.build.scl1.mozilla.com repo]$ find . -name \*.lock -mmin +30 -print -exec rm -f {} \;
./projects/external/protobuf.git/refs/remotes/caf/LNX.LA.3.2.7_rb1.lock
[cltbld@bld-centos6-hp-008.build.scl1.mozilla.com repo]$
[cltbld@bld-centos6-hp-024.build.scl1.mozilla.com repo]$ find . -name \*.lock -mmin +30 -print -exec rm -f {} \;
./projects/libcore.git/refs/tags/AU_LINUX_ANDROID_JB_3.2.1.4.04.03.00.183.098.lock
./projects/ndk.git/refs/remotes/m/master.lock
[cltbld@bld-centos6-hp-024.build.scl1.mozilla.com repo]$
Updated•11 years ago
|
Blocks: b-linux64-ix-0011
Updated•11 years ago
|
Blocks: b-linux64-hp-0030
Updated•11 years ago
|
Blocks: b-linux64-hp-0025
Updated•11 years ago
|
Blocks: b-linux64-hp-0008
Assignee | ||
Updated•11 years ago
|
Assignee: nobody → catlee
Assignee | ||
Comment 3•11 years ago
|
||
Attachment #8418887 -
Flags: review?(aki)
Reporter | ||
Updated•11 years ago
|
Attachment #8418887 -
Flags: review?(aki) → review+
Assignee | ||
Updated•11 years ago
|
Attachment #8418887 -
Flags: checked-in+
Comment 4•11 years ago
|
||
Transplanted to production, because I selfishly need to get an hp box and can resuscitate 4 from prod with this:
https://hg.mozilla.org/build/mozharness/rev/1d5a8147d4eb
Comment 5•11 years ago
|
||
Working in production in a b2g_mozilla-inbound_hamachi_eng_dep build:
17:36:06 INFO - Deleting stale lock files
17:36:06 INFO - Running command: ['find', '.repo', '-name', '*.lock', '-print', '-delete'] in /builds/slave/b2g_m-in_ham_eng_dep-000000000/build
17:36:06 INFO - Copy/paste: find .repo -name *.lock -print -delete
17:36:06 INFO - Return code: 0
17:36:06 INFO - Running command: ['./config.sh', '-q', 'hamachi', '/builds/slave/b2g_m-in_ham_eng_dep-000000000/build/tmp_manifest/hamachi.xml'] in /builds/slave/b2g_m-in_ham_eng_dep-000000000/build
Comment 6•11 years ago
|
||
aki points out that the find was instantaneous, and a trailing / is needed on symlinks. With that /, it was 5 min expensive to do the find on bld-centos6-hp-008 (it was running repo at the same time so probably some thrashing). catlee has a patch that moves the find to the error case where updating git has failed.
Assignee | ||
Comment 7•11 years ago
|
||
Attachment #8419423 -
Flags: review?(aki)
Reporter | ||
Updated•11 years ago
|
Attachment #8419423 -
Flags: review?(aki) → review+
Assignee | ||
Updated•11 years ago
|
Attachment #8419423 -
Flags: checked-in+
Assignee | ||
Comment 8•11 years ago
|
||
This is in production now (as of http://hg.mozilla.org/build/mozharness/rev/fd1776381421)
I haven't seen any cases of this finding/deleting lock files, but there are a few cases where it's run. It takes about 3 minutes to run find on each of the 3 instances I've found of this.
Status: NEW → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
Updated•7 years ago
|
Component: General Automation → General
You need to log in
before you can comment on or make changes to this bug.
Description
•