Skip to content

test(bun): expand runtime smoke coverage - #10048

Open
BridgeAR wants to merge 7 commits into
masterfrom
BridgeAR/2026-08-28-bun-1-4-smoke-tests
Open

test(bun): expand runtime smoke coverage#10048
BridgeAR wants to merge 7 commits into
masterfrom
BridgeAR/2026-08-28-bun-1-4-smoke-tests

Conversation

@BridgeAR

Copy link
Copy Markdown
Member

This updates Bun to 1.4.0 and expands the runtime smoke suite to verify trace export, startup telemetry, async context propagation, HTTP client/server parenting, and Express route instrumentation.

Bun remains pinned as an exact development dependency so Dependabot updates the runtime and lockfile together. CI reads that pin for its bootstrap and runs the existing test:core and test:shimmer scripts through the installed local binary.

Proxyquire-dependent suites remain excluded because Bun treats module._load as a no-op. Proxyquire therefore cannot intercept CommonJS child loads through its Node-specific loader hook.

Bun 1.4.0 provides enough Node.js compatibility to pin async scope propagation, HTTP parentage, and Express auto-instrumentation in the runtime job.
Each unit spec runs in a separate Bun process because shared tracer and timer state makes a combined Mocha process order-dependent.
Bun's --bun mode replaces node recursively, so the Bun job can use the same package-script definitions as Node.
npm exec installs a missing package automatically in CI, while the global bootstrap restated the Bun version. Read the bootstrap version from package.json and invoke the installed local binary so Dependabot owns one pin.
@dd-octo-sts

dd-octo-sts Bot commented Aug 28, 2026

Copy link
Copy Markdown
Contributor

Overall package size

Self size: 8.56 MB
Deduped: 9.23 MB
No deduping: 9.23 MB

Dependency sizes | name | version | self size | total size | |------|---------|-----------|------------| | import-in-the-middle | 3.4.0 | 127.33 kB | 447.04 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

@datadog-prod-us1-6

datadog-prod-us1-6 Bot commented Aug 28, 2026

Copy link
Copy Markdown

Tests

🎉 All green!

🧪 All tests passed
❄️ No new flaky tests detected

🎯 Code Coverage (details)
Patch Coverage: 100.00%
Overall Coverage: 98.60% (+0.00%)

This comment will be updated automatically if new data arrives.
🔗 Commit SHA: 744cbf4 | Docs | View more details | Give us feedback!

@pr-commenter

pr-commenter Bot commented Aug 28, 2026

Copy link
Copy Markdown

Benchmarks

Benchmark execution time: 2026-08-31 12:31:11

Comparing candidate commit 744cbf4 in PR branch BridgeAR/2026-08-28-bun-1-4-smoke-tests with baseline commit 6a922b4 in branch master.

📊 Benchmarking dashboard

Found 1 performance improvements and 0 performance regressions! Performance is the same for 2293 metrics, 16 unstable metrics.

Explanation

This is an A/B test comparing a candidate commit's performance against that of a baseline commit. Performance changes are noted in the tables below as:

  • 🟩 = significantly better candidate vs. baseline
  • 🟥 = significantly worse candidate vs. baseline

We compute a confidence interval (CI) over the relative difference of means between metrics from the candidate and baseline commits, considering the baseline as the reference.

If the CI is entirely outside the configured SIGNIFICANT_IMPACT_THRESHOLD (or the deprecated UNCONFIDENCE_THRESHOLD), the change is considered significant.

Feel free to reach out to #apm-benchmarking-platform on Slack if you have any questions.

More details about the CI and significant changes

You can imagine this CI as a range of values that is likely to contain the true difference of means between the candidate and baseline commits.

CIs of the difference of means are often centered around 0%, because often changes are not that big:

---------------------------------(------|---^--------)-------------------------------->
                              -0.6%    0%  0.3%     +1.2%
                                 |          |        |
         lower bound of the CI --'          |        |
sample mean (center of the CI) -------------'        |
         upper bound of the CI ----------------------'

As described above, a change is considered significant if the CI is entirely outside the configured SIGNIFICANT_IMPACT_THRESHOLD (or the deprecated UNCONFIDENCE_THRESHOLD).

For instance, for an execution time metric, this confidence interval indicates a significantly worse performance:

----------------------------------------|---------|---(---------^---------)---------->
                                       0%        1%  1.3%      2.2%      3.1%
                                                  |   |         |         |
       significant impact threshold --------------'   |         |         |
                      lower bound of CI --------------'         |         |
       sample mean (center of the CI) --------------------------'         |
                      upper bound of CI ----------------------------------'

scenario:encoders-0.4-events-native-20

  • 🟩 max_rss_usage [-10.686MB; -3.165MB] or [-7.513%; -2.225%]

Unstable benchmarks

These benchmarks have a confidence interval too wide to call a change; treat them as noise rather than signal.

scenario:appsec-appsec-enabled-20

  • unstable max_rss_usage [-31.077MB; +43.782MB] or [-16.579%; +23.356%]

scenario:appsec-iast-no-vulnerability-iast-enabled-default-config-20

  • unstable max_rss_usage [-17.731MB; +5.558MB] or [-7.653%; +2.399%]

scenario:debugger-line-probe-with-snapshot-minimal-24

  • unstable max_rss_usage [-9.325MB; +18.573MB] or [-3.751%; +7.470%]

scenario:dogstatsd-with-tags-20

  • unstable cpu_user_time [-135.699ms; +578.119ms] or [-2.822%; +12.023%]
  • unstable execution_time [-140.478ms; +585.635ms] or [-2.872%; +11.975%]
  • unstable throughput [-200256.468op/s; +50187.293op/s] or [-11.654%; +2.921%]

scenario:plugin-claude-agent-sdk-compact-stream-scan-26

  • unstable cpu_usage_percentage [-4.166%; +5.962%]

scenario:plugin-graphql-long-with-depth-off-20

  • unstable max_rss_usage [-7497.612KB; +7534.183KB] or [-5.984%; +6.013%]

scenario:plugin-graphql-long-with-depth-on-max-20

  • unstable cpu_user_time [-723.508ms; +486.411ms] or [-6.304%; +4.238%]
  • unstable execution_time [-741.211ms; +500.307ms] or [-6.333%; +4.274%]
  • unstable throughput [-3.032op/s; +4.146op/s] or [-4.403%; +6.021%]

scenario:plugin-pg-service-26

  • unstable cpu_user_time [-49.453ms; +61.822ms] or [-5.546%; +6.933%]
  • unstable execution_time [-49.334ms; +63.065ms] or [-5.504%; +7.036%]
  • unstable throughput [-408081.366op/s; +331786.327op/s] or [-6.018%; +4.893%]

scenario:plugin-pino-json-log-injection-24

  • unstable execution_time [-135.758ms; +188.034ms] or [-4.718%; +6.534%]

scenario:test-optimization-large-suite-20

  • unstable max_rss_usage [-4398.728KB; +6110.728KB] or [-5.501%; +7.642%]

@codecov

codecov Bot commented Aug 28, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 98.60%. Comparing base (6a922b4) to head (744cbf4).

Additional details and impacted files
@@           Coverage Diff            @@
##           master   #10048    +/-   ##
========================================
  Coverage   98.60%   98.60%            
========================================
  Files         992      992            
  Lines      149800   149800            
  Branches    12758    13096   +338     
========================================
  Hits       147704   147704            
  Misses       2096     2096            
Flag Coverage Δ
aiguard 63.39% <ø> (-0.03%) ⬇️
aiguard-integration 59.15% <ø> (ø)
apm-bucket-0 62.74% <ø> (-0.03%) ⬇️
apm-bucket-1 68.24% <ø> (-0.03%) ⬇️
apm-bucket-2 67.82% <ø> (-0.03%) ⬇️
apm-bucket-3 64.61% <ø> (-0.03%) ⬇️
apm-capabilities-tracing 62.60% <ø> (ø)
apm-integrations-aerospike 60.72% <ø> (-0.03%) ⬇️
apm-integrations-confluentinc-kafka-javascript 66.94% <ø> (-0.03%) ⬇️
apm-integrations-couchbase 61.24% <ø> (-0.03%) ⬇️
apm-integrations-http 66.49% <ø> (-0.03%) ⬇️
apm-integrations-kafkajs 67.53% <ø> (-0.03%) ⬇️
apm-integrations-next 64.09% <ø> (-0.03%) ⬇️
apm-integrations-prisma 62.09% <ø> (-0.03%) ⬇️
appsec 77.12% <ø> (-0.02%) ⬇️
appsec-express_fastify_graphql 73.53% <ø> (-0.02%) ⬇️
appsec-integration 49.51% <ø> (ø)
appsec-kafka_ldapjs_lodash 67.72% <ø> (-0.03%) ⬇️
appsec-mongodb-core_mongoose_mysql 70.92% <ø> (-0.02%) ⬇️
appsec-next 57.23% <ø> (-0.02%) ⬇️
appsec-node-serialize_passport_postgres 70.38% <ø> (-0.02%) ⬇️
appsec-sourcing_stripe_template 68.80% <ø> (-0.02%) ⬇️
debugger 69.39% <ø> (-0.03%) ⬇️
instrumentations-bucket-0 56.21% <ø> (-0.03%) ⬇️
instrumentations-bucket-1 64.43% <ø> (-0.03%) ⬇️
instrumentations-bucket-10 53.36% <ø> (-0.03%) ⬇️
instrumentations-bucket-11 65.88% <ø> (-0.03%) ⬇️
instrumentations-bucket-12 61.61% <ø> (-0.03%) ⬇️
instrumentations-bucket-13 56.41% <ø> (-0.03%) ⬇️
instrumentations-bucket-14 55.84% <ø> (-0.03%) ⬇️
instrumentations-bucket-2 57.06% <ø> (-0.03%) ⬇️
instrumentations-bucket-3 57.27% <ø> (-0.03%) ⬇️
instrumentations-bucket-4 64.04% <ø> (-0.03%) ⬇️
instrumentations-bucket-5 56.67% <ø> (-0.03%) ⬇️
instrumentations-bucket-6 58.25% <ø> (-0.02%) ⬇️
instrumentations-bucket-7 65.95% <ø> (-0.03%) ⬇️
instrumentations-bucket-8 63.15% <ø> (-0.04%) ⬇️
instrumentations-bucket-9 64.77% <ø> (-0.03%) ⬇️
instrumentations-instrumentation-couchbase 54.80% <ø> (-0.03%) ⬇️
instrumentations-instrumentation-zlib 55.89% <ø> (-0.03%) ⬇️
instrumentations-integration-esbuild 34.42% <ø> (ø)
llmobs-ai_anthropic_bedrock 66.92% <ø> (-0.02%) ⬇️
llmobs-bucket-1 65.02% <ø> (-0.02%) ⬇️
llmobs-openai 66.96% <ø> (-0.03%) ⬇️
llmobs-openai-agents_vertex-ai 64.15% <ø> (-0.02%) ⬇️
llmobs-sdk 76.49% <ø> (-0.03%) ⬇️
master-coverage 98.60% <ø> (?)
openfeature 59.77% <ø> (ø)
openfeature-unit 58.44% <ø> (-0.03%) ⬇️
platform-core_esbuild_instrumentations-misc 41.00% <ø> (-0.02%) ⬇️
platform-integration 64.99% <ø> (ø)
platform-shimmer_unit-guardrails_webpack 38.81% <ø> (-0.02%) ⬇️
plugins-browser-bunyan_bullmq_cassandra 66.52% <ø> (-0.03%) ⬇️
plugins-bucket-0 61.11% <ø> (-0.03%) ⬇️
plugins-bucket-1 58.31% <ø> (ø)
plugins-bucket-11 66.99% <ø> (-0.03%) ⬇️
plugins-bucket-18 66.42% <ø> (-0.03%) ⬇️
plugins-bucket-19 65.20% <ø> (-0.04%) ⬇️
plugins-bucket-20 67.03% <ø> (-0.03%) ⬇️
plugins-bucket-4 61.30% <ø> (-0.03%) ⬇️
plugins-cookie_cookie-parser_crypto 55.80% <ø> (-0.03%) ⬇️
plugins-fastify_fetch_fs 65.60% <ø> (-0.06%) ⬇️
plugins-generic-pool_google-cloud-pubsub_grpc 69.25% <ø> (-0.03%) ⬇️
plugins-handlebars_hapi_hono 63.84% <ø> (-0.03%) ⬇️
plugins-ioredis_knex_langgraph 61.82% <ø> (-0.03%) ⬇️
plugins-ldapjs_light-my-request_limitd-client 63.57% <ø> (-0.03%) ⬇️
plugins-lodash_mariadb_memcached 63.94% <ø> (-0.13%) ⬇️
plugins-moleculer_mongodb_mongodb-core 66.33% <ø> (-0.03%) ⬇️
plugins-mongoose_multer_mysql 64.14% <ø> (-0.03%) ⬇️
plugins-mysql2_nats_node-serialize 66.41% <ø> (-0.03%) ⬇️
plugins-opensearch_passport-http_pino 64.26% <ø> (-0.03%) ⬇️
plugins-postgres_process_pug 63.29% <ø> (-0.03%) ⬇️
plugins-redis_router_sequelize 66.91% <ø> (-0.03%) ⬇️
plugins-test-and-upstream-rhea_undici_url 66.24% <ø> (-0.03%) ⬇️
plugins-valkey_vm_winston 62.60% <ø> (-0.03%) ⬇️
plugins-ws 64.70% <ø> (-0.03%) ⬇️
profiling 66.41% <ø> (-0.03%) ⬇️
serverless-aws-sdk-aws-sdk 55.50% <ø> (-0.02%) ⬇️
serverless-aws-sdk-base-inject-field 55.36% <ø> (-0.03%) ⬇️
serverless-aws-sdk-bedrockruntime 58.40% <ø> (-0.03%) ⬇️
serverless-aws-sdk-client 60.22% <ø> (-0.03%) ⬇️
serverless-aws-sdk-dynamodb 59.28% <ø> (-0.03%) ⬇️
serverless-aws-sdk-eventbridge 57.74% <ø> (-0.02%) ⬇️
serverless-aws-sdk-kinesis 63.32% <ø> (-0.03%) ⬇️
serverless-aws-sdk-lambda 61.25% <ø> (-0.03%) ⬇️
serverless-aws-sdk-s3 59.33% <ø> (-0.03%) ⬇️
serverless-aws-sdk-serverless-peer-service 63.90% <ø> (-0.03%) ⬇️
serverless-aws-sdk-sns 64.22% <ø> (-0.03%) ⬇️
serverless-aws-sdk-sqs 64.68% <ø> (-0.03%) ⬇️
serverless-aws-sdk-stepfunctions 59.19% <ø> (-0.03%) ⬇️
serverless-aws-sdk-util 56.00% <ø> (-0.03%) ⬇️
serverless-bucket-0 57.94% <ø> (ø)
serverless-bucket-1 63.92% <ø> (-0.03%) ⬇️
test-optimization-cucumber 70.77% <ø> (+0.02%) ⬆️
test-optimization-cypress 64.93% <ø> (+0.08%) ⬆️
test-optimization-jest 72.30% <ø> (+<0.01%) ⬆️
test-optimization-mocha 72.22% <ø> (+0.06%) ⬆️
test-optimization-playwright-playwright-atr 59.93% <ø> (-0.03%) ⬇️
test-optimization-playwright-playwright-efd 60.56% <ø> (-0.03%) ⬇️
test-optimization-playwright-playwright-final-status 60.17% <ø> (-0.04%) ⬇️
test-optimization-playwright-playwright-impacted-tests 60.28% <ø> (+0.11%) ⬆️
test-optimization-playwright-playwright-reporting 61.26% <ø> (-0.04%) ⬇️
test-optimization-playwright-playwright-test-management 61.35% <ø> (-0.04%) ⬇️
test-optimization-playwright-playwright-test-span 59.96% <ø> (+0.01%) ⬆️
test-optimization-selenium 58.97% <ø> (-0.07%) ⬇️
test-optimization-testopt 61.91% <ø> (+0.06%) ⬆️
test-optimization-vitest 72.91% <ø> (+0.08%) ⬆️
test-optimization-vitest-browser 58.80% <ø> (-0.03%) ⬇️
test-optimization-webdriverio 65.68% <ø> (+0.04%) ⬆️

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

☔ View full report in Codecov by Harness.
📢 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.

@BridgeAR
BridgeAR marked this pull request as ready for review August 31, 2026 12:20
@BridgeAR
BridgeAR requested review from a team as code owners August 31, 2026 12:20
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.

1 participant