Skip to content

test(init): skip node 22 loader guardrails#9277

Merged
juan-fernandez merged 3 commits into
masterfrom
juan-fernandez/skip-node22-loader-init-guardrails
Jul 9, 2026
Merged

test(init): skip node 22 loader guardrails#9277
juan-fernandez merged 3 commits into
masterfrom
juan-fernandez/skip-node22-loader-init-guardrails

Conversation

@juan-fernandez

@juan-fernandez juan-fernandez commented Jul 9, 2026

Copy link
Copy Markdown
Collaborator

What does this PR do?

Skips the initialize.mjs runtime version guardrail context on Node 22.0.0. The init.js runtime checks and non-runtime initialize scenarios still run.

Motivation

The integration-guardrails (22.0.0) job keeps exposing additional runtime-version failures under initialize.mjs as earlier failing cases are skipped. The failures reproduce across branches and affect both loader/import runtime-version checks on Node 22.0.0:

Additional Notes

Validation:

  • ./node_modules/.bin/eslint integration-tests/init.spec.js
  • node node_modules/.bin/mocha --colors --timeout 30000 integration-tests/init.spec.js on local Node v24.14.1: 84 passing

PR commits were verified signed with git verify-commit / git log --show-signature.

The exact Node 22.0.0 leg was not runnable locally because node_modules/node-22.0.0/bin/node is not installed in this checkout.

@dd-octo-sts

dd-octo-sts Bot commented Jul 9, 2026

Copy link
Copy Markdown
Contributor

Overall package size

Self size: 6.68 MB
Deduped: 7.34 MB
No deduping: 7.34 MB

Dependency sizes | name | version | self size | total size | |------|---------|-----------|------------| | import-in-the-middle | 3.3.1 | 122.62 kB | 437.94 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 Jul 9, 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.51% (+0.00%)

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

@pr-commenter

pr-commenter Bot commented Jul 9, 2026

Copy link
Copy Markdown

Benchmarks

Benchmark execution time: 2026-07-09 09:26:54

Comparing candidate commit d00b700 in PR branch juan-fernandez/skip-node22-loader-init-guardrails with baseline commit f8d1b6f in branch master.

📊 Benchmarking dashboard

Found 0 performance improvements and 0 performance regressions! Performance is the same for 2316 metrics, 42 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 [-212108.852µs; +212560.552µs] or [-7.977%; +7.994%]

scenario:appsec-appsec-enabled-26

  • unstable execution_time [-242.393ms; +228.872ms] or [-9.478%; +8.949%]

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

  • unstable execution_time [-164.662ms; +162.428ms] or [-5.340%; +5.268%]

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

  • unstable execution_time [-161.693ms; +199.401ms] or [-5.604%; +6.910%]

scenario:appsec-control-20

  • unstable execution_time [-116101.086µs; +116491.386µs] or [-7.084%; +7.108%]

scenario:appsec-control-24

  • unstable execution_time [-111501.625µs; +113460.325µs] or [-9.033%; +9.191%]

scenario:appsec-control-26

  • unstable execution_time [-127.705ms; +123.928ms] or [-10.319%; +10.014%]

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

  • unstable execution_time [-12.639ms; +15.878ms] or [-4.919%; +6.180%]

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

  • unstable execution_time [-12.461ms; +19.320ms] or [-4.811%; +7.460%]

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

  • unstable execution_time [-11.479ms; +15.836ms] or [-4.542%; +6.267%]

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

  • unstable execution_time [-28281.566µs; +27663.433µs] or [-5.144%; +5.031%]

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

  • unstable execution_time [-27.347ms; +30.714ms] or [-5.015%; +5.632%]

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

  • unstable cpu_user_time [-1898.704ms; +3019.626ms] or [-22.250%; +35.385%]
  • unstable execution_time [-2007.121ms; +3156.142ms] or [-21.726%; +34.163%]
  • unstable instructions [-15.7G instructions; +25.6G instructions] or [-22.423%; +36.726%]
  • unstable max_rss_usage [-8.091MB; +12.801MB] or [-5.142%; +8.136%]
  • unstable throughput [-822.372op/s; +531.791op/s] or [-23.081%; +14.925%]

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

  • unstable cpu_user_time [-3163.368ms; +2834.805ms] or [-31.124%; +27.891%]
  • unstable execution_time [-3168.694ms; +2832.300ms] or [-29.088%; +26.000%]
  • unstable instructions [-28.3G instructions; +25.4G instructions] or [-33.321%; +29.933%]
  • unstable max_rss_usage [-10908.883KB; +9294.483KB] or [-6.764%; +5.763%]
  • unstable throughput [-613.696op/s; +662.984op/s] or [-19.879%; +21.476%]

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

  • unstable cpu_user_time [-2913.119ms; +1901.561ms] or [-30.736%; +20.063%]
  • unstable execution_time [-2883.769ms; +1897.096ms] or [-28.250%; +18.584%]
  • unstable instructions [-25.0G instructions; +16.2G instructions] or [-32.134%; +20.799%]
  • unstable max_rss_usage [-12.849MB; +8.151MB] or [-7.967%; +5.054%]
  • unstable throughput [-537.023op/s; +775.090op/s] or [-16.351%; +23.600%]

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

  • unstable cpu_user_time [-3.883s; -0.477s] or [-38.729%; -4.753%]
  • unstable execution_time [-3.930s; -0.521s] or [-36.599%; -4.852%]
  • unstable instructions [-33.3G instructions; -4.1G instructions] or [-40.394%; -4.933%]
  • unstable throughput [+149.696op/s; +1082.689op/s] or [+4.744%; +34.308%]

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

  • unstable cpu_user_time [-2361.006ms; +738.217ms] or [-24.884%; +7.780%]
  • unstable execution_time [-2402.285ms; +791.294ms] or [-23.501%; +7.741%]
  • unstable instructions [-20.8G instructions; +6.3G instructions] or [-26.209%; +7.968%]
  • unstable throughput [-159.129op/s; +474.359op/s] or [-4.893%; +14.587%]

scenario:dogstatsd-with-tags-20

  • unstable cpu_user_time [-317.809ms; +385.837ms] or [-6.358%; +7.720%]
  • unstable execution_time [-320.789ms; +387.422ms] or [-6.315%; +7.626%]
  • unstable throughput [-131876.629op/s; +112597.158op/s] or [-7.981%; +6.814%]

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

  • unstable cpu_user_time [-724.571ms; +728.887ms] or [-5.653%; +5.686%]
  • unstable execution_time [-736.696ms; +728.899ms] or [-5.624%; +5.564%]
  • unstable throughput [-3.359op/s; +3.401op/s] or [-5.467%; +5.534%]

scenario:test-optimization-large-suite-20

  • unstable max_rss_usage [-7.707MB; +4.000MB] or [-9.397%; +4.878%]

@codecov

codecov Bot commented Jul 9, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 96.55%. Comparing base (f8d1b6f) to head (d00b700).
⚠️ Report is 1 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #9277      +/-   ##
==========================================
- Coverage   96.55%   96.55%   -0.01%     
==========================================
  Files         918      918              
  Lines      121410   121410              
  Branches    20900    20647     -253     
==========================================
- Hits       117229   117227       -2     
- Misses       4181     4183       +2     
Flag Coverage Δ
aiguard 53.62% <ø> (-0.05%) ⬇️
aiguard-integration 57.05% <ø> (ø)
apm-bucket-0 53.84% <ø> (-0.05%) ⬇️
apm-bucket-1 58.15% <ø> (-0.05%) ⬇️
apm-bucket-2 56.17% <ø> (-0.05%) ⬇️
apm-capabilities-tracing 60.27% <ø> (-0.01%) ⬇️
apm-integrations-aerospike 53.01% <ø> (-0.05%) ⬇️
apm-integrations-confluentinc-kafka-javascript 57.12% <ø> (-0.05%) ⬇️
apm-integrations-couchbase 53.33% <ø> (-0.04%) ⬇️
apm-integrations-http 58.03% <ø> (-0.05%) ⬇️
apm-integrations-kafkajs 57.77% <ø> (-0.07%) ⬇️
apm-integrations-next 54.30% <ø> (-0.05%) ⬇️
apm-integrations-prisma 54.23% <ø> (-0.05%) ⬇️
apm-integrations-tedious 53.10% <ø> (-0.05%) ⬇️
appsec 69.06% <ø> (-0.08%) ⬇️
appsec-express_fastify_graphql 65.67% <ø> (-0.06%) ⬇️
appsec-integration 45.59% <ø> (-0.01%) ⬇️
appsec-kafka_ldapjs_lodash 59.16% <ø> (-0.04%) ⬇️
appsec-mongodb-core_mongoose_mysql 62.30% <ø> (-0.06%) ⬇️
appsec-next 52.90% <ø> (-0.05%) ⬇️
appsec-node-serialize_passport_postgres 61.95% <ø> (-0.05%) ⬇️
appsec-sourcing_stripe_template 60.30% <ø> (-0.05%) ⬇️
debugger 65.73% <ø> (-0.02%) ⬇️
instrumentations-bucket-0 48.81% <ø> (-0.05%) ⬇️
instrumentations-bucket-1 55.02% <ø> (-0.05%) ⬇️
instrumentations-bucket-10 56.68% <ø> (-0.05%) ⬇️
instrumentations-bucket-11 48.80% <ø> (-0.05%) ⬇️
instrumentations-bucket-12 48.90% <ø> (-0.05%) ⬇️
instrumentations-bucket-13 48.73% <ø> (-0.05%) ⬇️
instrumentations-bucket-2 49.79% <ø> (-0.05%) ⬇️
instrumentations-bucket-3 53.89% <ø> (-0.05%) ⬇️
instrumentations-bucket-4 49.22% <ø> (-0.05%) ⬇️
instrumentations-bucket-5 53.06% <ø> (-0.05%) ⬇️
instrumentations-bucket-6 55.67% <ø> (-0.05%) ⬇️
instrumentations-bucket-7 53.65% <ø> (-0.05%) ⬇️
instrumentations-bucket-8 54.69% <ø> (-0.05%) ⬇️
instrumentations-bucket-9 56.16% <ø> (-0.05%) ⬇️
instrumentations-instrumentation-couchbase 48.23% <ø> (-0.05%) ⬇️
instrumentations-integration-esbuild 33.96% <ø> (ø)
llmobs-ai_anthropic_bedrock 57.79% <ø> (-0.04%) ⬇️
llmobs-bucket-1 57.04% <ø> (-0.04%) ⬇️
llmobs-openai 57.63% <ø> (-0.04%) ⬇️
llmobs-sdk 60.03% <ø> (-0.05%) ⬇️
llmobs-vertex-ai 54.27% <ø> (-0.05%) ⬇️
master-coverage 96.55% <ø> (?)
openfeature 54.66% <ø> (ø)
openfeature-unit 49.88% <ø> (-0.05%) ⬇️
platform-core_esbuild_instrumentations-misc 38.44% <ø> (-0.03%) ⬇️
platform-integration 62.24% <ø> (ø)
platform-shimmer_unit-guardrails_webpack 37.23% <ø> (-0.03%) ⬇️
plugins-axios_body-parser_bullmq ?
plugins-bucket-0 53.23% <ø> (-0.05%) ⬇️
plugins-bucket-1 55.13% <ø> (ø)
plugins-bucket-11 55.63% <ø> (-0.05%) ⬇️
plugins-bucket-17 ?
plugins-bucket-18 57.12% <ø> (-4.00%) ⬇️
plugins-bucket-19 55.42% <ø> (-0.07%) ⬇️
plugins-bucket-20 57.51% <ø> (-0.05%) ⬇️
plugins-bucket-4 53.91% <ø> (-0.05%) ⬇️
plugins-bullmq_cassandra_cookie 57.46% <ø> (-0.05%) ⬇️
plugins-cookie-parser_crypto_dd-trace-api 52.37% <ø> (-0.05%) ⬇️
plugins-fetch_fs_generic-pool 54.52% <ø> (-0.05%) ⬇️
plugins-google-cloud-pubsub_grpc_handlebars 59.93% <ø> (-0.05%) ⬇️
plugins-hapi_hono_ioredis 55.92% <ø> (-0.05%) ⬇️
plugins-jest_knex_langgraph 51.72% <ø> (-0.05%) ⬇️
plugins-ldapjs_light-my-request_limitd-client 53.47% <ø> (-0.08%) ⬇️
plugins-lodash_mariadb_memcached 54.27% <ø> (-0.05%) ⬇️
plugins-moleculer_mongodb_mongodb-core 57.35% <ø> (-0.05%) ⬇️
plugins-mongoose_multer_mysql 54.77% <ø> (-0.05%) ⬇️
plugins-mysql2_nats_node-serialize 56.27% <ø> (-0.05%) ⬇️
plugins-opensearch_passport-http_pino 55.12% <ø> (-0.05%) ⬇️
plugins-postgres_process_pug 54.35% <ø> (-0.05%) ⬇️
plugins-redis_router_sequelize 57.10% <ø> (-0.05%) ⬇️
plugins-test-and-upstream-rhea_undici_url 57.09% <ø> (-0.05%) ⬇️
plugins-valkey_vm_winston 53.99% <ø> (+0.03%) ⬆️
plugins-ws 54.86% <ø> (-0.05%) ⬇️
profiling 58.25% <ø> (-0.05%) ⬇️
serverless-aws-sdk-aws-sdk 50.71% <ø> (-0.04%) ⬇️
serverless-aws-sdk-bedrockruntime 50.73% <ø> (-0.05%) ⬇️
serverless-aws-sdk-client 52.01% <ø> (-0.05%) ⬇️
serverless-aws-sdk-dynamodb 51.80% <ø> (-0.05%) ⬇️
serverless-aws-sdk-eventbridge 46.27% <ø> (-0.05%) ⬇️
serverless-aws-sdk-kinesis 54.76% <ø> (-0.05%) ⬇️
serverless-aws-sdk-lambda 52.84% <ø> (-0.05%) ⬇️
serverless-aws-sdk-s3 51.58% <ø> (-0.05%) ⬇️
serverless-aws-sdk-serverless-peer-service 54.78% <ø> (-0.05%) ⬇️
serverless-aws-sdk-sns 55.53% <ø> (-0.05%) ⬇️
serverless-aws-sdk-sqs 55.96% <ø> (-0.05%) ⬇️
serverless-aws-sdk-stepfunctions 51.30% <ø> (-0.05%) ⬇️
serverless-aws-sdk-util 48.52% <ø> (-0.05%) ⬇️
serverless-bucket-0 55.28% <ø> (ø)
serverless-bucket-1 56.06% <ø> (-0.05%) ⬇️
test-optimization-cucumber 72.99% <ø> (+0.05%) ⬆️
test-optimization-cypress 66.41% <ø> (+0.01%) ⬆️
test-optimization-jest 73.91% <ø> (-0.05%) ⬇️
test-optimization-mocha 74.33% <ø> (+0.04%) ⬆️
test-optimization-playwright-playwright-atr 61.64% <ø> (-0.02%) ⬇️
test-optimization-playwright-playwright-efd 61.83% <ø> (-0.01%) ⬇️
test-optimization-playwright-playwright-final-status 61.78% <ø> (-0.02%) ⬇️
test-optimization-playwright-playwright-impacted-tests 61.50% <ø> (+0.15%) ⬆️
test-optimization-playwright-playwright-reporting 61.63% <ø> (+0.21%) ⬆️
test-optimization-playwright-playwright-test-management 62.32% <ø> (-0.23%) ⬇️
test-optimization-playwright-playwright-test-span 61.55% <ø> (-0.07%) ⬇️
test-optimization-selenium 60.72% <ø> (-0.12%) ⬇️
test-optimization-testopt 59.19% <ø> (+0.08%) ⬆️
test-optimization-vitest 72.77% <ø> (+0.03%) ⬆️

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.

@juan-fernandez
juan-fernandez marked this pull request as ready for review July 9, 2026 09:30
@juan-fernandez
juan-fernandez requested a review from a team as a code owner July 9, 2026 09:30
@juan-fernandez
juan-fernandez merged commit fa7a23a into master Jul 9, 2026
656 checks passed
@juan-fernandez
juan-fernandez deleted the juan-fernandez/skip-node22-loader-init-guardrails branch July 9, 2026 11:21
@dd-octo-sts dd-octo-sts Bot mentioned this pull request Jul 10, 2026
@dd-octo-sts dd-octo-sts Bot mentioned this pull request Jul 10, 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.

2 participants