Closed
Bug 690911
Opened 13 years ago
Closed 13 years ago
mozharness test_share_reset (test_base_vcs_mercurial.TestHg) fails on some machines
Categories
(Release Engineering :: General, defect, P5)
Tracking
(Not tracked)
RESOLVED
DUPLICATE
of bug 691161
People
(Reporter: mozilla, Unassigned)
Details
(Whiteboard: [mozharness])
I'm not entirely sure what the problem is, but assuming \n is the line separator seems like a good place to start.
..................ERROR: Errors received:
ERROR: abort: repository /tmp/tmp9t9mAR/wc not found!
ERROR: Return code: 255
E.................
======================================================================
ERROR: test_share_reset (test_base_vcs_mercurial.TestHg)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/mozilla/mozharness/test/test_base_vcs_mercurial.py", line 257, in
test_share_reset
self.assertEquals(get_revisions(self.repodir), get_revisions(self.wc))
File "/home/mozilla/mozharness/test/test_base_vcs_mercurial.py", line 41, in g
et_revisions
for rev in m.get_output_from_command(['hg', 'log', '-R', dest, '--template',
'{node|short}\n']).split('\n'):
AttributeError: 'NoneType' object has no attribute 'split'
-------------------- >> begin captured stdout << ---------------------
Running command: ['bash', '/home/mozilla/mozharness/test/helper_files/init_hgrep
o.sh', '/tmp/tmp9t9mAR/repo']
1 files updated, 0 files merged, 0 files removed, 0 files unresolved
Return code: 0
Getting output from command: ['hg', 'log', '-R', '/tmp/tmp9t9mAR/repo', '--templ
ate', '{node|short}\n']
Output received:
e97103115dc9
9a45748e5d33
d6ffac48ab5f
rmtree: tmpfile_stderr
rmtree: tmpfile_stdout
Setting /tmp/tmp9t9mAR/wc to /tmp/tmp9t9mAR/repo using shared directory /tmp/tmp
9t9mAR/share.
Checking if share extension works.
Getting output from command: ['hg', 'help', 'share']
rmtree: tmpfile_stderr
rmtree: tmpfile_stdout
hg share works.
Updating shared repo
Cloning /tmp/tmp9t9mAR/repo to /tmp/tmp9t9mAR/share/tmp/tmp9t9mAR/repo.
mkdir: /tmp/tmp9t9mAR/share/tmp/tmp9t9mAR
Running command: ['hg', 'clone', '/tmp/tmp9t9mAR/repo', '/tmp/tmp9t9mAR/share/tm
p/tmp9t9mAR/repo']
updating to branch default
1 files updated, 0 files merged, 0 files removed, 0 files unresolved
Return code: 0
Updating /tmp/tmp9t9mAR/share/tmp/tmp9t9mAR/repo.
Getting output from command: ['hg', 'branch'] in /tmp/tmp9t9mAR/share/tmp/tmp9t9
mAR/repo
Output received:
default
rmtree: tmpfile_stderr
rmtree: tmpfile_stdout
Running command: ['hg', 'update', '-C'] in /tmp/tmp9t9mAR/share/tmp/tmp9t9mAR/re
po
0 files updated, 0 files merged, 0 files removed, 0 files unresolved
Return code: 0
Getting output from command: ['hg', 'parent', '--template', '{node|short}'] in /
tmp/tmp9t9mAR/share/tmp/tmp9t9mAR/repo
Output received:
e97103115dc9
rmtree: tmpfile_stderr
rmtree: tmpfile_stdout
Trying to share /tmp/tmp9t9mAR/share/tmp/tmp9t9mAR/repo to /tmp/tmp9t9mAR/wc
Sharing /tmp/tmp9t9mAR/share/tmp/tmp9t9mAR/repo to /tmp/tmp9t9mAR/wc.
Running command: ['hg', 'share', '-U', '/tmp/tmp9t9mAR/share/tmp/tmp9t9mAR/repo'
, '/tmp/tmp9t9mAR/wc']
Return code: 0
Updating /tmp/tmp9t9mAR/wc.
Getting output from command: ['hg', 'branch'] in /tmp/tmp9t9mAR/wc
Output received:
default
rmtree: tmpfile_stderr
rmtree: tmpfile_stdout
Running command: ['hg', 'update', '-C'] in /tmp/tmp9t9mAR/wc
1 files updated, 0 files merged, 0 files removed, 0 files unresolved
Return code: 0
Getting output from command: ['hg', 'parent', '--template', '{node|short}'] in /
tmp/tmp9t9mAR/wc
Output received:
e97103115dc9
rmtree: tmpfile_stderr
rmtree: tmpfile_stdout
Running command: ['bash', '/home/mozilla/mozharness/test/helper_files/init_hgrep
o.sh', '/tmp/tmp9t9mAR/repo']
1 files updated, 0 files merged, 0 files removed, 0 files unresolved
Return code: 0
Getting output from command: ['hg', 'log', '-R', '/tmp/tmp9t9mAR/repo', '--templ
ate', '{node|short}\n']
Output received:
6020a64a2ac8
92f778706e1e
540be3d58730
rmtree: tmpfile_stderr
rmtree: tmpfile_stdout
Getting output from command: ['hg', 'log', '-R', '/tmp/tmp9t9mAR/repo', '--templ
ate', '{node|short}\n']
Output received:
6020a64a2ac8
92f778706e1e
540be3d58730
rmtree: tmpfile_stderr
rmtree: tmpfile_stdout
Getting output from command: ['hg', 'log', '-R', '/tmp/tmp9t9mAR/wc', '--templat
e', '{node|short}\n']
rmtree: tmpfile_stderr
rmtree: tmpfile_stdout
--------------------- >> end captured stdout << ----------------------
----------------------------------------------------------------------
Ran 116 tests in 1203.547s
FAILED (errors=1)
Reporter | ||
Comment 1•13 years ago
|
||
This also fails on my linux vm.
I'm using hg 1.9 on osx, 1.8.3 on linux, 1.8.1 on windows; maybe that's it?
OS: Windows XP → All
Summary: mozharness test_share_reset (test_base_vcs_mercurial.TestHg) fails on windows → mozharness test_share_reset (test_base_vcs_mercurial.TestHg) fails on some machines
Reporter | ||
Comment 2•13 years ago
|
||
[cltbld@localhost ~]$ hg --version
*** failed to import extension share: No module named share
Mercurial Distributed SCM (version 1.1.2)
I wonder how I got 1.8.3 ?
This would explain the error.
Reporter | ||
Comment 3•13 years ago
|
||
N/m, retried with a new virtualenv and hg 1.9.1 on linux.
Still getting this error.
Tempted to follow Rail's advice and just use the mercurial python module rather than using hgtool, since I don't fully understand what I ported.
Reporter | ||
Comment 4•13 years ago
|
||
Sadly, this was the canary that should have prevented me from landing 0.4.
I didn't realize this would cause production mozharness issues, as I hadn't explicitly turned on hg sharing in any mozharness functionality.
However, the backwards compatibility with hgtool meant we picked up hg sharing automatically in multilocale builds, hence bug 691161.
The patch I'm going to submit to bug 691161 will also fix this bug.
Status: NEW → RESOLVED
Closed: 13 years ago
Resolution: --- → DUPLICATE
Assignee | ||
Updated•11 years ago
|
Product: mozilla.org → Release Engineering
You need to log in
before you can comment on or make changes to this bug.
Description
•