Closed SylvainDe closed 7 years ago
@SylvainDe on PyPy 5.6 this works for me (no recursion error)
@SylvainDe you can use PyPy 5.6 on travis
Hello @TiberiumPY , I have no idea how you stumbled open this issue but many thanks for your input :-D. I'll give it a try asap (do you reckon I should use pypy-5.6
as a Python version). In any case, I do not quite understand why this used to work but doesn't anymore...
@SylvainDe can you give example code which raises an error on PyPy 5.3 ? (yeah, I ran tests and everything is fine, just to be 100% sure)
@TiberiumPY I haven't run the tests locally yet. However, I had setup the continuous integration on Travis to run on as many platforms as possible as my code relies on parts that are likely to fail from one implementation to another ("parsing" of error messages, code introspection, etc).
In any case, the failure can be observed on the job logs on https://travis-ci.org/SylvainDe/DidYouMean-Python . For instance:
For the record, I had a similar issue a few days ago and restarting the job did fix it. I haven't managed to find the logs for that run/re-run yet.
This is driving me crazy. Removing passing test cases makes the issue disappear...
@SylvainDe why are you doing this? PyPy 5.3 is an old version
@TiberiumPY To be fair, I do not know much about the different PyPy versions. I've just set up my travis.yml file ( https://github.com/SylvainDe/DidYouMean-Python/blob/master/.travis.yml ) to run on all the versions I've found on https://docs.travis-ci.com/user/languages/python/ because I didn't know better... At the moment, I've changed the config to allow failures on the PyPy configs but I'd like to understand what's going on (and fix it and/or open an issue in the relevant project).
I've tried (unsuccessfully) to add PyPy 5.6 in the Travis config :(
@SylvainDe you need to add manual config for latest pypy
@SylvainDe or use this: https://github.com/frol/flask-restplus-server-example/blob/master/.travis.yml
just change 5.4.1 with 5.6.0
@TiberiumPY Thank you so much, I'll try this asap :-)
@SylvainDe https://travis-ci.org/SylvainDe/DidYouMean-Python/jobs/187717214
no recursion error anymore (seems just PyPy guys raised max depth from 100 to 1000)
Indeed, thanks for your help! (It is surprising that adding/removing unrelated successful tests affects how deep we go into the calls)
@SylvainDe tests pass! BTW, maybe you can remove PyPy from allowed failures?
@SylvainDe and remove PyPy -5 3.1 completely
@TiberiumPY Sure, will do! Btw, do you know if using the same technique I'd be able to run on multiple version of PyPy? The fact that changing from one version to another was useful to detect a new issue (cf https://github.com/SylvainDe/DidYouMean-Python/commit/2c040f9268a9feff249b263219bd005ecf14bc8f ) proves that it'd probably help me to run the code on most versions of PyPy released.
@SylvainDe probably - yes This script uses "pyenv", so you can use all versions supported by pyenv
@SylvainDe these are all pypy versions supported by pyenv
@TiberiumPY Thanks! Did you forget a link or a list of versions ?
@SylvainDe ah, yes! https://paste.pound-python.org/show/s9ZtjUcXvaLSoigIFYhf/
@TiberiumPY Wahoo, thank you again! I'll try to pick a relevant subset and put this in my travis.yml file.
Also I've just realised the reason why the script maybe failing: a different test used to set a particular recursion limit in order to reach the limit easily. I would probably make sense to save the original value and reset it.
@TiberiumPY I have the feeling I have solved the issue and thanks to your help gone a bit further so thanks again for the suggestions!
Note to myself : this issue came back for no obvious reason.
https://travis-ci.org/SylvainDe/DidYouMean-Python/jobs/258923496 Job #807.13
$ python --version
Python 2.7.10 (7e8df3df9641, Jun 14 2016, 13:58:02)
[PyPy 5.3.1 with GCC 4.8.2]
OK
====================================================================================
https://travis-ci.org/SylvainDe/DidYouMean-Python/jobs/259141829 Job #808.13
$ python --version
Python 2.7.10 (7e8df3df9641, Jun 14 2016, 13:58:02)
[PyPy 5.3.1 with GCC 4.8.2]
It was fixed with an adaptation of the original fix : https://github.com/SylvainDe/DidYouMean-Python/commit/78c0ba07585daa52b87ccfbdd5ead2732efa11a7 .
I have the following error:
when running the unit test on Travis. It does not seem related to the new changes performed.
This seems to affect:
but not:
Looking for "pypy maximum recursion depth exceeded travis" in Google shows other similar looking errors. To be investigated.