[SERVER-59639] re-enable the use of regex in errorcodes.py Created: 27/Aug/21  Updated: 06/Dec/22  Resolved: 29/Sep/21

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

Type: Improvement Priority: Major - P3
Reporter: Benety Goh Assignee: Backlog - Service Architecture
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Related
is related to SERVER-30468 Speed up checking for duplicate error... Closed
is related to SERVER-59575 fix log ID in TimestampMonitor Closed
Assigned Teams:
Service Arch
Participants:
Linked BF Score: 172

 Description   

The errorcodes.py script uses the regex library to speed up its operation but falls back to the built-in re if regex is unavailable. This library was temporarily disabled due to a Python environment issue in the CI system. Once the CI system is able to support the use of the regex library in Python scripts again, it would be nice to re-enable this library for the error code checking.



 Comments   
Comment by Matthew Saltz (Inactive) [ 29/Sep/21 ]

Gotcha, thanks. Looks fine to me, going to close

Comment by Githook User [ 28/Aug/21 ]

Author:

{'name': 'Benety Goh', 'email': 'benety@mongodb.com', 'username': 'benety'}

Message: SERVER-59575 SERVER-59639 re-enable regex in errorcodes.py

This reverts commit 5b78474fa9d0df4aaeab73f4384d3ab8a026dac8.
Branch: master
https://github.com/mongodb/mongo/commit/7d155b747d0e867a10644b69093cd1f9bc809bc2

Comment by Benety Goh [ 28/Aug/21 ]

The CI virtualenv was pulling in a version (2021.8.27) of the regex library specified in etc/pip/components/compile.req that has since been yanked.

Generated at Thu Feb 08 05:47:44 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.