Skip to content

test(appsec): replace axios with fetch - #10076

Draft
BridgeAR wants to merge 3 commits into
masterfrom
BridgeAR/2026-08-31-axios-appsec-tests
Draft

test(appsec): replace axios with fetch#10076
BridgeAR wants to merge 3 commits into
masterfrom
BridgeAR/2026-08-31-axios-appsec-tests

Conversation

@BridgeAR

Copy link
Copy Markdown
Member

Fetch resolves when response headers arrive. The test helpers consume each response body before reporting completion, which preserves the existing request timing.

Fetch resolves when response headers arrive. The test helpers consume each response body before reporting completion, which preserves the existing request timing.
@dd-octo-sts

dd-octo-sts Bot commented Aug 31, 2026

Copy link
Copy Markdown
Contributor

Overall package size

Self size: 8.58 MB
Deduped: 9.25 MB
No deduping: 9.25 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-datadog-prod-us1

datadog-datadog-prod-us1 Bot commented Aug 31, 2026

Copy link
Copy Markdown

Tests

All CI checks and tests passed. Datadog automation helped this PR pass.

🎉 All green!

🧪 All tests passed
❄️ No new flaky tests detected

🔄 Datadog retried 1 test - 1 passed on retry View in Datadog

🎯 Code Coverage (details)
Patch Coverage: 100.00%
Overall Coverage: 98.47% (-0.14%)

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

Fetch resolves when response headers arrive. Each helper consumes the response body before assertions run, which preserves the existing request timing.
@pr-commenter

pr-commenter Bot commented Aug 31, 2026

Copy link
Copy Markdown

Benchmarks

Benchmark execution time: 2026-08-31 15:42:55

Comparing candidate commit 75dcf6e in PR branch BridgeAR/2026-08-31-axios-appsec-tests with baseline commit 847198b in branch master.

📊 Benchmarking dashboard

Found 0 performance improvements and 0 performance regressions! Performance is the same for 2303 metrics, 7 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 ----------------------------------'

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 [-19.659MB; +32.797MB] or [-11.210%; +18.702%]

scenario:dogstatsd-with-tags-20

  • unstable cpu_user_time [-362.585ms; +356.333ms] or [-7.257%; +7.132%]
  • unstable execution_time [-367.813ms; +353.580ms] or [-7.243%; +6.962%]
  • unstable throughput [-117232.332op/s; +127525.502op/s] or [-7.095%; +7.718%]

scenario:llmobs-encode-unicode-mixed-20

  • unstable max_rss_usage [-9269.546KB; +9153.546KB] or [-12.184%; +12.032%]

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

  • unstable cpu_usage_percentage [-7.202%; +3.114%]

scenario:test-optimization-large-suite-20

  • unstable max_rss_usage [-5595.137KB; +4895.470KB] or [-6.913%; +6.048%]

Fetch resolves when response headers arrive. Each helper consumes the response body before the test proceeds, preserving the prior request completion timing.
@codecov

codecov Bot commented Aug 31, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 98.46%. Comparing base (847198b) to head (75dcf6e).
⚠️ Report is 1 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff             @@
##           master   #10076      +/-   ##
==========================================
- Coverage   98.61%   98.46%   -0.15%     
==========================================
  Files         993      993              
  Lines      150186   150186              
  Branches    13129    12826     -303     
==========================================
- Hits       148100   147885     -215     
- Misses       2086     2301     +215     
Flag Coverage Δ
aiguard 63.42% <ø> (-0.11%) ⬇️
aiguard-integration 59.19% <ø> (ø)
apm-bucket-0 62.77% <ø> (-0.03%) ⬇️
apm-bucket-1 68.24% <ø> (-0.03%) ⬇️
apm-bucket-2 67.81% <ø> (-0.03%) ⬇️
apm-bucket-3 64.63% <ø> (-0.03%) ⬇️
apm-capabilities-tracing 62.90% <ø> (ø)
apm-integrations-aerospike 60.76% <ø> (-0.03%) ⬇️
apm-integrations-confluentinc-kafka-javascript 66.91% <ø> (-0.07%) ⬇️
apm-integrations-couchbase 61.28% <ø> (-0.03%) ⬇️
apm-integrations-http 66.49% <ø> (-0.03%) ⬇️
apm-integrations-kafkajs 67.53% <ø> (-0.03%) ⬇️
apm-integrations-next 64.11% <ø> (-0.03%) ⬇️
apm-integrations-prisma 62.12% <ø> (-0.03%) ⬇️
appsec 77.08% <ø> (-0.02%) ⬇️
appsec-express_fastify_graphql 73.51% <ø> (-0.02%) ⬇️
appsec-integration 49.55% <ø> (ø)
appsec-kafka_ldapjs_lodash 67.72% <ø> (-0.03%) ⬇️
appsec-mongodb-core_mongoose_mysql 70.90% <ø> (-0.02%) ⬇️
appsec-next 57.27% <ø> (-0.02%) ⬇️
appsec-node-serialize_passport_postgres 70.37% <ø> (-0.02%) ⬇️
appsec-sourcing_stripe_template 68.79% <ø> (-0.02%) ⬇️
debugger 69.39% <ø> (-0.03%) ⬇️
instrumentations-bucket-0 56.28% <ø> (-0.03%) ⬇️
instrumentations-bucket-1 64.44% <ø> (-0.03%) ⬇️
instrumentations-bucket-10 53.44% <ø> (-0.03%) ⬇️
instrumentations-bucket-11 65.89% <ø> (-0.03%) ⬇️
instrumentations-bucket-12 61.65% <ø> (-0.03%) ⬇️
instrumentations-bucket-13 56.47% <ø> (-0.03%) ⬇️
instrumentations-bucket-14 55.91% <ø> (-0.03%) ⬇️
instrumentations-bucket-2 57.12% <ø> (-0.03%) ⬇️
instrumentations-bucket-3 57.33% <ø> (-0.03%) ⬇️
instrumentations-bucket-4 64.06% <ø> (-0.03%) ⬇️
instrumentations-bucket-5 56.73% <ø> (-0.03%) ⬇️
instrumentations-bucket-6 58.29% <ø> (-0.02%) ⬇️
instrumentations-bucket-7 65.96% <ø> (-0.03%) ⬇️
instrumentations-bucket-8 63.18% <ø> (-0.04%) ⬇️
instrumentations-bucket-9 64.79% <ø> (-0.03%) ⬇️
instrumentations-instrumentation-couchbase 54.88% <ø> (-0.03%) ⬇️
instrumentations-instrumentation-zlib 55.96% <ø> (-0.03%) ⬇️
instrumentations-integration-esbuild 34.46% <ø> (ø)
llmobs-ai_anthropic_bedrock 66.92% <ø> (-0.02%) ⬇️
llmobs-bucket-1 65.03% <ø> (-0.02%) ⬇️
llmobs-openai 66.96% <ø> (-0.03%) ⬇️
llmobs-openai-agents_vertex-ai 64.16% <ø> (-0.02%) ⬇️
llmobs-sdk 76.44% <ø> (-0.03%) ⬇️
master-coverage 98.46% <ø> (?)
openfeature 59.81% <ø> (ø)
openfeature-unit 58.49% <ø> (-0.03%) ⬇️
platform-core_esbuild_instrumentations-misc 41.07% <ø> (-0.02%) ⬇️
platform-integration 65.06% <ø> (ø)
platform-shimmer_unit-guardrails_webpack 38.89% <ø> (-0.02%) ⬇️
plugins-browser-bunyan_bullmq_cassandra 66.53% <ø> (-0.03%) ⬇️
plugins-bucket-0 61.14% <ø> (-0.03%) ⬇️
plugins-bucket-1 58.36% <ø> (-0.02%) ⬇️
plugins-bucket-11 67.00% <ø> (-0.03%) ⬇️
plugins-bucket-18 62.97% <ø> (-3.48%) ⬇️
plugins-bucket-19 66.74% <ø> (+1.50%) ⬆️
plugins-bucket-20 69.46% <ø> (+2.40%) ⬆️
plugins-bucket-4 61.34% <ø> (-0.03%) ⬇️
plugins-cookie_cookie-parser_crypto 55.87% <ø> (-0.03%) ⬇️
plugins-fastify_fetch_fs 65.64% <ø> (+0.01%) ⬆️
plugins-generic-pool_google-cloud-pubsub_grpc 69.24% <ø> (-0.03%) ⬇️
plugins-handlebars_hapi_hono 63.86% <ø> (-0.03%) ⬇️
plugins-ioredis_knex_langgraph 61.85% <ø> (-0.03%) ⬇️
plugins-ldapjs_light-my-request_limitd-client 63.59% <ø> (-0.03%) ⬇️
plugins-lodash_mariadb_memcached 64.06% <ø> (-0.03%) ⬇️
plugins-moleculer_mongodb_mongodb-core 66.33% <ø> (-0.03%) ⬇️
plugins-mongoose_multer_mysql 64.16% <ø> (-0.03%) ⬇️
plugins-mysql2_nats_node-serialize 66.41% <ø> (-0.03%) ⬇️
plugins-opensearch_passport-http_pino 64.28% <ø> (-0.03%) ⬇️
plugins-postgres_process_pug 63.31% <ø> (-0.03%) ⬇️
plugins-redis_router_sequelize 66.91% <ø> (-0.03%) ⬇️
plugins-test-and-upstream-rhea_undici_url ?
plugins-undici_url_valkey 62.70% <ø> (?)
plugins-valkey_vm_winston ?
plugins-vm_winston_ws 65.00% <ø> (?)
plugins-ws ?
profiling 66.47% <ø> (-0.03%) ⬇️
serverless-aws-sdk-aws-sdk 55.56% <ø> (-0.02%) ⬇️
serverless-aws-sdk-base-inject-field 55.44% <ø> (-0.03%) ⬇️
serverless-aws-sdk-bedrockruntime 58.45% <ø> (-0.03%) ⬇️
serverless-aws-sdk-client 60.26% <ø> (-0.03%) ⬇️
serverless-aws-sdk-dynamodb 59.32% <ø> (-0.04%) ⬇️
serverless-aws-sdk-eventbridge 57.78% <ø> (-0.02%) ⬇️
serverless-aws-sdk-kinesis 63.34% <ø> (-0.03%) ⬇️
serverless-aws-sdk-lambda 61.28% <ø> (-0.03%) ⬇️
serverless-aws-sdk-s3 59.38% <ø> (-0.03%) ⬇️
serverless-aws-sdk-serverless-peer-service 63.92% <ø> (-0.03%) ⬇️
serverless-aws-sdk-sns 64.24% <ø> (-0.03%) ⬇️
serverless-aws-sdk-sqs 64.70% <ø> (-0.03%) ⬇️
serverless-aws-sdk-stepfunctions 59.23% <ø> (-0.03%) ⬇️
serverless-aws-sdk-util 56.07% <ø> (-0.03%) ⬇️
serverless-bucket-0 57.99% <ø> (ø)
serverless-bucket-1 63.94% <ø> (-0.03%) ⬇️
test-optimization-cucumber 70.76% <ø> (+<0.01%) ⬆️
test-optimization-cypress 64.95% <ø> (+0.05%) ⬆️
test-optimization-jest 72.29% <ø> (+<0.01%) ⬆️
test-optimization-mocha 72.20% <ø> (+0.04%) ⬆️
test-optimization-playwright-playwright-atr 59.94% <ø> (-0.07%) ⬇️
test-optimization-playwright-playwright-efd 60.58% <ø> (-0.06%) ⬇️
test-optimization-playwright-playwright-final-status 60.19% <ø> (-0.06%) ⬇️
test-optimization-playwright-playwright-impacted-tests 60.30% <ø> (+0.08%) ⬆️
test-optimization-playwright-playwright-reporting 61.28% <ø> (-0.06%) ⬇️
test-optimization-playwright-playwright-test-management 61.50% <ø> (+0.07%) ⬆️
test-optimization-playwright-playwright-test-span 59.98% <ø> (-0.01%) ⬇️
test-optimization-selenium 58.99% <ø> (-0.09%) ⬇️
test-optimization-testopt 61.93% <ø> (+0.06%) ⬆️
test-optimization-vitest 72.90% <ø> (+0.06%) ⬆️
test-optimization-vitest-browser 58.82% <ø> (-0.06%) ⬇️
test-optimization-webdriverio 65.69% <ø> (+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.

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