Page MenuHomePhabricator

Add pypy to CI build machines
Closed, ResolvedPublic

Description

Pywikibot would like to support pypy. It would be useful to have the jenkins jobs automatically reject any changes that include syntax errors detected by pyflakes on pypy .

Currently the tox-jessie job skips pypy testing with

ERROR: InterpreterNotFound: pypy

https://integration.wikimedia.org/ci/job/tox-jessie/7550/console

Event Timeline

Sure thing! Debian Jessie comes with pypy 2.4.0 would it be sufficient?

Change 286598 had a related patch set uploaded (by Hashar):
contint: pypy package for pywikibot

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

hashar triaged this task as Medium priority.

Debian Jessie 's pypy 2.4.0 would be great. I believe it is basically Python 2.7.8 with lots of very old bugs ;-)

Trusty's pypy 2.2.1 would also be ok , as it is Python 2.7.3 , which would be acceptable for at least pyflakes checking, but little else.

Once we have some basic testing working on pypy, we will have a better idea what is failing, and whether we need a much more modern PyPy 5.x to get a supportable version without killing ourselves working around very old bugs.

Change 286598 merged by BBlack:
contint: pypy package for pywikibot

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

Mentioned in SAL [2016-05-03T16:46:17Z] <hashar> Refreshing Nodepool Jessie image to have it include pypy | T134235 poke @jayvdb

Mentioned in SAL [2016-05-03T16:49:28Z] <hashar> Notice: /Stage[main]/Contint::Packages::Python/Package[pypy]/ensure: ensure changed 'purged' to 'present' | T134235

Added on the Jessie images:

Python 2.7.8 (2.4.0+dfsg-3, Dec 20 2014, 13:30:46)
[PyPy 2.4.0 with GCC 4.9.2]

\O/

The pywikibot patch is https://gerrit.wikimedia.org/r/#/c/260909/

Confirmed. pyflakes on pypy now passes on that patch.