ci: enahnce the junit file attribute script to handle nextest setup scripts#1574
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. |
Codecov Report❌ Patch coverage is Additional details and impacted files@@ Coverage Diff @@
## main #1574 +/- ##
==========================================
+ Coverage 70.83% 70.85% +0.01%
==========================================
Files 423 423
Lines 61862 61960 +98
==========================================
+ Hits 43823 43902 +79
- Misses 18039 18058 +19
🚀 New features to boost your workflow:
|
BenchmarksComparisonBenchmark execution time: 2026-02-17 16:47:09 Comparing candidate commit b5372ef in PR branch Found 0 performance improvements and 3 performance regressions! Performance is the same for 54 metrics, 2 unstable metrics. scenario:normalization/normalize_service/normalize_service/Data🐨dog🐶 繋がっ⛰てて
scenario:single_flag_killswitch/rules-based
CandidateCandidate benchmark detailsGroup 1
Group 2
Group 3
Group 4
Group 5
Group 6
Group 7
Group 8
Group 9
Group 10
Group 11
Group 12
Group 13
Group 14
Group 15
Group 16
Group 17
Group 18
Group 19
BaselineOmitted due to size. |
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
|
VianneyRuhlmann
left a comment
There was a problem hiding this comment.
I'm not very familiar with junit syntax but ltgm
| let package_name = Self::normalize(package_name); | ||
| let target_name = Self::normalize(target_name); | ||
| self.targets.insert((package_name, target_name), src_path); | ||
| } |
There was a problem hiding this comment.
nit: Can these function be merged since they look the same ?
There was a problem hiding this comment.
yeah, good idea. Fixed.
| fn insert_setup_script(&mut self, script_name: &str, src_path: PathBuf) { | ||
| // Don't normalize - script names can have hyphens and we want exact match | ||
| self.targets.insert( | ||
| ("@setup-script".to_string(), script_name.to_string()), |
There was a problem hiding this comment.
nit: might be good to define @setup-scriptt as a constant definition.
There was a problem hiding this comment.
good idea, I'm mad I didn't think of it first.
596404a to
b5372ef
Compare
|
/merge |
|
View all feedbacks in Devflow UI.
The expected merge time in
|
What does this PR do?
The script that runs after tests on CI to associate file names to tests in the junit.xml file was not handling the newly added nextest setup scripts, resulting in
prebuild-bin-testsintroduced in #1521 not having a file name, meaning test optimization couldn't associate a codeowner. This PR should fix that.Motivation
What inspired you to submit this pull request?
Additional Notes
Anything else we should know when reviewing?
How to test the change?
Describe here in detail how the change can be validated.