[SERVER-65672] Fix python package pinning difficulties on macOS ARM Created: 14/Apr/22  Updated: 29/Oct/23  Resolved: 28/Apr/22

Status: Closed
Project: Core Server
Component/s: None
Affects Version/s: None
Fix Version/s: 5.3.2, 6.0.0-rc4, 6.0.0-rc8, 6.1.0-rc0

Type: Improvement Priority: Major - P3
Reporter: Andrew Morrow (Inactive) Assignee: Robert Guo (Inactive)
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Backports
Depends
Related
is related to SERVER-65071 Remove GRPC from Python requirements Closed
is related to SERVER-69569 Python scripts failing in Evergreen t... Closed
Backwards Compatibility: Fully Compatible
Backport Requested:
v6.0, v5.0
Sprint: Dev Platform 2022-04-18
Participants:
Linked BF Score: 165

 Comments   
Comment by Githook User [ 31/May/22 ]

Author:

{'name': 'Robert Guo', 'email': 'robert.guo@mongodb.com'}

Message: SERVER-65672 upgrade python packages to support 3.10
Branch: v6.0
https://github.com/mongodb/mongo/commit/86cb7ea3649b2190958a1645de9d3df4a529fc90

Comment by Richard Samuels (Inactive) [ 28/Apr/22 ]

With the backports in, the crytography issue should be resolved.

Comment by Githook User [ 26/Apr/22 ]

Author:

{'name': 'David Bradford', 'email': 'david.bradford@mongodb.com', 'username': 'dbradf'}

Message: SERVER-65672: pin crypography dependency

(cherry picked from commit 220004ef366d4ac10fc05a9c4a09224008889198)
Branch: v5.3
https://github.com/mongodb/mongo/commit/33b1a5fc0c11cdc5e70ed1a6f2b5c5cf3b8349b3

Comment by Githook User [ 26/Apr/22 ]

Author:

{'name': 'David Bradford', 'email': 'david.bradford@mongodb.com', 'username': 'dbradf'}

Message: SERVER-65672: pin crypography dependency

(cherry picked from commit 220004ef366d4ac10fc05a9c4a09224008889198)
Branch: v6.0
https://github.com/mongodb/mongo/commit/b28dbf46579c686cee59917c9ddded206862886f

Comment by Githook User [ 26/Apr/22 ]

Author:

{'name': 'David Bradford', 'email': 'david.bradford@mongodb.com', 'username': 'dbradf'}

Message: SERVER-65672: pin crypography dependency
Branch: master
https://github.com/mongodb/mongo/commit/220004ef366d4ac10fc05a9c4a09224008889198

Comment by Richard Samuels (Inactive) [ 26/Apr/22 ]

EDIT: Revert failed, because the problem was in commit_queue_validate.sh, where we update cryptography for JIRA communication.

PR below pins cryptography to 36.0.2 which should resolve this issue.

Original:

This change caused cryptography to no longer be unpinned on non ppc/390x platforms. We attempted to pull cryptography 37.0.0, which blocked the commit queue.

Suggested fix for the change that needs to be tested:

platform.req:

cryptography == 2.3; platform_machine == "s390x" or platform_machine == "ppc64le" # Needed for oauthlib to use RSAAlgorithm # Version locked - see SERVER-36618
cryptography == 36.0.2; platform_machine != "s390x" and not platform_machine != "ppc64le" # Needed for oauthlib to use RSAAlgorithm # Version locked - see SERVER-36618 

See slack thread for further context.

Comment by Githook User [ 24/Apr/22 ]

Author:

{'name': 'Robert Guo', 'email': 'robert.guo@mongodb.com'}

Message: SERVER-65672 upgrade python packages to support 3.10
Branch: master
https://github.com/mongodb/mongo/commit/a3a87f936f4f10ddd82be28e4e49fbb22bdf3b08

Generated at Thu Feb 08 06:03:18 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.