test(appsec): deflake api-security telemetry metrics integration tests#9303
Conversation
Overall package sizeSelf size: 6.71 MB Dependency sizes| name | version | self size | total size | |------|---------|-----------|------------| | import-in-the-middle | 3.3.1 | 122.62 kB | 438.86 kB | | opentracing | 0.14.7 | 194.81 kB | 194.81 kB | | dc-polyfill | 0.1.11 | 25.74 kB | 25.74 kB |🤖 This report was automatically generated by heaviest-objects-in-the-universe |
🎉 All green!🧪 All tests passed 🎯 Code Coverage (details) 🔗 Commit SHA: a1fce63 | Docs | Datadog PR Page | Give us feedback! |
BenchmarksBenchmark execution time: 2026-07-13 16:22:12 Comparing candidate commit a1fce63 in PR branch Found 0 performance improvements and 0 performance regressions! Performance is the same for 2311 metrics, 47 unstable metrics.
|
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## master #9303 +/- ##
==========================================
- Coverage 96.58% 96.58% -0.01%
==========================================
Files 918 918
Lines 121584 121584
Branches 21169 20802 -367
==========================================
- Hits 117436 117435 -1
- Misses 4148 4149 +1 Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
What does this PR do?
Fixes a flaky assertion in
packages/dd-trace/test/appsec/api-security-metrics.integration.spec.js("should emit api_security.request.schema with framework tag for sampled requests" and the analogous "missing_route" test).Motivation
This test has been flaky 3 times over the past week in CI: Flaky job
Additional Notes
Verified with 5 consecutive local runs, all green. No production code changes.