-
-
Notifications
You must be signed in to change notification settings - Fork 234
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: race condition on StrID #1084
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #1084 +/- ##
==========================================
+ Coverage 82.72% 83.06% +0.34%
==========================================
Files 162 164 +2
Lines 9080 7671 -1409
==========================================
- Hits 7511 6372 -1139
+ Misses 1319 1044 -275
- Partials 250 255 +5
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
Since this is mainly used in logs maybe call |
Confirming that the added test can reproduce the reported race condition:
|
WIP.
Implements
StrID
at rule parsing time in order to fix race conditions introduced by the lazy pattern. It basically creates the variable alongside theID
variable creation.I'm still unsure about the
StrRuleID_
name. The goal is to explain that it is not always just the string ofID_
, but it is the "displayed" ID, so for chained rules, the displayed id is the parent id even if the inner rule (being an inner rule) has the0
value ID.Fixes #1083