[SERVER-39928] Stop testing PyMongo with Python 2.6 in drivers-nightly Created: 01/Mar/19  Updated: 29/Oct/23  Resolved: 01/Aug/19

Status: Closed
Project: Core Server
Component/s: Testing Infrastructure
Affects Version/s: None
Fix Version/s: 4.2.0-rc5, 4.0.12, 3.4.23

Type: Bug Priority: Major - P3
Reporter: Shane Harvey Assignee: Ian Whalen (Inactive)
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Backports
Related
related to PYTHON-1467 Drop support for CPython 2.6 Closed
Backwards Compatibility: Fully Compatible
Operating System: ALL
Backport Requested:
v4.2, v4.0, v3.4
Participants:

 Description   

PyMongo removed support for Python 2.6 in PYTHON-1467:

[2019/02/28 15:00:41.750] Running auth tests over nossl with python /opt/python/2.6/bin/python
[2019/02/28 15:00:41.758] + /opt/python/2.6/bin/python -c 'import sys; print(sys.version)'
[2019/02/28 15:00:41.758] + COVERAGE_OR_PYTHON=/opt/python/2.6/bin/python
[2019/02/28 15:00:41.758] + COVERAGE_ARGS=
[2019/02/28 15:00:41.758] + '[' -n '' -a CPython = CPython ']'
[2019/02/28 15:00:41.758] + /opt/python/2.6/bin/python setup.py clean
[2019/02/28 15:00:41.772] Traceback (most recent call last):
[2019/02/28 15:00:41.772]   File "setup.py", line 9, in <module>
[2019/02/28 15:00:41.772]     raise RuntimeError("Python version >= 2.7 required.")
[2019/02/28 15:00:41.772] RuntimeError: Python version >= 2.7 required.

https://evergreen.mongodb.com/task/drivers_nightly_4.0_python_driver_linux__os~rhel62_auth~auth_ssl~nossl_python_linux~2.6_test_nightly_replica_set_c592fea5fa07a08a82c7e11f7cddbc0b17a98f40_19_02_28_18_36_08

We need to remove 2.6 from drivers-nightly-3.4, drivers-nightly-4.0, and drivers-nightly (drivers-nightly-3.6 already doesn't use Python 2.6).

CC: behackett



 Comments   
Comment by Githook User [ 01/Aug/19 ]

Author:

{'name': 'Ian Whalen', 'username': 'IanWhalen', 'email': 'ian@mongodb.com'}

Message: SERVER-39928 Stop testing with Python 2.6 in drivers nightly
Branch: v3.4
https://github.com/mongodb/mongo/commit/9b8053fe4efd19519c41f111f46cb41146227ee3

Comment by Githook User [ 31/Jul/19 ]

Author:

{'name': 'Ian Whalen', 'username': 'IanWhalen', 'email': 'ian@mongodb.com'}

Message: SERVER-39928 Stop testing with Python 2.6 in drivers nightly
Branch: v4.2
https://github.com/mongodb/mongo/commit/32589c52d876b7b641dbb740f8f9808593234960

Comment by Ian Whalen (Inactive) [ 30/Jul/19 ]

Just a note that this is not going into master to my knowledge. 4.0 commit is done. 4.2 and 3.4 are next.

Comment by Githook User [ 30/Jul/19 ]

Author:

{'name': 'Ian Whalen', 'username': 'IanWhalen', 'email': 'ian@mongodb.com'}

Message: SERVER-39928 Stop testing with Python 2.6 in drivers nightly
Branch: v4.0
https://github.com/mongodb/mongo/commit/914ad6d41fa5a5e79d602216b5aac2cedb60a26a

Comment by Ian Whalen (Inactive) [ 11/Mar/19 ]

can someone point me to where this code live? I'm happy to change and patch test this.

Comment by Bernie Hackett [ 11/Mar/19 ]

Since this build is using the python driver toolchain, just change 2.6 to 2.7 in the interpreter path (/opt/python/2.7/bin/python).

Comment by Bernie Hackett [ 04/Mar/19 ]

Indeed. The drivers-nightly project was created to catch driver and application breaking changes in server patch releases before the releases happen (I don't remember what the bug was that caused this project to happen, but I recall it was pretty bad). For that to work, somebody on the server team needs to be notified when tests fail.

Generated at Thu Feb 08 04:53:32 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.