Page MenuHomePhabricator

Zuul: python git assert error assert len(fetch_info_lines) == len(fetch_head_info)
Closed, ResolvedPublic

Description

Spotted by EdSanders on https://gerrit.wikimedia.org/r/#/c/107036/

2014-01-12 14:29:20,163 INFO zuul.IndependentPipelineManager: Change <Change 0x7f30084dcf10 107036,1> depends on changes []
2014-01-12 14:29:20,165 DEBUG zuul.Repo: Resetting repository /srv/ssd/zuul/git/mediawiki/extensions/VisualEditor
2014-01-12 14:29:20,165 DEBUG zuul.Repo: Updating repository /srv/ssd/zuul/git/mediawiki/extensions/VisualEditor
2014-01-12 14:29:24,064 DEBUG zuul.Repo: Checking out master
2014-01-12 14:29:26,280 DEBUG zuul.Merger: Unable to merge <Change 0x7f30084dcf10 107036,1>
Traceback (most recent call last):

File "/usr/local/lib/python2.7/dist-packages/zuul/merger.py", line 206, in _mergeChange
  repo.merge(change.refspec, 'resolve')
File "/usr/local/lib/python2.7/dist-packages/zuul/merger.py", line 97, in merge
  self.fetch(ref)
File "/usr/local/lib/python2.7/dist-packages/zuul/merger.py", line 111, in fetch
  origin.fetch(ref)
File "/usr/lib/python2.7/dist-packages/git/remote.py", line 593, in fetch
  return self._get_fetch_info_from_stderr(proc, progress or RemoteProgress())
File "/usr/lib/python2.7/dist-packages/git/remote.py", line 539, in _get_fetch_info_from_stderr
  assert len(fetch_info_lines) == len(fetch_head_info), "len(%s) != len(%s)" % (fetch_head_info, fetch_info_lines)

AssertionError: len(["rEVED3d35f5b84a26\t\t'refs/changes/36/107036/1' of ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/VisualEditor\n"]) != len(['Total 9 (delta 7), reused 9 (delta 7)', ' * branch refs/changes/36/107036/1 -> FETCH_HEAD'])
2014-01-12 14:29:26,318 INFO zuul.IndependentPipelineManager: Unable to merge change <Change 0x7f30084dcf10 107036,1>
2014-01-12 14:29:26,319 DEBUG zuul.IndependentPipelineManager: Reporting change <Change 0x7f30084dcf10 107036,1>
2014-01-12 14:29:26,319 INFO zuul.IndependentPipelineManager: Reporting change <Change 0x7f30084dcf10 107036,1>, actions: [<ActionReporter <zuul.reporter.gerrit.Reporter object at 0x25821d0>, {'verified': -1}>]
2014-01-12 14:29:26,319 DEBUG zuul.reporter.gerrit.Reporter: Report change <Change 0x7f30084dcf10 107036,1>, params {'verified': -1}, message: Build failed.

This change was unable to be automatically merged with the current state of the repository. Please rebase your change and upload a new patchset.

There is a few occurrences in the Zuul debug log: fgrep assert /var/log/zuul/debug*


Version: wmf-deployment
Severity: normal

Details

Reference
bz59991

Event Timeline

bzimport raised the priority of this task from to Medium.Nov 22 2014, 2:42 AM
bzimport set Reference to bz59991.
bzimport added a subscriber: Unknown Object (MLST).

Possible upstream bug: https://github.com/gitpython-developers/GitPython/issues/94

Got to find a way to reliably reproduce the issue :(

Krinkle set Security to None.
Krinkle moved this task from Untriaged to Backlog on the Continuous-Integration-Infrastructure board.
Krinkle removed a subscriber: Unknown Object (MLST).

That is apparently solved in v3.2. Now pending upgrade of Zuul.

Krinkle changed the task status from Open to Stalled.Apr 16 2015, 3:12 AM
hashar claimed this task.

The Zuul Debian package embeds some python modules including GitPython which is now >=0.3.3.