Skip to content

test(express): narrow loopback phase-sorting setup#9291

Merged
BridgeAR merged 2 commits into
masterfrom
BridgeAR/2026-07-10-fix-express-loopback-timeout
Jul 16, 2026
Merged

test(express): narrow loopback phase-sorting setup#9291
BridgeAR merged 2 commits into
masterfrom
BridgeAR/2026-07-10-fix-express-loopback-timeout

Conversation

@BridgeAR

Copy link
Copy Markdown
Member

Summary

The Express/LoopBack compatibility test loaded LoopBack's public entry even though it only exercises the Express phase sorter. That entry eagerly initializes the model, connector, and remoting stack, so cold module loading could push synchronous setup past Mocha's five-second limit. Load the owning server-app module directly while keeping the real LoopBack sorting and HTTP assertions.

@dd-octo-sts

dd-octo-sts Bot commented Jul 10, 2026

Copy link
Copy Markdown
Contributor

Overall package size

Self size: 6.76 MB
Deduped: 7.42 MB
No deduping: 7.42 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

@datadog-prod-us1-5

datadog-prod-us1-5 Bot commented Jul 10, 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: 96.61% (+0.00%)

This comment will be updated automatically if new data arrives.
🔗 Commit SHA: d61e175 | Docs | Datadog PR Page | Give us feedback!

@pr-commenter

pr-commenter Bot commented Jul 10, 2026

Copy link
Copy Markdown

Benchmarks

Benchmark execution time: 2026-07-14 21:18:35

Comparing candidate commit d61e175 in PR branch BridgeAR/2026-07-10-fix-express-loopback-timeout with baseline commit 1abef82 in branch master.

📊 Benchmarking dashboard

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

  • unstable execution_time [-216.671ms; +212.292ms] or [-8.170%; +8.005%]

scenario:appsec-appsec-enabled-26

  • unstable execution_time [-243.232ms; +237.574ms] or [-9.472%; +9.252%]

scenario:appsec-appsec-enabled-with-attacks-24

  • unstable execution_time [-157310.760µs; +157316.427µs] or [-5.094%; +5.094%]

scenario:appsec-appsec-enabled-with-attacks-26

  • unstable execution_time [-189555.833µs; +188742.367µs] or [-6.522%; +6.494%]

scenario:appsec-control-20

  • unstable execution_time [-124.461ms; +120.857ms] or [-7.605%; +7.384%]

scenario:appsec-control-24

  • unstable execution_time [-109145.080µs; +108659.214µs] or [-8.788%; +8.749%]

scenario:appsec-control-26

  • unstable execution_time [-125.895ms; +128.187ms] or [-10.157%; +10.342%]

scenario:appsec-iast-no-vulnerability-control-20

  • unstable execution_time [-12.665ms; +20.465ms] or [-4.836%; +7.814%]

scenario:appsec-iast-no-vulnerability-iast-enabled-always-active-20

  • unstable execution_time [-17.253ms; +12.030ms] or [-6.742%; +4.701%]

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

  • unstable execution_time [-17123.901µs; +18544.549µs] or [-6.624%; +7.174%]

scenario:appsec-iast-with-vulnerability-control-20

  • unstable execution_time [-28333.635µs; +29513.369µs] or [-5.152%; +5.367%]

scenario:appsec-iast-with-vulnerability-iast-enabled-always-active-20

  • unstable execution_time [-27.612ms; +30.171ms] or [-4.947%; +5.406%]

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

  • unstable execution_time [-35541.916µs; +34434.449µs] or [-6.420%; +6.220%]

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

  • unstable cpu_user_time [-3.352s; -0.002s] or [-35.867%; -0.016%]
  • unstable execution_time [-3.381s; +0.021s] or [-33.531%; +0.204%]
  • unstable instructions [-28.7G instructions; +0.0G instructions] or [-37.278%; +0.019%]
  • unstable throughput [-10.692op/s; +918.445op/s] or [-0.318%; +27.295%]

scenario:debugger-line-probe-with-snapshot-default-26

  • unstable cpu_user_time [-3.577s; +0.504s] or [-34.660%; +4.884%]
  • unstable execution_time [-3.660s; +0.536s] or [-33.042%; +4.843%]
  • unstable instructions [-31.6G instructions; +4.1G instructions] or [-36.549%; +4.785%]
  • unstable throughput [-111.621op/s; +701.479op/s] or [-3.628%; +22.799%]

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

  • unstable cpu_user_time [-2.112s; +4.408s] or [-23.880%; +49.843%]
  • unstable execution_time [-2.180s; +4.534s] or [-22.825%; +47.465%]
  • unstable instructions [-17.4G instructions; +37.4G instructions] or [-24.011%; +51.582%]
  • unstable max_rss_usage [-8.722MB; +18.079MB] or [-5.472%; +11.343%]
  • unstable throughput [-1204.973op/s; +594.140op/s] or [-34.172%; +16.849%]

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

  • unstable cpu_user_time [-2665.215ms; +4165.022ms] or [-27.966%; +43.704%]
  • unstable execution_time [-2819.880ms; +4294.690ms] or [-27.530%; +41.928%]
  • unstable instructions [-23.3G instructions; +36.8G instructions] or [-29.307%; +46.215%]
  • unstable max_rss_usage [-7.698MB; +13.366MB] or [-4.829%; +8.385%]
  • unstable throughput [-828.706op/s; +563.697op/s] or [-25.552%; +17.381%]

scenario:debugger-line-probe-without-snapshot-26

  • unstable cpu_user_time [-2.686s; +5.768s] or [-26.069%; +55.990%]
  • unstable execution_time [-2.797s; +5.922s] or [-25.319%; +53.599%]
  • unstable instructions [-23.8G instructions; +51.2G instructions] or [-27.482%; +59.176%]
  • unstable max_rss_usage [-7.139MB; +18.307MB] or [-4.399%; +11.280%]
  • unstable throughput [-1151.076op/s; +550.550op/s] or [-37.349%; +17.863%]

scenario:dogstatsd-with-tags-20

  • unstable cpu_user_time [-198.555ms; +428.659ms] or [-4.110%; +8.874%]
  • unstable execution_time [-203.580ms; +424.861ms] or [-4.146%; +8.653%]
  • unstable throughput [-150543.331op/s; +71653.573op/s] or [-8.812%; +4.194%]

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

  • unstable max_rss_usage [-23.833MB; +44.087MB] or [-6.311%; +11.675%]

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

  • unstable cpu_user_time [-701.905ms; +763.434ms] or [-5.468%; +5.947%]
  • unstable execution_time [-703.891ms; +769.297ms] or [-5.364%; +5.862%]
  • unstable throughput [-3.531op/s; +3.233op/s] or [-5.755%; +5.270%]

scenario:test-optimization-large-suite-20

  • unstable max_rss_usage [-6404.196KB; +6311.196KB] or [-7.753%; +7.641%]

@codecov

codecov Bot commented Jul 10, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 96.54%. Comparing base (1abef82) to head (d61e175).

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #9291      +/-   ##
==========================================
- Coverage   96.64%   96.54%   -0.11%     
==========================================
  Files         923      922       -1     
  Lines      122844   122791      -53     
  Branches    20989    21215     +226     
==========================================
- Hits       118723   118548     -175     
- Misses       4121     4243     +122     
Flag Coverage Δ
aiguard 53.65% <ø> (-0.05%) ⬇️
aiguard-integration 57.10% <ø> (ø)
apm-bucket-0 53.88% <ø> (-0.05%) ⬇️
apm-bucket-1 58.45% <ø> (-0.05%) ⬇️
apm-bucket-2 56.18% <ø> (-0.05%) ⬇️
apm-capabilities-tracing 60.62% <ø> (ø)
apm-integrations-aerospike 53.03% <ø> (-0.05%) ⬇️
apm-integrations-confluentinc-kafka-javascript 57.12% <ø> (-0.12%) ⬇️
apm-integrations-couchbase 53.37% <ø> (-0.05%) ⬇️
apm-integrations-http 58.04% <ø> (-0.05%) ⬇️
apm-integrations-kafkajs 57.83% <ø> (-0.05%) ⬇️
apm-integrations-next 54.26% <ø> (-0.05%) ⬇️
apm-integrations-prisma 54.26% <ø> (-0.05%) ⬇️
apm-integrations-tedious 53.12% <ø> (-0.06%) ⬇️
appsec 68.86% <ø> (-0.05%) ⬇️
appsec-express_fastify_graphql 65.73% <ø> (-0.04%) ⬇️
appsec-integration 51.95% <ø> (ø)
appsec-kafka_ldapjs_lodash 59.17% <ø> (-0.04%) ⬇️
appsec-mongodb-core_mongoose_mysql 62.40% <ø> (-0.04%) ⬇️
appsec-next 52.88% <ø> (-0.04%) ⬇️
appsec-node-serialize_passport_postgres 62.04% <ø> (-0.04%) ⬇️
appsec-sourcing_stripe_template 60.43% <ø> (-0.04%) ⬇️
debugger 65.70% <ø> (-0.02%) ⬇️
instrumentations-bucket-0 48.88% <ø> (-0.05%) ⬇️
instrumentations-bucket-1 55.08% <ø> (-0.05%) ⬇️
instrumentations-bucket-10 56.71% <ø> (-0.05%) ⬇️
instrumentations-bucket-11 48.87% <ø> (-0.05%) ⬇️
instrumentations-bucket-12 49.05% <ø> (-0.05%) ⬇️
instrumentations-bucket-13 48.81% <ø> (-0.05%) ⬇️
instrumentations-bucket-2 50.02% <ø> (-0.05%) ⬇️
instrumentations-bucket-3 53.99% <ø> (-0.05%) ⬇️
instrumentations-bucket-4 49.29% <ø> (-0.05%) ⬇️
instrumentations-bucket-5 53.16% <ø> (-0.05%) ⬇️
instrumentations-bucket-6 55.73% <ø> (-0.05%) ⬇️
instrumentations-bucket-7 53.63% <ø> (-0.05%) ⬇️
instrumentations-bucket-8 54.76% <ø> (-0.05%) ⬇️
instrumentations-bucket-9 56.19% <ø> (-0.04%) ⬇️
instrumentations-instrumentation-couchbase 48.27% <ø> (-0.05%) ⬇️
instrumentations-integration-esbuild 34.07% <ø> (ø)
llmobs-ai_anthropic_bedrock 57.77% <ø> (-0.04%) ⬇️
llmobs-bucket-1 57.11% <ø> (-0.04%) ⬇️
llmobs-openai 57.50% <ø> (-0.04%) ⬇️
llmobs-sdk 60.07% <ø> (-0.05%) ⬇️
llmobs-vertex-ai 54.31% <ø> (-0.05%) ⬇️
master-coverage 96.54% <ø> (?)
openfeature 54.70% <ø> (-0.01%) ⬇️
openfeature-unit 49.91% <ø> (-0.05%) ⬇️
platform-core_esbuild_instrumentations-misc 38.54% <ø> (-0.03%) ⬇️
platform-integration 62.33% <ø> (ø)
platform-shimmer_unit-guardrails_webpack 37.33% <ø> (-0.03%) ⬇️
plugins-bucket-0 53.26% <ø> (-0.04%) ⬇️
plugins-bucket-1 55.20% <ø> (ø)
plugins-bucket-11 57.53% <ø> (-0.04%) ⬇️
plugins-bucket-18 57.14% <ø> (-0.05%) ⬇️
plugins-bucket-19 55.44% <ø> (-0.05%) ⬇️
plugins-bucket-20 57.66% <ø> (-0.05%) ⬇️
plugins-bucket-4 53.87% <ø> (-0.05%) ⬇️
plugins-bullmq_cassandra_cookie 57.47% <ø> (-0.05%) ⬇️
plugins-cookie-parser_crypto_dd-trace-api 52.42% <ø> (-0.05%) ⬇️
plugins-fetch_fs_generic-pool 54.59% <ø> (-0.13%) ⬇️
plugins-google-cloud-pubsub_grpc_handlebars 59.92% <ø> (-0.05%) ⬇️
plugins-hapi_hono_ioredis 55.86% <ø> (-0.05%) ⬇️
plugins-jest_knex_langgraph 51.77% <ø> (-0.05%) ⬇️
plugins-ldapjs_light-my-request_limitd-client 53.51% <ø> (-0.07%) ⬇️
plugins-lodash_mariadb_memcached 54.30% <ø> (-0.05%) ⬇️
plugins-moleculer_mongodb_mongodb-core 57.40% <ø> (-0.05%) ⬇️
plugins-mongoose_multer_mysql 54.79% <ø> (-0.05%) ⬇️
plugins-mysql2_nats_node-serialize 56.33% <ø> (-0.05%) ⬇️
plugins-opensearch_passport-http_pino 55.19% <ø> (-0.05%) ⬇️
plugins-postgres_process_pug 54.38% <ø> (-0.05%) ⬇️
plugins-redis_router_sequelize 57.19% <ø> (-0.04%) ⬇️
plugins-test-and-upstream-rhea_undici_url 57.04% <ø> (-0.05%) ⬇️
plugins-valkey_vm_winston 53.94% <ø> (-0.13%) ⬇️
plugins-ws 54.93% <ø> (-0.04%) ⬇️
profiling 58.26% <ø> (-0.04%) ⬇️
serverless-aws-sdk-aws-sdk 50.78% <ø> (-0.04%) ⬇️
serverless-aws-sdk-bedrockruntime 50.75% <ø> (-0.05%) ⬇️
serverless-aws-sdk-client 52.09% <ø> (-0.05%) ⬇️
serverless-aws-sdk-dynamodb 51.83% <ø> (-0.02%) ⬇️
serverless-aws-sdk-eventbridge 46.46% <ø> (-0.05%) ⬇️
serverless-aws-sdk-kinesis 54.79% <ø> (-0.05%) ⬇️
serverless-aws-sdk-lambda 52.87% <ø> (-0.05%) ⬇️
serverless-aws-sdk-s3 51.59% <ø> (-0.05%) ⬇️
serverless-aws-sdk-serverless-peer-service 54.82% <ø> (-0.05%) ⬇️
serverless-aws-sdk-sns 55.54% <ø> (-0.05%) ⬇️
serverless-aws-sdk-sqs 56.02% <ø> (-0.09%) ⬇️
serverless-aws-sdk-stepfunctions 51.36% <ø> (-0.05%) ⬇️
serverless-aws-sdk-util 48.54% <ø> (-0.05%) ⬇️
serverless-bucket-0 55.24% <ø> (ø)
serverless-bucket-1 56.06% <ø> (-0.05%) ⬇️
test-optimization-cucumber 72.98% <ø> (+0.06%) ⬆️
test-optimization-cypress 66.30% <ø> (+0.01%) ⬆️
test-optimization-jest 74.28% <ø> (-0.05%) ⬇️
test-optimization-mocha 74.68% <ø> (+0.04%) ⬆️
test-optimization-playwright-playwright-atr 61.50% <ø> (-0.01%) ⬇️
test-optimization-playwright-playwright-efd 61.68% <ø> (ø)
test-optimization-playwright-playwright-final-status 61.66% <ø> (-0.01%) ⬇️
test-optimization-playwright-playwright-impacted-tests 61.60% <ø> (+0.38%) ⬆️
test-optimization-playwright-playwright-reporting 61.27% <ø> (-0.01%) ⬇️
test-optimization-playwright-playwright-test-management 62.23% <ø> (-0.12%) ⬇️
test-optimization-playwright-playwright-test-span 61.41% <ø> (-0.06%) ⬇️
test-optimization-selenium 60.71% <ø> (-0.11%) ⬇️
test-optimization-testopt ?
test-optimization-vitest 71.45% <ø> (+0.07%) ⬆️

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 added 2 commits July 14, 2026 23:01
The LoopBack compatibility specs only exercise its Express phase sorter, but the public entry eagerly loads the model, connector, and remoting stack. Cold module loading can push the synchronous setup hook past five seconds, so load the owner module directly and let the normal timeout guard regressions.
Real applications load LoopBack through its public entry once during bootstrap. Keep that path in the compatibility test and give its eager initialization ten seconds without repeating the work for every case.
@BridgeAR
BridgeAR force-pushed the BridgeAR/2026-07-10-fix-express-loopback-timeout branch from 24b3fb3 to d61e175 Compare July 14, 2026 21:04
@BridgeAR
BridgeAR marked this pull request as ready for review July 14, 2026 21:06
@BridgeAR
BridgeAR requested a review from a team as a code owner July 14, 2026 21:06
@BridgeAR
BridgeAR requested review from crysmags and removed request for a team July 14, 2026 21:06
@BridgeAR
BridgeAR merged commit f0edfec into master Jul 16, 2026
737 of 739 checks passed
@BridgeAR
BridgeAR deleted the BridgeAR/2026-07-10-fix-express-loopback-timeout branch July 16, 2026 00:14
dd-octo-sts Bot pushed a commit that referenced this pull request Jul 16, 2026
Real applications load LoopBack through its public entry once during bootstrap. Keep that path in the compatibility test and give its eager initialization ten seconds without repeating the work for every case.
@dd-octo-sts dd-octo-sts Bot mentioned this pull request Jul 16, 2026
dd-octo-sts Bot pushed a commit that referenced this pull request Jul 16, 2026
Real applications load LoopBack through its public entry once during bootstrap. Keep that path in the compatibility test and give its eager initialization ten seconds without repeating the work for every case.
@dd-octo-sts dd-octo-sts Bot mentioned this pull request Jul 16, 2026
juan-fernandez pushed a commit that referenced this pull request Jul 16, 2026
Real applications load LoopBack through its public entry once during bootstrap. Keep that path in the compatibility test and give its eager initialization ten seconds without repeating the work for every case.
juan-fernandez pushed a commit that referenced this pull request Jul 16, 2026
Real applications load LoopBack through its public entry once during bootstrap. Keep that path in the compatibility test and give its eager initialization ten seconds without repeating the work for every case.
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.

2 participants