Upgrade to Mongo 3.6 - #505
Conversation
This commit upgrades the version of pymongo from 2.x to 3.x, removing usages to deprecated functions usage and fixing tests where necessary. This version of pymongo supports MongoDB 2.x all the way up to 4.2, and this ensures that the platform will be able to run on a supported MongoDB version in the next release.
OmarIthawi
left a comment
There was a problem hiding this comment.
@melvinsoft That's amazing! Please add the tests to tox.ini:
common/lib/xmodule/xmodule/modulestore/tests/test_mongo_call_count.py
common/lib/xmodule/xmodule/modulestore/tests/test_split_mongo_mongo_connection.py
lms/djangoapps/verify_student/management/commands/tests/test_send_verification_expiry_email.py
lms/djangoapps/verify_student/tests/test_services.py
|
Exciting. The commit notes say "This version of pymongo supports MongoDB 2.x all the way up to 4.2". We might even be able to move to 4.x in the foreseeable future. |
|
@OmarIthawi Thanks for the review, I added the test you requested but then I deleted one: But tests are still failing, new fails are related to Access Control Backend: I invested about three hours until I reached this point, can you please take a quick look? If not we should move forward without the new tests, and do it as a follow up work. What do you think? |
|
Thanks @melvinsoft! TL; DR;In general I think in tests for the Even in the best case scenario, we don't want all tests to run, maybe 99% at max, this is to make it possible for us to deviate from Open edX in a healthy way until we make plugins or APIs. Thank you again! |
OmarIthawi
left a comment
There was a problem hiding this comment.
Let's get those trailing slashes to avoid breaking the tests
5eb818d to
7babed6
Compare
OmarIthawi
left a comment
There was a problem hiding this comment.
Thanks @melvinsoft! I've fixed the tox.ini and cleaned the branch (I also did a push --force). I'll merge once tests passes.
Note that this might break devstack (right?) and we'd might to upgrade MongoDB there as far as I know.
|
@OmarIthawi Thanks for all the help here. I'm merging this now. |
|
@OmarIthawi Why do you think is gonna break devstack? because the |
No description provided.