feat!: added regex-lite feature#1939
Conversation
Clippy Allow Annotation ReportComparing clippy allow annotations between branches:
Summary by Rule
Annotation Counts by File
Annotation Stats by Crate
About This ReportThis report tracks Clippy allow annotations for specific rules, showing how they've changed in this PR. Decreasing the number of these annotations generally improves code quality. |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: a8a6255c3b
ℹ️ About Codex in GitHub
Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".
Codecov Report❌ Patch coverage is Additional details and impacted files@@ Coverage Diff @@
## main #1939 +/- ##
==========================================
- Coverage 71.73% 71.73% -0.01%
==========================================
Files 434 434
Lines 70395 70454 +59
==========================================
+ Hits 50497 50538 +41
- Misses 19898 19916 +18
🚀 New features to boost your workflow:
|
🎉 All green!❄️ No new flaky tests detected 🎯 Code Coverage (details) 🔗 Commit SHA: 0b6f61c | Docs | Datadog PR Page | Give us feedback! |
Artifact Size Benchmark Reportaarch64-alpine-linux-musl
aarch64-unknown-linux-gnu
libdatadog-x64-windows
libdatadog-x86-windows
x86_64-alpine-linux-musl
x86_64-unknown-linux-gnu
|
2691365 to
3524857
Compare
d68ac17 to
008d103
Compare
…mon provided regex engine, which changes based on the feature chore: use shorthand and format fix: exclude datadog-ffe from this change. feat: remove env_filter and regex-automata docs: remove misleading doc
cb43b8c to
9e850dc
Compare
VianneyRuhlmann
left a comment
There was a problem hiding this comment.
few nits but LGTM
| @@ -4,10 +4,10 @@ | |||
| use crate::writers::{FileWriter, StdWriter}; | |||
There was a problem hiding this comment.
Are these changes linked to the regex changes ?
There was a problem hiding this comment.
Yes we needed to move out of EnvFilter to remove regex from transitive dependancies.
| [dependencies] | ||
| tracing = { version = "0.1", default-features = false, features = ["std"] } | ||
| tracing-subscriber = { version = "0.3.22", default-features = false, features = ["json", "env-filter"] } | ||
| tracing-subscriber = { version = "0.3.22", default-features = false, features = ["json"] } |
There was a problem hiding this comment.
Is this linked to the regex changes ?
There was a problem hiding this comment.
Yes, tracing subscriber used regex automata which depended on regex
|
/merge |
|
View all feedbacks in Devflow UI.
The expected merge time in
|
What does this PR do?
added regex-lite feature and changed code path to use libdd-common provided regex engine, which changes based on the feature.
Motivation
Improve binary size at the cost of performance.
Additional Notes
There is 1 place in tests in which we use regex crate directly, it's a dev dependancy, shouldn't be a problem.
How to test the change?
cargo metadata to make sure we don't have regex with the feature, look at binary size etc.