Open Bug 1364687 Opened 7 years ago Updated 7 years ago

Intermittent IndexError: tuple index out of range after cloning failure

Categories

(Developer Services :: Mercurial: robustcheckout, defect)

defect
Not set
normal

Tracking

(Not tracked)

People

(Reporter: aryx, Unassigned)

Details

(Keywords: intermittent-failure)

https://treeherder.mozilla.org/logviewer.html#?job_id=98866604&repo=mozilla-inbound

[vcs 2017-05-13T07:54:45.105544Z] executing ['hg', 'robustcheckout', '--sharebase', '/home/worker/checkouts/hg-store', '--purge', '--branch', 'default', 'https://hg.mozilla.org/build/tools', '/home/worker/workspace/build/tools']
[vcs 2017-05-13T07:54:45.160082Z] ensuring https://hg.mozilla.org/build/tools@default is available at /home/worker/workspace/build/tools
[vcs 2017-05-13T07:54:45.704760Z] (sharing from new pooled repository 7ae7fb134bf7aec6ec96a062ff47a69053dd2973)
[vcs 2017-05-13T07:54:46.148971Z] applying clone bundle from https://s3-external-1.amazonaws.com/moz-hg-bundles-us-east-1/build/tools/14fad99b7a3524ea944b88805c69df159a910738.packed1.hg
[vcs 2017-05-13T07:55:09.296226Z] ** unknown exception encountered, please report by visiting
[vcs 2017-05-13T07:55:09.296266Z] ** https://mercurial-scm.org/wiki/BugTracker
[vcs 2017-05-13T07:55:09.296287Z] ** Python 2.7.10 (default, Mar 29 2016, 19:28:19) [GCC 4.4.7 20120313 (Red Hat 4.4.7-16)]
[vcs 2017-05-13T07:55:09.296301Z] ** Mercurial Distributed SCM (version 4.1.2)
[vcs 2017-05-13T07:55:09.296318Z] ** Extensions loaded: robustcheckout, color, histedit, pager, rebase, share, purge
[vcs 2017-05-13T07:55:09.296330Z] Traceback (most recent call last):
[vcs 2017-05-13T07:55:09.296343Z]   File "/usr/bin/hg", line 45, in <module>
[vcs 2017-05-13T07:55:09.296352Z]     mercurial.dispatch.run()
[vcs 2017-05-13T07:55:09.296369Z]   File "/usr/lib/python2.7/site-packages/mercurial/dispatch.py", line 63, in run
[vcs 2017-05-13T07:55:09.296384Z]     sys.exit((dispatch(request(pycompat.sysargv[1:])) or 0) & 255)
[vcs 2017-05-13T07:55:09.296402Z]   File "/usr/lib/python2.7/site-packages/mercurial/dispatch.py", line 129, in dispatch
[vcs 2017-05-13T07:55:09.296409Z]     ret = _runcatch(req)
[vcs 2017-05-13T07:55:09.296431Z]   File "/usr/lib/python2.7/site-packages/mercurial/dispatch.py", line 219, in _runcatch
[vcs 2017-05-13T07:55:09.296441Z]     return callcatch(ui, _runcatchfunc)
[vcs 2017-05-13T07:55:09.296459Z]   File "/usr/lib/python2.7/site-packages/mercurial/dispatch.py", line 227, in callcatch
[vcs 2017-05-13T07:55:09.296468Z]     return scmutil.callcatch(ui, func)
[vcs 2017-05-13T07:55:09.296488Z]   File "/usr/lib/python2.7/site-packages/mercurial/scmutil.py", line 152, in callcatch
[vcs 2017-05-13T07:55:09.296495Z]     return func()
[vcs 2017-05-13T07:55:09.296515Z]   File "/usr/lib/python2.7/site-packages/mercurial/dispatch.py", line 208, in _runcatchfunc
[vcs 2017-05-13T07:55:09.296523Z]     return _dispatch(req)
[vcs 2017-05-13T07:55:09.296540Z]   File "/usr/lib/python2.7/site-packages/mercurial/dispatch.py", line 811, in _dispatch
[vcs 2017-05-13T07:55:09.296548Z]     cmdpats, cmdoptions)
[vcs 2017-05-13T07:55:09.296566Z]   File "/usr/lib/python2.7/site-packages/mercurial/dispatch.py", line 563, in runcommand
[vcs 2017-05-13T07:55:09.296613Z]     ret = _runcommand(ui, options, cmd, d)
[vcs 2017-05-13T07:55:09.296654Z]   File "/usr/lib/python2.7/site-packages/mercurial/extensions.py", line 223, in closure
[vcs 2017-05-13T07:55:09.296675Z]     return func(*(args + a), **kw)
[vcs 2017-05-13T07:55:09.296700Z]   File "/usr/lib/python2.7/site-packages/hgext/pager.py", line 159, in pagecmd
[vcs 2017-05-13T07:55:09.296719Z]     return orig(ui, options, cmd, cmdfunc)
[vcs 2017-05-13T07:55:09.296755Z]   File "/usr/lib/python2.7/site-packages/mercurial/extensions.py", line 223, in closure
[vcs 2017-05-13T07:55:09.296780Z]     return func(*(args + a), **kw)
[vcs 2017-05-13T07:55:09.296805Z]   File "/usr/lib/python2.7/site-packages/hgext/color.py", line 460, in colorcmd
[vcs 2017-05-13T07:55:09.296823Z]     return orig(ui_, opts, cmd, cmdfunc)
[vcs 2017-05-13T07:55:09.296849Z]   File "/usr/lib/python2.7/site-packages/mercurial/dispatch.py", line 819, in _runcommand
[vcs 2017-05-13T07:55:09.296881Z]     return cmdfunc()
[vcs 2017-05-13T07:55:09.296908Z]   File "/usr/lib/python2.7/site-packages/mercurial/dispatch.py", line 808, in <lambda>
[vcs 2017-05-13T07:55:09.296999Z]     d = lambda: util.checksignature(func)(ui, *args, **strcmdopt)
[vcs 2017-05-13T07:55:09.297048Z]   File "/usr/lib/python2.7/site-packages/mercurial/util.py", line 1051, in check
[vcs 2017-05-13T07:55:09.297114Z]     return func(*args, **kwargs)
[vcs 2017-05-13T07:55:09.297160Z]   File "/usr/local/mercurial/robustcheckout.py", line 165, in robustcheckout
[vcs 2017-05-13T07:55:09.297190Z]     sharebase, networkattempts)
[vcs 2017-05-13T07:55:09.297232Z]   File "/usr/local/mercurial/robustcheckout.py", line 297, in _docheckout
[vcs 2017-05-13T07:55:09.297258Z]     shareopts={'pool': sharebase, 'mode': 'identity'})
[vcs 2017-05-13T07:55:09.297282Z]   File "/usr/lib/python2.7/site-packages/mercurial/hg.py", line 504, in clone
[vcs 2017-05-13T07:55:09.297298Z]     stream=stream)
[vcs 2017-05-13T07:55:09.297319Z]   File "/usr/lib/python2.7/site-packages/mercurial/hg.py", line 375, in clonewithshare
[vcs 2017-05-13T07:55:09.297372Z]     rev=rev, update=False, stream=stream)
[vcs 2017-05-13T07:55:09.297400Z]   File "/usr/lib/python2.7/site-packages/mercurial/hg.py", line 610, in clone
[vcs 2017-05-13T07:55:09.297480Z]     streamclonerequested=stream)
[vcs 2017-05-13T07:55:09.297520Z]   File "/usr/lib/python2.7/site-packages/mercurial/exchange.py", line 1235, in pull
[vcs 2017-05-13T07:55:09.297628Z]     _maybeapplyclonebundle(pullop)
[vcs 2017-05-13T07:55:09.297658Z]   File "/usr/lib/python2.7/site-packages/mercurial/exchange.py", line 1838, in _maybeapplyclonebundle
[vcs 2017-05-13T07:55:09.297853Z]     if trypullbundlefromurl(repo.ui, repo, url):
[vcs 2017-05-13T07:55:09.297890Z]   File "/usr/lib/python2.7/site-packages/mercurial/exchange.py", line 2018, in trypullbundlefromurl
[vcs 2017-05-13T07:55:09.298097Z]     ui.warn(_('error fetching bundle: %s\n') % e.reason[1])
[vcs 2017-05-13T07:55:09.298124Z] IndexError: tuple index out of range
This smells like an upstream bug. needinfo me to triage later.
Flags: needinfo?(gps)
I submitted a patch upstream. Hopefully the fix will make it in 4.2.1.
Flags: needinfo?(gps)
Patch accepted upstream. Will be part of 4.2.1. https://www.mercurial-scm.org/repo/hg/rev/9d6031df42c8.

This should get marked as a dupe of "deploy Mercurial 4.2.1 to automation" whenever we file that bug.
You need to log in before you can comment on or make changes to this bug.