[SERVER-71474] build_metrics tool fails to import jsonschema module Created: 18/Nov/22  Updated: 29/Oct/23  Resolved: 12/Jan/23

Status: Closed
Project: Core Server
Component/s: None
Affects Version/s: None
Fix Version/s: 6.3.0-rc0

Type: Bug Priority: Major - P3
Reporter: Ryan Egesdahl (Inactive) Assignee: Daniel Moody
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Related
related to SERVER-71268 Simplify Python requirement files Closed
Assigned Teams:
Server Development Platform
Backwards Compatibility: Fully Compatible
Operating System: ALL
Participants:

 Description   

When the build_metrics tool was rolled out, it depended on the jsonschema Python module. The requirement was put in etc/pip/components/build_metrics.req which is included by etc/pip/toolchain-requirements.txt. Unfortunately, this means that only Evergreen is actually adding the module to its venv - developers would instead use either etc/pip/compile-requirements.txt or etc/pip/dev-requirements.txt.

We already have SERVER-71268 as a larger effort to simplify the Python requirements files. In the meantime, we should add etc/pip/components/build_metrics.req to etc/pip/compile-requirements.txt and etc/pip/dev-requirements.txt so it does not interfere with developer workflows.



 Comments   
Comment by Githook User [ 11/Jan/23 ]

Author:

{'name': 'Daniel Moody', 'email': 'daniel.moody@mongodb.com', 'username': 'dmoody256'}

Message: SERVER-71474 added build_metrics requirements to dev-requirements.txt
Branch: master
https://github.com/mongodb/mongo/commit/bc99b88ac4aedb8dabef0d65daa72abe82004919

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