Page MenuHomePhabricator

eventlogging tests in mainline error
Closed, ResolvedPublic

Description

eventlogging tests in mainline error as the test runner is trying to run the tests on the tests directory inside the eggs we are imported. Pykafka has a test directory inside the
package. Error is as follows:

File "/usr/lib/python2.7/unittest/loader.py", line 130, in loadTestsFromNames
  suites = [self.loadTestsFromName(name, module) for name in names]
File "/usr/lib/python2.7/unittest/loader.py", line 103, in loadTestsFromName
  return self.loadTestsFromModule(obj)
File "/vagrant/mediawiki/extensions/EventLogging/server/.tox/py27/local/lib/python2.7/site-packages/setuptools/command/test.py", line 39, in loadTestsFromModule
  tests.append(self.loadTestsFromName(submodule))
File "/usr/lib/python2.7/unittest/loader.py", line 103, in loadTestsFromName
  return self.loadTestsFromModule(obj)
File "/vagrant/mediawiki/extensions/EventLogging/server/.tox/py27/local/lib/python2.7/site-packages/setuptools/command/test.py", line 39, in loadTestsFromModule
  tests.append(self.loadTestsFromName(submodule))
File "/usr/lib/python2.7/unittest/loader.py", line 100, in loadTestsFromName
  parent, obj = obj, getattr(obj, part)

AttributeError: 'module' object has no attribute 'test_balancedconsumer'
ERROR: InvocationError: '/vagrant/mediawiki/extensions/EventLogging/server/.tox/py27/bin/python setup.py test'

Event Timeline

Nuria raised the priority of this task from to Needs Triage.
Nuria updated the task description. (Show Details)

Change 235849 had a related patch set uploaded (by Alex Monk):
Setup.py only matches eventlogging tests

https://gerrit.wikimedia.org/r/235849