Page MenuHomePhabricator

`flake8 --doctest` command on jenkins pywikibot-core-tox-docker raised an exception
Closed, ResolvedPublic

Description

flake8 --doctest command in pywikibot jenkins raised an exception on https://gerrit.wikimedia.org/r/#/c/401901/ . The jenkins log is available at https://integration.wikimedia.org/ci/job/pywikibot-core-tox-docker/585/console

Here's the flake8 exception on the job:

07:43:32 flake8 runtests: commands[1] | flake8 --doctests
07:43:32   /src$ /src/.tox/flake8/bin/flake8 --doctests 
07:43:55 Traceback (most recent call last):
07:43:55   File "/src/.tox/flake8/bin/flake8", line 11, in <module>
07:43:55     sys.exit(main())
07:43:55   File "/src/.tox/flake8/local/lib/python2.7/site-packages/flake8/main/cli.py", line 16, in main
07:43:55     app.run(argv)
07:43:55   File "/src/.tox/flake8/local/lib/python2.7/site-packages/flake8/main/application.py", line 396, in run
07:43:55     self._run(argv)
07:43:55   File "/src/.tox/flake8/local/lib/python2.7/site-packages/flake8/main/application.py", line 384, in _run
07:43:55     self.run_checks()
07:43:55   File "/src/.tox/flake8/local/lib/python2.7/site-packages/flake8/main/application.py", line 310, in run_checks
07:43:55     self.file_checker_manager.run()
07:43:55   File "/src/.tox/flake8/local/lib/python2.7/site-packages/flake8_per_file_ignores.py", line 32, in run
07:43:55     orig_run(self)
07:43:55   File "/src/.tox/flake8/local/lib/python2.7/site-packages/flake8/checker.py", line 319, in run
07:43:55     self.run_parallel()
07:43:55   File "/src/.tox/flake8/local/lib/python2.7/site-packages/flake8/checker.py", line 288, in run_parallel
07:43:55     for ret in pool_map:
07:43:55   File "/usr/lib/python2.7/multiprocessing/pool.py", line 287, in <genexpr>
07:43:55     return (item for chunk in result for item in chunk)
07:43:55   File "/usr/lib/python2.7/multiprocessing/pool.py", line 659, in next
07:43:55     raise value
07:43:55 TypeError: __init__() got an unexpected keyword argument 'code'
07:43:55 ERROR: InvocationError: '/src/.tox/flake8/bin/flake8 --doctests'

Event Timeline

Restricted Application added subscribers: pywikibot-bugs-list, Aklapper. · View Herald TranscriptJan 4 2018, 8:33 AM
rafidaslam triaged this task as High priority.Jan 4 2018, 8:33 AM

Change 401908 had a related patch set uploaded (by Dalba; owner: Dalba):
[pywikibot/core@master] Remove pydocstyle version restriction

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

rafidaslam assigned this task to Dalba.Jan 4 2018, 8:39 AM

Change 401908 merged by jenkins-bot:
[pywikibot/core@master] Remove pydocstyle version restriction

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

jayvdb closed this task as Resolved.Jan 4 2018, 10:44 AM