-
Notifications
You must be signed in to change notification settings - Fork 28
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix: #251 - Update regex library to prevent excessive backtracking #420
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #420 +/- ##
=======================================
Coverage 95.95% 95.95%
=======================================
Files 642 642
Lines 16977 16978 +1
=======================================
+ Hits 16290 16291 +1
Misses 687 687
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
Codecov ReportAll modified and coverable lines are covered by tests ✅
@@ Coverage Diff @@
## main #420 +/- ##
=======================================
Coverage 95.95% 95.95%
=======================================
Files 642 642
Lines 16977 16978 +1
=======================================
+ Hits 16290 16291 +1
Misses 687 687
Flags with carried forward coverage won't be shown. Click here to find out more.
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #420 +/- ##
=======================================
- Coverage 95.67 94.12 -1.55
=======================================
Files 764 763 -1
Lines 17563 18044 +481
=======================================
+ Hits 16802 16983 +181
- Misses 761 1061 +300
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
Purpose/Motivation
Replaces the areas using regex.match for user supplied regexes with google's re2Links to relevant tickets
#251
What does this PR do?
re2 is a "drop-in" replacement for Python's re package, so I simply changed the two instances we have user supplied regexes with re2 from re.In order to get the docker image to BUILD though, I had to do some "hacks" which were laid out in Failed build google-re2 on the alpine docker image google/re2#456. Explicitly, they were the following:abseil-cpp-devpy3-pybind11-devre2-devAdditionally, as called out in the above link, I had to use v1.0 instead of v1.1 of the library to get it to work.UPDATE (2/29/24): Once we got the re2 library working, we realized that there were two "big" issues with the re2 library
Legal Boilerplate
Look, I get it. The entity doing business as "Sentry" was incorporated in the State of Delaware in 2015 as Functional Software, Inc. In 2022 this entity acquired Codecov and as result Sentry is going to need some rights from me in order to utilize my contributions in this PR. So here's the deal: I retain all rights, title and interest in and to my contributions, and by keeping this boilerplate intact I confirm that Sentry can use, modify, copy, and redistribute my contributions, under Sentry's choice of terms.