[SERVER-18229] Smoke.py with PyMongo 3.0.1 fails to run certain tests Created: 27/Apr/15 Updated: 19/Sep/15 Resolved: 28/Apr/15 |
|
| Status: | Closed |
| Project: | Core Server |
| Component/s: | Testing Infrastructure |
| Affects Version/s: | 3.1.1 |
| Fix Version/s: | 2.6.10, 3.0.3, 3.1.2 |
| Type: | Bug | Priority: | Major - P3 |
| Reporter: | Ernie Hershey | Assignee: | Sam Kleinman (Inactive) |
| Resolution: | Done | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Issue Links: |
|
||||||||
| Backwards Compatibility: | Fully Compatible | ||||||||
| Operating System: | ALL | ||||||||
| Backport Completed: | |||||||||
| Sprint: | BUILD 3 05/15/15 | ||||||||
| Participants: | |||||||||
| Description |
|
The error:
And I verified by hand the smoke.py command from the failed test with the same binaries and artifacts from MCI on a spawnhost with the default pymongo fails in the same way, after running easy_install --upgrade pymongo, it fails in the same way, and after running easy_install "pymongo<3.0" it runs to completion. I'm not sure if this is a bug in the tests, in smoke.py, or in pymongo. |
| Comments |
| Comment by Githook User [ 28/Apr/15 ] | ||
|
Author: {u'username': u'tychoish', u'name': u'Sam Kleinman', u'email': u'samk@10gen.com'}Message: | ||
| Comment by Githook User [ 28/Apr/15 ] | ||
|
Author: {u'username': u'tychoish', u'name': u'Sam Kleinman', u'email': u'samk@10gen.com'}Message: | ||
| Comment by Githook User [ 28/Apr/15 ] | ||
|
Author: {u'username': u'tychoish', u'name': u'Sam Kleinman', u'email': u'samk@10gen.com'}Message: | ||
| Comment by Bernie Hackett [ 28/Apr/15 ] | ||
|
Actually, this can be fixed easily and work in either pymongo branch. Change this:
to this:
| ||
| Comment by Bernie Hackett [ 28/Apr/15 ] | ||
|
This is an incompatibility between smoke.py and PyMongo 3.x. The problem is here: https://github.com/mongodb/mongo/blob/master/buildscripts/smoke.py#L275 PyMongo 3.0 implements the CRUD spec, which changed the 'fields' parameter to 'projection'. There are three options to move forward:
PyMongo 2.9 is a migration path release that backports a number of things from 3.0 to allow writing libraries that can work with 2.x or 3.x. For this ticket |