-
-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Fix PyPy compatibility in adbapi init #4174
Conversation
bd4702b
to
e6433f9
Compare
Looks like the pypy35 test went through equally well as the python35 one. But pypy35-postgres caused a bunch of errors, mostly "too many connections" on the psql server? The pypy tests also ran significantly longer than the py3 ones, not sure what to make of that :) On the plus side though, setting up tox for pypy was straightforward and worked almost right out of the box, yay |
I think this is expected due to JIT compilations. However, it should run faster after that |
please see CONTRIBUTING.rst - this needs basing on |
a0bf945
to
cd341c0
Compare
b6054b2
to
73cf838
Compare
Well. The test runs work now, but the pypy-postgres run takes a whoopin' 43 minutes for some reason. Wonder what the problem there is... anyways, I'll leave this here for now :) |
.travis.yml
Outdated
@@ -57,6 +57,19 @@ matrix: | |||
services: | |||
- postgresql | |||
|
|||
- python: 3.6 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
we're excluding python 3.6 deliberately: we get four workers on Travis, so this one just slows things down pointlessly.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ah, sorry. I think this one snuck during the rebase, didn't mean to add it
Well, that sounds like a show-stopper :-p |
Sure does. Even the regular test takes 2.5 times as long :( There's three ways from here:
|
Signed-off-by: Vincent Breitmoser <look@my.amazin.horse>
@Valodim give it a try running the pypy tests with "--jit off" to check if JIT compilations are the ones causing the tests taking so long |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We can't really take this while it makes the CI runs take over 45 minutes. I suggest you remove the postgres job from travis.yml
, and we can investigate why it is so slow elsewhere.
Any news about this? |
seems to have stalled, so closing for now. We can reopen it if anyone wants to continue work. |
Following up to #2760 (and with #3098 fixed), this PR adds the simple required fix for the database initialization with adbapi to be able to run on pypy again.
I also added pypy35 to the tox and travis configs - let's see if that works :)
Signed-Off-By: Vincent Breitmoser look@my.amazin.horse