Repository navigation
Upgrade mongoengine to the latest version (0.15.3) - #4291
Conversation
and contains a fix for regression in memory usage introduced in v0.13.0.
| mongoengine | ||
| # Our fork contains a fix / revert of a change which was introduced in v0.13.0 | ||
| # and introduces a large regression in memory usage | ||
| # See https://github.com/MongoEngine/mongoengine/pull/1833 |
m4dcoder
left a comment
There was a problem hiding this comment.
Need to understand our long term plan before I can agree here.
| eventlet==0.23.0 | ||
| flex==6.13.1 | ||
| git+https://github.com/Kami/logshipper.git@stackstorm_patched#egg=logshipper | ||
| git+https://github.com/StackStorm/mongoengine.git@stackstorm_patched#egg=mongoengine |
There was a problem hiding this comment.
I'm ok with using a fork only if our patch is going to merge upstream in the near term. But if this is indefinitely, this is harder to agree because we will have to maintain this fork moving forward.
There was a problem hiding this comment.
The problem is that I'm not really aware of a good upstream fix (besides reverting that change).
I wish there was a better way, but it doesn't look like there is one and the performance regression is sadly too large for us to simply ignore it.
"Good" news is that mongoengine has relatively slow release cadence so keeping our fork up to date shouldn't be too bad (keep in mind that we haven't upgraded mongoengine in our repo for 1 year because of that regression).
service won't start.
|
Finally managed to also get unit tests on Travis to also run under MongoDB 3.6 - https://travis-ci.org/StackStorm/st2/builds/412583451 I will go ahead and merge this into master. |
will allow us to debug various Python runner action issues.
|
It looks like tests run much slower under MongoDB 3.6. It might be related to this - https://jira.mongodb.org/browse/SERVER-34604 |
|
A lot of changes added afterwards is not what I reviewed really. And timing for Travis longest task is back returned to almost half-an-hour :/ |
|
@armab See comment above - #4291 (comment). Hopefully it will be resolved in a future 3.6.x release. |
This pull request updates
mongoengineto the latest version (0.15.3) from our fork (MongoEngine/mongoengine#1833) which contains a work-around for a large regression in memory usage introduced in mongoengine v0.13.0.I confirmed reverting that commit fixes an issue with increased memory usage.
Using our fork with a reverted commit:
Using upstream version:
Latest version will allow us to support MongoDB 3.6.
When / if mongoengine merges a patch for that issue upstream, we should move away from our fork.