Skip to content

chore(test): Fixing iast overhead controller flaky tests#7607

Merged
uurien merged 10 commits intomasterfrom
ugaitz/fixing-overheadcontrollerflaky
Feb 25, 2026
Merged

chore(test): Fixing iast overhead controller flaky tests#7607
uurien merged 10 commits intomasterfrom
ugaitz/fixing-overheadcontrollerflaky

Conversation

@uurien
Copy link
Copy Markdown
Collaborator

@uurien uurien commented Feb 24, 2026

What does this PR do?

Tries to fix flaky test in overhead controller.
Changes the test check to do subscription to the agent before the execution of the request, seems that there is a race condition when the traces are received before the subscription. Now should be fixed.

Motivation

Additional Notes

CI with +200 success executions: https://github.com/DataDog/dd-trace-js/actions/runs/22357293612?pr=7607 (two iteration of +100)

@github-actions
Copy link
Copy Markdown
Contributor

github-actions bot commented Feb 24, 2026

Overall package size

Self size: 4.78 MB
Deduped: 5.63 MB
No deduping: 5.63 MB

Dependency sizes | name | version | self size | total size | |------|---------|-----------|------------| | import-in-the-middle | 2.0.6 | 81.92 kB | 816.75 kB | | dc-polyfill | 0.1.10 | 26.73 kB | 26.73 kB |

🤖 This report was automatically generated by heaviest-objects-in-the-universe

@codecov
Copy link
Copy Markdown

codecov bot commented Feb 24, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 80.30%. Comparing base (f370fb3) to head (475874a).
⚠️ Report is 3 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #7607      +/-   ##
==========================================
- Coverage   80.30%   80.30%   -0.01%     
==========================================
  Files         733      733              
  Lines       31561    31565       +4     
==========================================
+ Hits        25345    25348       +3     
- Misses       6216     6217       +1     
Flag Coverage Δ
aiguard-macos 38.96% <ø> (-0.08%) ⬇️
aiguard-ubuntu 39.08% <ø> (-0.08%) ⬇️
aiguard-windows 38.81% <ø> (-0.08%) ⬇️
apm-capabilities-tracing-macos 48.57% <ø> (-0.04%) ⬇️
apm-capabilities-tracing-ubuntu 48.64% <ø> (+<0.01%) ⬆️
apm-capabilities-tracing-windows 48.34% <ø> (+<0.01%) ⬆️
apm-integrations-child-process 38.53% <ø> (-0.08%) ⬇️
apm-integrations-couchbase-18 37.30% <ø> (-0.22%) ⬇️
apm-integrations-couchbase-eol 37.78% <ø> (-0.08%) ⬇️
apm-integrations-oracledb 37.76% <ø> (-0.08%) ⬇️
appsec-express 55.54% <ø> (-0.06%) ⬇️
appsec-fastify 51.86% <ø> (-0.06%) ⬇️
appsec-graphql 52.04% <ø> (-0.06%) ⬇️
appsec-kafka 44.48% <ø> (-0.12%) ⬇️
appsec-ldapjs 44.11% <ø> (-0.07%) ⬇️
appsec-lodash 43.80% <ø> (-0.07%) ⬇️
appsec-macos 58.62% <ø> (-0.06%) ⬇️
appsec-mongodb-core 48.86% <ø> (-0.07%) ⬇️
appsec-mongoose 49.66% <ø> (-0.07%) ⬇️
appsec-mysql 51.03% <ø> (-0.06%) ⬇️
appsec-node-serialize 43.31% <ø> (-0.07%) ⬇️
appsec-passport 47.80% <ø> (-0.07%) ⬇️
appsec-postgres 50.78% <ø> (-0.06%) ⬇️
appsec-sourcing 42.66% <ø> (-0.07%) ⬇️
appsec-template 43.48% <ø> (-0.07%) ⬇️
appsec-ubuntu 58.70% <ø> (-0.06%) ⬇️
appsec-windows 58.48% <ø> (-0.06%) ⬇️
instrumentations-instrumentation-bluebird 32.23% <ø> (-0.08%) ⬇️
instrumentations-instrumentation-body-parser 40.54% <ø> (-0.08%) ⬇️
instrumentations-instrumentation-child_process 37.85% <ø> (-0.08%) ⬇️
instrumentations-instrumentation-cookie-parser 34.27% <ø> (-0.07%) ⬇️
instrumentations-instrumentation-express 34.61% <ø> (-0.07%) ⬇️
instrumentations-instrumentation-express-mongo-sanitize 34.40% <ø> (-0.07%) ⬇️
instrumentations-instrumentation-express-session 40.16% <ø> (-0.08%) ⬇️
instrumentations-instrumentation-fs 31.84% <ø> (-0.08%) ⬇️
instrumentations-instrumentation-generic-pool 29.82% <ø> (+0.06%) ⬆️
instrumentations-instrumentation-http 39.88% <ø> (-0.08%) ⬇️
instrumentations-instrumentation-knex 32.24% <ø> (-0.08%) ⬇️
instrumentations-instrumentation-mongoose 33.40% <ø> (-0.07%) ⬇️
instrumentations-instrumentation-multer 40.28% <ø> (-0.08%) ⬇️
instrumentations-instrumentation-mysql2 38.32% <ø> (-0.08%) ⬇️
instrumentations-instrumentation-passport 44.11% <ø> (-0.07%) ⬇️
instrumentations-instrumentation-passport-http 43.78% <ø> (-0.07%) ⬇️
instrumentations-instrumentation-passport-local 44.33% <ø> (-0.07%) ⬇️
instrumentations-instrumentation-pg 37.74% <ø> (-0.08%) ⬇️
instrumentations-instrumentation-promise 32.16% <ø> (-0.08%) ⬇️
instrumentations-instrumentation-promise-js 32.17% <ø> (-0.08%) ⬇️
instrumentations-instrumentation-q 32.21% <ø> (-0.08%) ⬇️
instrumentations-instrumentation-url 32.13% <ø> (-0.08%) ⬇️
instrumentations-instrumentation-when 32.18% <ø> (-0.08%) ⬇️
llmobs-ai 41.36% <ø> (-0.08%) ⬇️
llmobs-anthropic 40.35% <ø> (-0.07%) ⬇️
llmobs-bedrock 39.28% <ø> (-0.07%) ⬇️
llmobs-google-genai 39.87% <ø> (-0.07%) ⬇️
llmobs-langchain 39.45% <ø> (-0.06%) ⬇️
llmobs-openai 44.16% <ø> (-0.07%) ⬇️
llmobs-vertex-ai 40.14% <ø> (-0.07%) ⬇️
platform-core 29.71% <ø> (ø)
platform-esbuild 32.89% <ø> (ø)
platform-instrumentations-misc 40.53% <ø> (ø)
platform-shimmer 36.14% <ø> (ø)
platform-unit-guardrails 31.27% <ø> (ø)
plugins-azure-event-hubs 24.02% <ø> (ø)
plugins-azure-service-bus 23.42% <ø> (ø)
plugins-bullmq 43.63% <ø> (-0.23%) ⬇️
plugins-cassandra 37.80% <ø> (-0.08%) ⬇️
plugins-cookie 25.08% <ø> (ø)
plugins-cookie-parser 24.87% <ø> (ø)
plugins-crypto 24.72% <ø> (ø)
plugins-dd-trace-api 38.39% <ø> (-0.08%) ⬇️
plugins-express-mongo-sanitize 25.04% <ø> (ø)
plugins-express-session 24.83% <ø> (ø)
plugins-fastify 42.30% <ø> (-0.07%) ⬇️
plugins-fetch 38.35% <ø> (-0.07%) ⬇️
plugins-fs 38.64% <ø> (-0.08%) ⬇️
plugins-generic-pool 24.06% <ø> (ø)
plugins-google-cloud-pubsub 45.48% <ø> (-0.07%) ⬇️
plugins-grpc 40.99% <ø> (-0.07%) ⬇️
plugins-handlebars 25.08% <ø> (ø)
plugins-hapi 40.17% <ø> (-0.22%) ⬇️
plugins-hono 40.44% <ø> (-0.08%) ⬇️
plugins-ioredis 38.44% <ø> (-0.08%) ⬇️
plugins-knex 24.80% <ø> (ø)
plugins-ldapjs 22.61% <ø> (ø)
plugins-light-my-request 24.48% <ø> (ø)
plugins-limitd-client 32.53% <ø> (-0.08%) ⬇️
plugins-lodash 24.13% <ø> (ø)
plugins-mariadb 39.52% <ø> (-0.08%) ⬇️
plugins-memcached 38.18% <ø> (-0.08%) ⬇️
plugins-microgateway-core 39.20% <ø> (-0.08%) ⬇️
plugins-moleculer 40.55% <ø> (-0.08%) ⬇️
plugins-mongodb 39.23% <ø> (-0.08%) ⬇️
plugins-mongodb-core 39.06% <ø> (-0.08%) ⬇️
plugins-mongoose 38.88% <ø> (-0.08%) ⬇️
plugins-multer 24.83% <ø> (ø)
plugins-mysql 39.20% <ø> (-0.08%) ⬇️
plugins-mysql2 39.30% <ø> (-0.08%) ⬇️
plugins-node-serialize 25.12% <ø> (ø)
plugins-opensearch 37.63% <ø> (-0.08%) ⬇️
plugins-passport-http 24.91% <ø> (ø)
plugins-postgres 35.72% <ø> (-0.07%) ⬇️
plugins-process 24.72% <ø> (ø)
plugins-pug 25.08% <ø> (ø)
plugins-redis 38.92% <ø> (-0.08%) ⬇️
plugins-router 43.05% <ø> (-0.08%) ⬇️
plugins-sequelize 23.66% <ø> (ø)
plugins-test-and-upstream-amqp10 38.51% <ø> (-0.08%) ⬇️
plugins-test-and-upstream-amqplib 43.93% <ø> (-0.08%) ⬇️
plugins-test-and-upstream-apollo 39.05% <ø> (-0.07%) ⬇️
plugins-test-and-upstream-avsc 38.73% <ø> (-0.08%) ⬇️
plugins-test-and-upstream-bunyan 33.83% <ø> (-0.08%) ⬇️
plugins-test-and-upstream-connect 40.84% <ø> (-0.08%) ⬇️
plugins-test-and-upstream-graphql 40.18% <ø> (-0.08%) ⬇️
plugins-test-and-upstream-koa 40.42% <ø> (-0.08%) ⬇️
plugins-test-and-upstream-protobufjs 38.96% <ø> (-0.08%) ⬇️
plugins-test-and-upstream-rhea 44.16% <ø> (-0.05%) ⬇️
plugins-undici 39.14% <ø> (-0.07%) ⬇️
plugins-url 24.72% <ø> (ø)
plugins-valkey 38.10% <ø> (-0.08%) ⬇️
plugins-vm 24.72% <ø> (ø)
plugins-winston 34.03% <ø> (-0.08%) ⬇️
plugins-ws 41.94% <ø> (-0.08%) ⬇️
profiling-macos 39.87% <ø> (-0.08%) ⬇️
profiling-ubuntu 40.00% <ø> (-0.08%) ⬇️
profiling-windows 41.22% <ø> (-0.08%) ⬇️
serverless-azure-functions-client 23.75% <ø> (ø)
serverless-azure-functions-eventhubs 23.75% <ø> (ø)
serverless-azure-functions-servicebus 23.75% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@pr-commenter
Copy link
Copy Markdown

pr-commenter bot commented Feb 24, 2026

Benchmarks

Benchmark execution time: 2026-02-25 09:15:41

Comparing candidate commit acd366e in PR branch ugaitz/fixing-overheadcontrollerflaky with baseline commit f370fb3 in branch master.

Found 0 performance improvements and 0 performance regressions! Performance is the same for 225 metrics, 35 unstable metrics.

@datadog-datadog-prod-us1-2

This comment has been minimized.

@uurien uurien force-pushed the ugaitz/fixing-overheadcontrollerflaky branch from dd209e0 to 2595587 Compare February 24, 2026 14:41
@uurien uurien marked this pull request as ready for review February 24, 2026 16:36
@uurien uurien requested a review from a team as a code owner February 24, 2026 16:36
BridgeAR
BridgeAR previously approved these changes Feb 25, 2026
Copy link
Copy Markdown
Member

@BridgeAR BridgeAR left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, just left two suggestions.

CarlesDD
CarlesDD previously approved these changes Feb 25, 2026
@uurien uurien dismissed stale reviews from CarlesDD and BridgeAR via e058432 February 25, 2026 09:05
@uurien uurien force-pushed the ugaitz/fixing-overheadcontrollerflaky branch from e058432 to acd366e Compare February 25, 2026 09:06
@uurien uurien enabled auto-merge (squash) February 25, 2026 09:11
@uurien uurien merged commit 07c6d02 into master Feb 25, 2026
792 checks passed
@uurien uurien deleted the ugaitz/fixing-overheadcontrollerflaky branch February 25, 2026 09:52
@dd-octo-sts dd-octo-sts bot mentioned this pull request Feb 26, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants