Skip to content

fix(tedious): run BulkLoad row-stream listeners in the registration context#9023

Closed
BridgeAR wants to merge 1 commit into
masterfrom
BridgeAR/2026-06-22-tedious-bulkload-context
Closed

fix(tedious): run BulkLoad row-stream listeners in the registration context#9023
BridgeAR wants to merge 1 commit into
masterfrom
BridgeAR/2026-06-22-tedious-bulkload-context

Conversation

@BridgeAR

@BridgeAR BridgeAR commented Jun 22, 2026

Copy link
Copy Markdown
Member

Summary

A listener added to bulkLoad.getRowStream() ran in the async context that emits the stream event, not the one active when it was registered, so a caller's finish/error/data handler lost the span it was registered under. Each caller listener is now bound to its registration context (tedious' internal listeners attach before getRowStream returns, so only caller listeners are bound).

Two tedious-specific test adaptations ride along: shard the CI job by major range (19 majors blow the step budget), and gate the getRowStream streaming test below major 13 (deprecated there, removed in 14) while calling connect() only on >=10.

Independent of the resolver rework — PACKAGE_VERSION_RANGE sharding and the conditional gates run on the current install path; the new majors simply are not exercised until the matrix widens.

Test plan

  • SERVICES=mssql PLUGINS=tedious matrix is green across all three shards.
  • The pre-existing "run the BulkLoad stream event listeners in the parent context" test passes on a >=4.2 <13 shard.

Note

Binding a user listener to its registration context is intrinsically an AsyncLocalStorage operation; a diagnostic channel carries instrumentation events and cannot rebind a foreign listener. The duplicate of this wrap pattern in ws/electron/ldapjs could later fold into a shared bindEmitterListeners helper.

@dd-octo-sts

dd-octo-sts Bot commented Jun 22, 2026

Copy link
Copy Markdown
Contributor

Overall package size

Self size: 6.28 MB
Deduped: 7.35 MB
No deduping: 7.35 MB

Dependency sizes | name | version | self size | total size | |------|---------|-----------|------------| | import-in-the-middle | 3.2.0 | 104.26 kB | 843.44 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-3

datadog-prod-us1-3 Bot commented Jun 22, 2026

Copy link
Copy Markdown

Pipelines  Tests

Fix all issues with BitsAI

⚠️ Warnings

🚦 13 Pipeline jobs failed

All Green | all-green   View in Datadog   GitHub Actions

🧪 12 Tests failed

Plugin google-cloud-pubsub with @google-cloud/pubsub &gt;=1.2 (2.19.4) without configuration createTopic should be instrumented when using the internal API from createTopic   View in Datadog
Channel credentials must be a ChannelCredentials object

TypeError: Channel credentials must be a ChannelCredentials object
    at new ChannelImplementation (versions/@google-cloud/pubsub@2/node_modules/@grpc/grpc-js/build/src/channel.js:81:19)
    at new Client (versions/@google-cloud/pubsub@2/node_modules/@grpc/grpc-js/build/src/client.js:62:36)
    at new ServiceClientImpl (versions/@google-cloud/pubsub@2/node_modules/@grpc/grpc-js/build/src/make-client.js:58:5)
    at GrpcClient.createStub (versions/@google-cloud/pubsub@2/node_modules/google-gax/build/src/grpc.js:334:22)
with knex &gt;=0.8.0 (1.0.7) ESM is instrumented loaded with default from ESM   View in Datadog
Process exited with status code 1.

Error: Process exited with status code 1.
    at ChildProcess.&lt;anonymous&gt; (integration-tests/helpers/index.js:238:16)
    at Object.onceWrapper (node:events:632:26)
    at ChildProcess.emit (node:events:517:28)
    at ChildProcess._handle.onexit (node:internal/child_process:292:12)
    at Process.callbackTrampoline (node:internal/async_hooks:128:17)
View all 12 test failures

APM Integrations | aerospike (ce-6.4.0.3, node-18)   View in Datadog   GitHub Actions

APM Integrations | knex   View in Datadog   GitHub Actions

View all 13 failed jobs.

ℹ️ Info

No other issues found (see more)

❄️ No new flaky tests detected

Useful? React with 👍 / 👎

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

@codecov

codecov Bot commented Jun 22, 2026

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 90.90909% with 1 line in your changes missing coverage. Please review.
✅ Project coverage is 90.06%. Comparing base (2da11d0) to head (dee3e82).
⚠️ Report is 2 commits behind head on master.

Files with missing lines Patch % Lines
packages/datadog-instrumentations/src/tedious.js 90.90% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master    #9023      +/-   ##
==========================================
- Coverage   93.43%   90.06%   -3.37%     
==========================================
  Files         879      879              
  Lines       50450    50461      +11     
  Branches     9930     9933       +3     
==========================================
- Hits        47137    45449    -1688     
- Misses       3313     5012    +1699     
Flag Coverage Δ
aiguard-integration-active 41.63% <ø> (ø)
aiguard-integration-latest 41.64% <ø> (ø)
aiguard-integration-maintenance 41.72% <ø> (+<0.01%) ⬆️
aiguard-macos 34.48% <ø> (-0.08%) ⬇️
aiguard-ubuntu 34.63% <ø> (-0.08%) ⬇️
aiguard-windows ?
apm-capabilities-tracing-macos 48.15% <ø> (-0.01%) ⬇️
apm-capabilities-tracing-ubuntu-active 48.15% <ø> (ø)
apm-capabilities-tracing-ubuntu-latest 48.15% <ø> (-0.18%) ⬇️
apm-capabilities-tracing-ubuntu-maintenance ?
apm-capabilities-tracing-ubuntu-oldest 48.38% <ø> (ø)
apm-capabilities-tracing-windows 48.15% <ø> (-0.20%) ⬇️
apm-integrations-aerospike-18-gte.5.2.0 ?
apm-integrations-aerospike-20-gte.5.5.0 33.03% <ø> (-0.08%) ⬇️
apm-integrations-aerospike-22-gte.5.12.1 33.03% <ø> (-0.08%) ⬇️
apm-integrations-aerospike-22-gte.6.0.0 33.03% <ø> (-0.08%) ⬇️
apm-integrations-aerospike-eol- ?
apm-integrations-child-process 33.94% <ø> (-0.08%) ⬇️
apm-integrations-confluentinc-kafka-javascript-18 39.95% <ø> (-0.08%) ⬇️
apm-integrations-confluentinc-kafka-javascript-20 39.97% <ø> (-0.08%) ⬇️
apm-integrations-confluentinc-kafka-javascript-22 39.97% <ø> (-0.08%) ⬇️
apm-integrations-confluentinc-kafka-javascript-24 39.87% <ø> (-0.08%) ⬇️
apm-integrations-couchbase-18 ?
apm-integrations-couchbase-eol 33.08% <ø> (-0.24%) ⬇️
apm-integrations-dns 32.87% <ø> (-0.08%) ⬇️
apm-integrations-elasticsearch ?
apm-integrations-http-latest 41.74% <ø> (-0.07%) ⬇️
apm-integrations-http-maintenance 41.83% <ø> (-0.07%) ⬇️
apm-integrations-http-oldest 41.77% <ø> (-0.06%) ⬇️
apm-integrations-http2 39.00% <ø> (-0.06%) ⬇️
apm-integrations-kafkajs-latest 40.01% <ø> (-0.08%) ⬇️
apm-integrations-kafkajs-oldest 40.09% <ø> (-0.18%) ⬇️
apm-integrations-net 33.56% <ø> (-0.08%) ⬇️
apm-integrations-next-11.1.4 36.22% <ø> (-0.31%) ⬇️
apm-integrations-next-12.3.7 36.22% <ø> (-0.31%) ⬇️
apm-integrations-next-13.0.0 29.00% <ø> (-0.08%) ⬇️
apm-integrations-next-13.2.0 29.04% <ø> (-0.04%) ⬇️
apm-integrations-next-13.5.11 29.14% <ø> (-0.08%) ⬇️
apm-integrations-next-14.0.0 29.06% <ø> (-0.08%) ⬇️
apm-integrations-next-14.2.35 29.06% <ø> (-0.12%) ⬇️
apm-integrations-next-14.2.6 29.06% <ø> (-0.08%) ⬇️
apm-integrations-next-14.2.7 29.06% <ø> (-0.08%) ⬇️
apm-integrations-next-15.0.0 29.06% <ø> (-0.08%) ⬇️
apm-integrations-next-15.4.0 29.14% <ø> (-0.08%) ⬇️
apm-integrations-next-latest 29.17% <ø> (-0.11%) ⬇️
apm-integrations-oracledb 34.10% <ø> (+0.14%) ⬆️
apm-integrations-prisma-18-gte.6.16.0.and.lt.7.0.0 34.72% <ø> (-0.08%) ⬇️
apm-integrations-prisma-latest-all 34.16% <18.18%> (-0.09%) ⬇️
apm-integrations-restify ?
apm-integrations-sharedb 32.46% <ø> (+0.02%) ⬆️
apm-integrations-tedious ?
apm-integrations-tedious-0 33.35% <90.90%> (?)
apm-integrations-tedious-2 33.55% <27.27%> (?)
appsec-express 50.90% <ø> (-0.03%) ⬇️
appsec-fastify ?
appsec-graphql 47.95% <ø> (+0.18%) ⬆️
appsec-integration-active 36.03% <9.09%> (-0.01%) ⬇️
appsec-integration-latest 36.03% <9.09%> (-0.01%) ⬇️
appsec-integration-maintenance 36.09% <9.09%> (-0.01%) ⬇️
appsec-integration-oldest 36.09% <9.09%> (-0.01%) ⬇️
appsec-kafka 40.27% <ø> (-0.01%) ⬇️
appsec-ldapjs 39.76% <ø> (-0.07%) ⬇️
appsec-lodash 39.67% <ø> (-0.07%) ⬇️
appsec-macos 56.96% <ø> (-0.06%) ⬇️
appsec-mongodb-core 44.00% <ø> (+0.10%) ⬆️
appsec-mongoose 44.69% <ø> (-0.07%) ⬇️
appsec-mysql 47.06% <ø> (+0.07%) ⬆️
appsec-next-latest-11.1.4 27.30% <ø> (-0.07%) ⬇️
appsec-next-latest-12.3.7 27.15% <ø> (ø)
appsec-next-latest-13.0.0 29.08% <ø> (-0.08%) ⬇️
appsec-next-latest-13.2.0 29.11% <ø> (-0.08%) ⬇️
appsec-next-latest-13.5.11 29.20% <ø> (-0.08%) ⬇️
appsec-next-latest-14.0.0 29.12% <ø> (?)
appsec-next-latest-14.2.35 29.12% <ø> (-0.08%) ⬇️
appsec-next-latest-14.2.6 29.12% <ø> (-0.08%) ⬇️
appsec-next-latest-14.2.7 29.12% <ø> (-0.08%) ⬇️
appsec-next-latest-15.0.0 29.12% <ø> (-0.08%) ⬇️
appsec-next-latest-latest 29.16% <ø> (-0.08%) ⬇️
appsec-next-oldest-11.1.4 27.34% <ø> (-0.08%) ⬇️
appsec-next-oldest-12.3.7 29.14% <ø> (-0.08%) ⬇️
appsec-next-oldest-13.0.0 29.14% <ø> (-0.08%) ⬇️
appsec-next-oldest-13.2.0 29.40% <ø> (-0.08%) ⬇️
appsec-next-oldest-13.5.11 29.50% <ø> (-0.08%) ⬇️
appsec-next-oldest-14.0.0 29.43% <ø> (-0.08%) ⬇️
appsec-next-oldest-14.2.35 29.43% <ø> (-0.08%) ⬇️
appsec-next-oldest-14.2.6 ?
appsec-next-oldest-14.2.7 29.43% <ø> (-0.08%) ⬇️
appsec-next-oldest-15.0.0 29.43% <ø> (-0.08%) ⬇️
appsec-next-oldest-latest 27.34% <ø> (ø)
appsec-node-serialize 38.96% <ø> (-0.10%) ⬇️
appsec-passport 42.60% <ø> (-0.07%) ⬇️
appsec-postgres 46.80% <ø> (+0.08%) ⬆️
appsec-sourcing 38.42% <ø> (-0.07%) ⬇️
appsec-stripe 40.47% <ø> (-0.07%) ⬇️
appsec-template 39.25% <ø> (-0.07%) ⬇️
appsec-ubuntu 57.07% <ø> (-0.06%) ⬇️
appsec-windows 56.81% <ø> (-0.06%) ⬇️
debugger-ubuntu-active 43.36% <ø> (ø)
debugger-ubuntu-latest 43.36% <ø> (ø)
debugger-ubuntu-maintenance 43.49% <ø> (ø)
debugger-ubuntu-oldest 43.84% <ø> (+0.04%) ⬆️
instrumentations-instrumentation-ai 45.15% <ø> (ø)
instrumentations-instrumentation-aws-sdk 44.75% <ø> (ø)
instrumentations-instrumentation-bluebird 27.51% <ø> (-0.08%) ⬇️
instrumentations-instrumentation-body-parser 35.58% <ø> (-0.08%) ⬇️
instrumentations-instrumentation-child_process 33.24% <ø> (-0.08%) ⬇️
instrumentations-instrumentation-connect 48.04% <ø> (ø)
instrumentations-instrumentation-cookie-parser 29.43% <ø> (-0.08%) ⬇️
instrumentations-instrumentation-couchbase-18 45.83% <ø> (ø)
instrumentations-instrumentation-couchbase-eol 45.83% <ø> (ø)
instrumentations-instrumentation-crypto 27.48% <ø> (-0.08%) ⬇️
instrumentations-instrumentation-express 29.63% <ø> (-0.08%) ⬇️
instrumentations-instrumentation-express-mongo-sanitize 29.53% <ø> (-0.09%) ⬇️
instrumentations-instrumentation-express-multi-version 41.47% <ø> (ø)
instrumentations-instrumentation-express-session 35.40% <ø> (-0.08%) ⬇️
instrumentations-instrumentation-fastify 48.04% <ø> (ø)
instrumentations-instrumentation-fetch 44.76% <ø> (ø)
instrumentations-instrumentation-fs 27.19% <ø> (-0.08%) ⬇️
instrumentations-instrumentation-generic-pool 27.33% <ø> (ø)
instrumentations-instrumentation-hono 28.73% <ø> (-0.08%) ⬇️
instrumentations-instrumentation-http 37.83% <ø> (-0.08%) ⬇️
instrumentations-instrumentation-http-client-options 37.44% <ø> (-0.08%) ⬇️
instrumentations-instrumentation-kafkajs 48.75% <ø> (ø)
instrumentations-instrumentation-knex 27.50% <ø> (-0.08%) ⬇️
instrumentations-instrumentation-koa 45.71% <ø> (ø)
instrumentations-instrumentation-light-my-request 35.22% <ø> (-0.08%) ⬇️
instrumentations-instrumentation-mongoose 28.71% <ø> (+0.01%) ⬆️
instrumentations-instrumentation-multer 35.25% <ø> (-0.08%) ⬇️
instrumentations-instrumentation-mysql2 33.36% <ø> (-0.08%) ⬇️
instrumentations-instrumentation-openai-lifecycle 45.82% <ø> (ø)
instrumentations-instrumentation-otel-sdk-trace 25.34% <ø> (ø)
instrumentations-instrumentation-passport 39.14% <ø> (-0.07%) ⬇️
instrumentations-instrumentation-passport-http 38.84% <ø> (-0.07%) ⬇️
instrumentations-instrumentation-passport-local 39.29% <ø> (-0.07%) ⬇️
instrumentations-instrumentation-pg 33.08% <ø> (-0.08%) ⬇️
instrumentations-instrumentation-promise 27.46% <ø> (-0.08%) ⬇️
instrumentations-instrumentation-promise-js 27.46% <ø> (-0.08%) ⬇️
instrumentations-instrumentation-q 27.49% <ø> (-0.08%) ⬇️
instrumentations-instrumentation-restify 47.30% <ø> (ø)
instrumentations-instrumentation-router 43.37% <ø> (ø)
instrumentations-instrumentation-stripe 28.01% <ø> (-0.08%) ⬇️
instrumentations-instrumentation-url 27.31% <ø> (-0.08%) ⬇️
instrumentations-instrumentation-when 27.47% <ø> (-0.08%) ⬇️
instrumentations-instrumentation-zlib 27.36% <ø> (-0.08%) ⬇️
instrumentations-integration-esbuild-0.16.12-active 24.67% <9.09%> (-0.01%) ⬇️
instrumentations-integration-esbuild-0.16.12-latest 24.67% <9.09%> (-0.01%) ⬇️
instrumentations-integration-esbuild-0.16.12-maintenance 18.68% <9.09%> (-0.01%) ⬇️
instrumentations-integration-esbuild-0.16.12-oldest 18.67% <9.09%> (-0.01%) ⬇️
instrumentations-integration-esbuild-latest-active 24.67% <9.09%> (-0.01%) ⬇️
instrumentations-integration-esbuild-latest-latest 24.67% <9.09%> (-0.01%) ⬇️
instrumentations-integration-esbuild-latest-maintenance 18.68% <9.09%> (-0.01%) ⬇️
instrumentations-integration-esbuild-latest-oldest 18.67% <9.09%> (-0.01%) ⬇️
llmobs-ai ?
llmobs-anthropic 36.40% <ø> (-0.13%) ⬇️
llmobs-bedrock ?
llmobs-google-genai 36.04% <ø> (+0.08%) ⬆️
llmobs-langchain ?
llmobs-openai-latest 39.37% <ø> (-0.07%) ⬇️
llmobs-openai-oldest ?
llmobs-sdk-active 43.25% <ø> (-0.08%) ⬇️
llmobs-sdk-latest 43.25% <ø> (-0.08%) ⬇️
llmobs-sdk-maintenance 43.35% <ø> (-0.08%) ⬇️
llmobs-sdk-oldest 43.34% <ø> (-0.08%) ⬇️
llmobs-vertex-ai 35.56% <ø> (-0.23%) ⬇️
openfeature-macos 37.41% <ø> (ø)
openfeature-ubuntu 37.50% <ø> (-0.06%) ⬇️
openfeature-unit-active 49.95% <ø> (ø)
openfeature-unit-latest 49.95% <ø> (ø)
openfeature-unit-maintenance 50.32% <ø> (ø)
openfeature-unit-oldest 50.32% <ø> (ø)
openfeature-windows 37.28% <ø> (+0.04%) ⬆️
platform-core 45.98% <ø> (ø)
platform-esbuild 47.00% <ø> (ø)
platform-instrumentations-misc 29.36% <ø> (ø)
platform-integration-active 46.97% <ø> (ø)
platform-integration-latest 46.98% <ø> (ø)
platform-integration-maintenance 47.08% <ø> (ø)
platform-integration-oldest 47.22% <ø> (ø)
platform-shimmer 47.05% <ø> (ø)
platform-unit-guardrails 44.04% <ø> (ø)
platform-webpack 18.22% <9.09%> (-0.01%) ⬇️
plugins-aws-durable-execution-sdk-js ?
plugins-axios 35.37% <ø> (ø)
plugins-azure-cosmos 35.86% <ø> (+0.08%) ⬆️
plugins-azure-event-hubs 34.67% <ø> (ø)
plugins-azure-service-bus 35.18% <ø> (ø)
plugins-body-parser 36.36% <ø> (ø)
plugins-bullmq 39.35% <ø> (-0.08%) ⬇️
plugins-cassandra 33.51% <ø> (-0.08%) ⬇️
plugins-cookie 40.47% <ø> (ø)
plugins-cookie-parser 40.30% <ø> (ø)
plugins-crypto 42.36% <ø> (ø)
plugins-dd-trace-api 33.10% <ø> (-0.08%) ⬇️
plugins-express-mongo-sanitize 40.35% <ø> (ø)
plugins-express-session 40.22% <ø> (ø)
plugins-fastify 37.71% <ø> (-0.07%) ⬇️
plugins-fetch 34.44% <ø> (-0.08%) ⬇️
plugins-fs 33.52% <ø> (-0.08%) ⬇️
plugins-generic-pool 39.79% <ø> (ø)
plugins-google-cloud-pubsub ?
plugins-grpc 36.39% <ø> (-0.07%) ⬇️
plugins-handlebars 40.35% <ø> (ø)
plugins-hapi ?
plugins-hono 35.80% <ø> (-0.08%) ⬇️
plugins-ioredis 34.16% <ø> (-0.08%) ⬇️
plugins-jest 26.98% <ø> (ø)
plugins-knex ?
plugins-langgraph 32.22% <ø> (-0.08%) ⬇️
plugins-ldapjs 38.81% <ø> (ø)
plugins-light-my-request 39.93% <ø> (ø)
plugins-limitd-client 27.81% <ø> (?)
plugins-lodash 39.97% <ø> (ø)
plugins-mariadb 34.99% <ø> (-0.09%) ⬇️
plugins-memcached 33.54% <ø> (-0.08%) ⬇️
plugins-microgateway-core ?
plugins-modelcontextprotocol-sdk 32.18% <ø> (-0.08%) ⬇️
plugins-moleculer 36.45% <ø> (-0.08%) ⬇️
plugins-mongodb 35.65% <ø> (-0.17%) ⬇️
plugins-mongodb-core 35.19% <ø> (-0.16%) ⬇️
plugins-mongoose 34.44% <ø> (+0.11%) ⬆️
plugins-multer 40.27% <ø> (ø)
plugins-mysql 34.46% <ø> (-0.09%) ⬇️
plugins-mysql2 34.84% <ø> (-0.03%) ⬇️
plugins-nats 36.16% <ø> (-0.08%) ⬇️
plugins-node-serialize 40.19% <ø> (-0.31%) ⬇️
plugins-opensearch 33.66% <ø> (+0.14%) ⬆️
plugins-passport-http 40.09% <ø> (ø)
plugins-pino 29.73% <ø> (-0.08%) ⬇️
plugins-postgres 34.51% <ø> (-0.08%) ⬇️
plugins-process 42.36% <ø> (ø)
plugins-pug 40.47% <ø> (ø)
plugins-redis 33.96% <ø> (-0.30%) ⬇️
plugins-router 37.91% <ø> (-0.29%) ⬇️
plugins-sequelize 39.75% <ø> (ø)
plugins-test-and-upstream-amqp10 33.69% <ø> (-0.08%) ⬇️
plugins-test-and-upstream-amqplib 39.01% <ø> (-0.06%) ⬇️
plugins-test-and-upstream-apollo ?
plugins-test-and-upstream-avsc 33.57% <ø> (-0.08%) ⬇️
plugins-test-and-upstream-bunyan 28.95% <ø> (-0.07%) ⬇️
plugins-test-and-upstream-connect 36.13% <ø> (-0.14%) ⬇️
plugins-test-and-upstream-graphql 35.68% <ø> (-0.26%) ⬇️
plugins-test-and-upstream-koa ?
plugins-test-and-upstream-protobufjs 33.81% <ø> (-0.08%) ⬇️
plugins-test-and-upstream-rhea 39.18% <ø> (+0.14%) ⬆️
plugins-undici 35.00% <ø> (+0.05%) ⬆️
plugins-url 42.36% <ø> (ø)
plugins-valkey 33.65% <ø> (-0.07%) ⬇️
plugins-vm 42.36% <ø> (ø)
plugins-winston 29.62% <ø> (-0.08%) ⬇️
plugins-ws 36.93% <ø> (-0.08%) ⬇️
profiling-macos 42.88% <ø> (-0.07%) ⬇️
profiling-ubuntu 43.31% <ø> (-0.07%) ⬇️
profiling-windows 40.75% <ø> (-0.07%) ⬇️
serverless-aws-sdk-latest-aws-sdk 33.01% <ø> (-0.05%) ⬇️
serverless-aws-sdk-latest-bedrockruntime ?
serverless-aws-sdk-latest-client 36.20% <ø> (ø)
serverless-aws-sdk-latest-dynamodb 33.88% <ø> (+0.01%) ⬆️
serverless-aws-sdk-latest-eventbridge 26.95% <ø> (-0.07%) ⬇️
serverless-aws-sdk-latest-kinesis 37.04% <ø> (-0.07%) ⬇️
serverless-aws-sdk-latest-lambda ?
serverless-aws-sdk-latest-s3 32.24% <ø> (-0.07%) ⬇️
serverless-aws-sdk-latest-serverless-peer-service 39.17% <ø> (-0.17%) ⬇️
serverless-aws-sdk-latest-sns 38.04% <ø> (-0.07%) ⬇️
serverless-aws-sdk-latest-sqs 37.67% <ø> (-0.07%) ⬇️
serverless-aws-sdk-latest-stepfunctions 32.86% <ø> (-0.07%) ⬇️
serverless-aws-sdk-latest-util 46.39% <ø> (ø)
serverless-aws-sdk-oldest-aws-sdk 33.12% <ø> (-0.07%) ⬇️
serverless-aws-sdk-oldest-bedrockruntime 31.95% <ø> (-0.07%) ⬇️
serverless-aws-sdk-oldest-client 36.76% <ø> (ø)
serverless-aws-sdk-oldest-dynamodb 33.96% <ø> (-0.07%) ⬇️
serverless-aws-sdk-oldest-eventbridge 27.03% <ø> (-0.07%) ⬇️
serverless-aws-sdk-oldest-kinesis 37.21% <ø> (-0.07%) ⬇️
serverless-aws-sdk-oldest-lambda 34.37% <ø> (-0.07%) ⬇️
serverless-aws-sdk-oldest-s3 32.38% <ø> (-0.07%) ⬇️
serverless-aws-sdk-oldest-serverless-peer-service 39.26% <ø> (-0.08%) ⬇️
serverless-aws-sdk-oldest-sns 38.14% <ø> (-0.07%) ⬇️
serverless-aws-sdk-oldest-sqs 37.74% <ø> (-0.07%) ⬇️
serverless-aws-sdk-oldest-stepfunctions 32.96% <ø> (-0.07%) ⬇️
serverless-aws-sdk-oldest-util 47.13% <ø> (ø)
serverless-azure-durable-functions 36.80% <ø> (ø)
serverless-azure-functions-eventhubs 38.24% <ø> (ø)
serverless-azure-functions-servicebus 38.30% <ø> (ø)
serverless-lambda 34.11% <ø> (-0.09%) ⬇️
test-optimization-cucumber-latest-7.0.0 49.70% <ø> (+0.11%) ⬆️
test-optimization-cucumber-latest-latest 52.41% <ø> (+0.11%) ⬆️
test-optimization-cucumber-oldest-7.0.0 49.79% <ø> (+0.11%) ⬆️
test-optimization-cypress-latest-12.0.0-commonJS 49.03% <ø> (+0.07%) ⬆️
test-optimization-cypress-latest-12.0.0-esm 49.06% <ø> (+0.07%) ⬆️
test-optimization-cypress-latest-14.5.4-commonJS 48.88% <ø> (+0.07%) ⬆️
test-optimization-cypress-latest-14.5.4-esm 48.91% <ø> (+0.07%) ⬆️
test-optimization-cypress-latest-latest-commonJS 49.36% <ø> (+0.07%) ⬆️
test-optimization-cypress-latest-latest-esm 48.07% <ø> (+0.07%) ⬆️
test-optimization-cypress-oldest-12.0.0-commonJS 49.11% <ø> (+0.07%) ⬆️
test-optimization-cypress-oldest-12.0.0-esm 47.70% <ø> (-1.37%) ⬇️
test-optimization-cypress-oldest-14.5.4-commonJS 48.96% <ø> (+0.07%) ⬆️
test-optimization-cypress-oldest-14.5.4-esm 48.99% <ø> (+1.97%) ⬆️
test-optimization-jest-latest-latest 53.28% <ø> (-1.77%) ⬇️
test-optimization-jest-latest-oldest 54.06% <ø> (+0.04%) ⬆️
test-optimization-jest-oldest-latest 55.17% <ø> (+0.08%) ⬆️
test-optimization-jest-oldest-oldest 53.43% <ø> (-0.56%) ⬇️
test-optimization-mocha-latest-latest 53.38% <ø> (+0.08%) ⬆️
test-optimization-mocha-latest-oldest 50.95% <ø> (+0.08%) ⬆️
test-optimization-mocha-oldest-latest 53.48% <ø> (+0.06%) ⬆️
test-optimization-mocha-oldest-oldest 50.96% <ø> (+0.08%) ⬆️
test-optimization-playwright-latest-latest-playwright-active-test-span 43.97% <ø> (+0.22%) ⬆️
test-optimization-playwright-latest-latest-playwright-atr 42.82% <ø> (+0.10%) ⬆️
test-optimization-playwright-latest-latest-playwright-efd 43.24% <ø> (+0.08%) ⬆️
test-optimization-playwright-latest-latest-playwright-final-status 43.30% <ø> (+0.10%) ⬆️
test-optimization-playwright-latest-latest-playwright-impacted-tests 42.77% <ø> (ø)
test-optimization-playwright-latest-latest-playwright-reporting 42.86% <ø> (+0.08%) ⬆️
test-optimization-playwright-latest-latest-playwright-test-management 44.31% <ø> (+0.10%) ⬆️
test-optimization-playwright-latest-oldest-playwright-active-test-span 43.93% <ø> (+0.22%) ⬆️
test-optimization-playwright-latest-oldest-playwright-atr 42.88% <ø> (+0.10%) ⬆️
test-optimization-playwright-latest-oldest-playwright-efd 43.17% <ø> (+0.09%) ⬆️
test-optimization-playwright-latest-oldest-playwright-final-status 43.21% <ø> (+0.10%) ⬆️
test-optimization-playwright-latest-oldest-playwright-impacted-tests 42.70% <ø> (ø)
test-optimization-playwright-latest-oldest-playwright-reporting 42.65% <ø> (?)
test-optimization-playwright-latest-oldest-playwright-test-management 44.26% <ø> (+0.10%) ⬆️
test-optimization-playwright-oldest-latest-playwright-active-test-span 44.19% <ø> (+0.04%) ⬆️
test-optimization-playwright-oldest-latest-playwright-atr 42.90% <ø> (+0.08%) ⬆️
test-optimization-playwright-oldest-latest-playwright-efd 43.29% <ø> (+0.08%) ⬆️
test-optimization-playwright-oldest-latest-playwright-final-status 43.38% <ø> (+0.11%) ⬆️
test-optimization-playwright-oldest-latest-playwright-impacted-tests 42.85% <ø> (ø)
test-optimization-playwright-oldest-latest-playwright-reporting 42.91% <ø> (+0.08%) ⬆️
test-optimization-playwright-oldest-latest-playwright-test-management 44.37% <ø> (+0.06%) ⬆️
test-optimization-playwright-oldest-oldest-playwright-active-test-span 44.01% <ø> (?)
test-optimization-playwright-oldest-oldest-playwright-atr 42.96% <ø> (+0.10%) ⬆️
test-optimization-playwright-oldest-oldest-playwright-efd 43.23% <ø> (+0.09%) ⬆️
test-optimization-playwright-oldest-oldest-playwright-final-status 43.30% <ø> (+0.08%) ⬆️
test-optimization-playwright-oldest-oldest-playwright-impacted-tests 42.78% <ø> (ø)
test-optimization-playwright-oldest-oldest-playwright-reporting 42.71% <ø> (+0.08%) ⬆️
test-optimization-playwright-oldest-oldest-playwright-test-management 44.32% <ø> (+0.07%) ⬆️
test-optimization-selenium-latest 45.14% <ø> (+0.06%) ⬆️
test-optimization-selenium-oldest ?
test-optimization-testopt-active 48.15% <ø> (+0.12%) ⬆️
test-optimization-testopt-latest 48.15% <ø> (+0.12%) ⬆️
test-optimization-testopt-maintenance 48.13% <ø> (+0.13%) ⬆️
test-optimization-testopt-oldest 49.22% <ø> (+0.10%) ⬆️
test-optimization-vitest-latest 50.61% <ø> (+0.12%) ⬆️
test-optimization-vitest-oldest 47.94% <ø> (+0.31%) ⬆️

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.

@pr-commenter

pr-commenter Bot commented Jun 22, 2026

Copy link
Copy Markdown

Benchmarks

Benchmark execution time: 2026-06-22 20:37:21

Comparing candidate commit dee3e82 in PR branch BridgeAR/2026-06-22-tedious-bulkload-context with baseline commit 2da11d0 in branch master.

📊 Benchmarking dashboard

Found 0 performance improvements and 0 performance regressions! Performance is the same for 1950 metrics, 15 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 [-146.342ms; +148.701ms] or [-5.624%; +5.715%]

scenario:appsec-appsec-enabled-26

  • unstable execution_time [-173683.862µs; +172728.328µs] or [-6.979%; +6.940%]

scenario:appsec-control-20

  • unstable execution_time [-112.259ms; +149.027ms] or [-6.508%; +8.639%]

scenario:appsec-control-24

  • unstable execution_time [-92.694ms; +96.791ms] or [-7.723%; +8.064%]

scenario:appsec-control-26

  • unstable execution_time [-95932.968µs; +97819.002µs] or [-8.120%; +8.280%]

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

  • unstable max_rss_usage [-11.820MB; +16.103MB] or [-6.513%; +8.874%]

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

  • unstable max_rss_usage [-15.106MB; +19.461MB] or [-5.793%; +7.463%]

scenario:dogstatsd-with-tags-20

  • unstable cpu_user_time [-399.436ms; +263.989ms] or [-8.460%; +5.591%]
  • unstable execution_time [-398.481ms; +262.672ms] or [-8.308%; +5.476%]

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

  • unstable cpu_user_time [-259.813ms; +355.684ms] or [-5.848%; +8.006%]
  • unstable execution_time [-278.183ms; +380.778ms] or [-5.886%; +8.056%]
  • unstable max_rss_usage [-34.654MB; +45.640MB] or [-6.462%; +8.511%]

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

  • unstable max_rss_usage [-11.977MB; +9.120MB] or [-8.240%; +6.274%]

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

  • unstable max_rss_usage [-4.780MB; +13.302MB] or [-3.029%; +8.428%]

scenario:spans-finish-later-26

  • unstable max_rss_usage [-11.462MB; +17.573MB] or [-6.240%; +9.568%]

@BridgeAR BridgeAR force-pushed the BridgeAR/2026-06-22-resolver-wire-up branch from 8a3fb87 to 297c17f Compare June 22, 2026 20:21
…ontext

Listeners added to bulkLoad.getRowStream() run in the async context that emits
the stream event, not the one active when the listener was registered, so a
caller's 'finish'/'error'/'data' handler loses the span it was registered under.
Bind each caller listener to its registration context. tedious' own internal
listeners are attached before getRowStream returns, so only caller listeners
are bound.

The widened version matrix surfaced two tedious-specific test fixes that ride
along:

1. Shard the CI job by major range; installing and testing 19 majors in one job
   exceeds the step time budget.
2. Gate the getRowStream streaming test below major 13 (deprecated there,
   removed in 14, and the shared setup rethrows the DeprecationWarning) and call
   connect() only on tedious >=10, since older majors connect on construction.
@BridgeAR BridgeAR force-pushed the BridgeAR/2026-06-22-tedious-bulkload-context branch from efa6763 to dee3e82 Compare June 22, 2026 20:24
@BridgeAR BridgeAR changed the base branch from BridgeAR/2026-06-22-resolver-wire-up to master June 22, 2026 20:24
@BridgeAR BridgeAR closed this Jun 25, 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.

1 participant