dd-trace 5.134.0 → 5.136.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE-3rdparty.csv +0 -1
- package/ci/cypress/support.js +15 -1
- package/ci/init.js +2 -22
- package/ci/test-annotations.d.ts +5 -0
- package/ci/test-annotations.js +5 -0
- package/ci/vitest-no-worker-init-annotations.mjs +4 -0
- package/ci/vitest-no-worker-init-node-setup.mjs +22 -0
- package/ci/vitest-no-worker-init-runner-setup.mjs +7 -32
- package/ci/vitest-no-worker-init-setup.mjs +34 -12
- package/ci/vitest-no-worker-init-v5-setup.mjs +6 -0
- package/ext/exporters.js +1 -1
- package/index.d.ts +124 -5
- package/initialize.mjs +5 -2
- package/lambda.d.ts +39 -0
- package/lambda.js +3 -0
- package/loader-hook.mjs +53 -0
- package/openfeature/exposure-hook.d.ts +66 -0
- package/openfeature/exposure-hook.js +5 -0
- package/package.json +19 -15
- package/packages/datadog-core/src/storage.js +1 -1
- package/packages/datadog-esbuild/index.js +78 -62
- package/packages/datadog-instrumentations/src/aws-lambda.js +88 -0
- package/packages/datadog-instrumentations/src/cucumber.js +56 -19
- package/packages/datadog-instrumentations/src/cypress-config.js +163 -15
- package/packages/datadog-instrumentations/src/elevenlabs/activity.js +114 -0
- package/packages/datadog-instrumentations/src/elevenlabs/audio.js +104 -0
- package/packages/datadog-instrumentations/src/elevenlabs/index.js +288 -0
- package/packages/datadog-instrumentations/src/elevenlabs/session.js +444 -0
- package/packages/datadog-instrumentations/src/graphql.js +29 -20
- package/packages/datadog-instrumentations/src/grpc/server.js +23 -6
- package/packages/{datadog-esbuild/src/utils.js → datadog-instrumentations/src/helpers/bundler-esm-exports.js} +282 -40
- package/packages/datadog-instrumentations/src/helpers/bundler-transform.js +573 -0
- package/packages/datadog-instrumentations/src/helpers/bundler-utils.js +104 -0
- package/packages/datadog-instrumentations/src/helpers/fetch.js +5 -1
- package/packages/datadog-instrumentations/src/helpers/graphql-jit-runtime.js +30 -8
- package/packages/datadog-instrumentations/src/helpers/hook.js +29 -1
- package/packages/datadog-instrumentations/src/helpers/hooks.js +4 -8
- package/packages/datadog-instrumentations/src/helpers/lambda-handler.js +189 -0
- package/packages/datadog-instrumentations/src/helpers/rewriter/index.js +18 -6
- package/packages/datadog-instrumentations/src/helpers/rewriter/instrumentation-registry.js +26 -1
- package/packages/datadog-instrumentations/src/helpers/rewriter/instrumentations/async-mutex.js +41 -0
- package/packages/datadog-instrumentations/src/helpers/rewriter/instrumentations/elevenlabs.js +25 -0
- package/packages/datadog-instrumentations/src/helpers/rewriter/instrumentations/graphql-jit.js +3 -1
- package/packages/datadog-instrumentations/src/helpers/rewriter/instrumentations/graphql.js +0 -36
- package/packages/datadog-instrumentations/src/helpers/rewriter/instrumentations/next.js +40 -0
- package/packages/datadog-instrumentations/src/helpers/rewriter/instrumentations/openai-agents-realtime.js +23 -0
- package/packages/datadog-instrumentations/src/helpers/rewriter/instrumentations/react-router.js +49 -0
- package/packages/datadog-instrumentations/src/helpers/rewriter/instrumentations/trpc.js +148 -0
- package/packages/datadog-instrumentations/src/helpers/rewriter/instrumentations/typesafe.js +23 -0
- package/packages/datadog-instrumentations/src/helpers/rewriter/instrumentations/webdriverio.js +12 -0
- package/packages/datadog-instrumentations/src/helpers/rewriter/target-patterns.json +58 -0
- package/packages/datadog-instrumentations/src/helpers/rewriter/targets.js +19 -2
- package/packages/datadog-instrumentations/src/helpers/rewriter/targets.json +25 -3
- package/packages/datadog-instrumentations/src/helpers/rewriter/transforms.js +59 -2
- package/packages/datadog-instrumentations/src/ioredis.js +101 -3
- package/packages/datadog-instrumentations/src/jest.js +265 -82
- package/packages/datadog-instrumentations/src/mariadb-bundle.js +69 -11
- package/packages/datadog-instrumentations/src/mariadb.js +13 -6
- package/packages/datadog-instrumentations/src/mocha/common.js +89 -8
- package/packages/datadog-instrumentations/src/mocha/main.js +11 -2
- package/packages/datadog-instrumentations/src/mocha/utils.js +58 -12
- package/packages/datadog-instrumentations/src/mocha/worker.js +1 -1
- package/packages/datadog-instrumentations/src/next.js +19 -6
- package/packages/datadog-instrumentations/src/openai-agents-realtime.js +149 -0
- package/packages/datadog-instrumentations/src/openai-realtime/audio-accumulator.js +27 -0
- package/packages/datadog-instrumentations/src/openai-realtime/index.js +17 -6
- package/packages/datadog-instrumentations/src/openai-realtime/server-playback.js +887 -0
- package/packages/datadog-instrumentations/src/openai-realtime/session.js +150 -25
- package/packages/datadog-instrumentations/src/openai-realtime/turns.js +29 -2
- package/packages/datadog-instrumentations/src/oracledb.js +33 -0
- package/packages/datadog-instrumentations/src/otel-sdk-trace.js +11 -9
- package/packages/datadog-instrumentations/src/pg.js +2 -1
- package/packages/datadog-instrumentations/src/playwright.js +81 -28
- package/packages/datadog-instrumentations/src/react-router.js +106 -0
- package/packages/datadog-instrumentations/src/typesafe.js +89 -0
- package/packages/datadog-instrumentations/src/vitest-main-no-worker-init.js +84 -48
- package/packages/datadog-instrumentations/src/vitest-main.js +26 -0
- package/packages/datadog-instrumentations/src/vitest-test-annotations.js +20 -0
- package/packages/datadog-instrumentations/src/vitest-worker.js +39 -17
- package/packages/datadog-instrumentations/src/vitest.js +10 -8
- package/packages/datadog-instrumentations/src/webdriverio.js +12 -12
- package/packages/datadog-plugin-async-mutex/src/index.js +50 -0
- package/packages/datadog-plugin-aws-lambda/src/index.js +106 -0
- package/packages/datadog-plugin-cucumber/src/index.js +5 -0
- package/packages/datadog-plugin-cypress/src/cypress-plugin.js +296 -55
- package/packages/datadog-plugin-cypress/src/index.js +1 -1
- package/packages/datadog-plugin-cypress/src/lifecycle-owner.js +20 -0
- package/packages/datadog-plugin-cypress/src/plugin.js +10 -0
- package/packages/datadog-plugin-cypress/src/retry-config-observer.js +281 -0
- package/packages/datadog-plugin-cypress/src/setup-handoff.js +125 -0
- package/packages/datadog-plugin-cypress/src/support.js +1217 -439
- package/packages/datadog-plugin-elevenlabs/src/index.js +69 -0
- package/packages/datadog-plugin-google-cloud-pubsub/src/consumer.js +10 -7
- package/packages/datadog-plugin-google-cloud-pubsub/src/producer.js +19 -52
- package/packages/datadog-plugin-google-cloud-pubsub/src/pubsub-push-subscription.js +4 -2
- package/packages/datadog-plugin-google-cloud-pubsub/src/pubsub-request-context.js +25 -4
- package/packages/datadog-plugin-graphql/src/execute.js +2 -2
- package/packages/datadog-plugin-graphql/src/utils.js +5 -5
- package/packages/datadog-plugin-http/src/client.js +32 -9
- package/packages/datadog-plugin-http2/src/client.js +38 -13
- package/packages/datadog-plugin-jest/src/index.js +25 -3
- package/packages/datadog-plugin-mocha/src/index.js +47 -6
- package/packages/datadog-plugin-next/src/index.js +112 -14
- package/packages/datadog-plugin-oracledb/src/connection-parser.js +21 -11
- package/packages/datadog-plugin-playwright/src/index.js +4 -0
- package/packages/datadog-plugin-prisma/src/datadog-tracing-helper.js +5 -3
- package/packages/datadog-plugin-react-router/src/index.js +118 -0
- package/packages/datadog-plugin-trpc/src/index.js +15 -0
- package/packages/datadog-plugin-trpc/src/procedure.js +48 -0
- package/packages/datadog-plugin-trpc/src/request.js +81 -0
- package/packages/datadog-plugin-typesafe/src/index.js +17 -0
- package/packages/datadog-plugin-typesafe/src/tracing.js +31 -0
- package/packages/datadog-plugin-undici/src/index.js +22 -7
- package/packages/datadog-plugin-vitest/src/index.js +8 -0
- package/packages/datadog-turbopack/index.js +4 -28
- package/packages/datadog-turbopack/src/loader.js +14 -452
- package/packages/datadog-webpack/index.js +3 -55
- package/packages/dd-trace/src/agent/info.js +2 -1
- package/packages/dd-trace/src/aiguard/evaluation.js +62 -1
- package/packages/dd-trace/src/aiguard/sdk.js +8 -13
- package/packages/dd-trace/src/aiguard/tags.js +2 -0
- package/packages/dd-trace/src/appsec/blocking/index.js +4 -0
- package/packages/dd-trace/src/appsec/graphql.js +91 -6
- package/packages/dd-trace/src/appsec/recommended.json +1287 -90
- package/packages/dd-trace/src/before-exit.js +32 -0
- package/packages/dd-trace/src/bootstrap.js +5 -3
- package/packages/dd-trace/src/ci-visibility/early-flake-detection/get-known-tests.js +24 -18
- package/packages/dd-trace/src/ci-visibility/exporters/ci-visibility-exporter.js +16 -36
- package/packages/dd-trace/src/ci-visibility/exporters/git/git_metadata.js +41 -13
- package/packages/dd-trace/src/ci-visibility/exporters/request.js +2 -3
- package/packages/dd-trace/src/ci-visibility/intelligent-test-runner/get-skippable-suites.js +10 -18
- package/packages/dd-trace/src/ci-visibility/requests/get-library-configuration.js +10 -15
- package/packages/dd-trace/src/ci-visibility/requests/route.js +44 -0
- package/packages/dd-trace/src/ci-visibility/telemetry-logs.js +5 -0
- package/packages/dd-trace/src/ci-visibility/telemetry.js +6 -0
- package/packages/dd-trace/src/ci-visibility/test-annotations.js +72 -0
- package/packages/dd-trace/src/ci-visibility/test-declaration-annotations.js +170 -0
- package/packages/dd-trace/src/ci-visibility/test-management/get-test-management-tests.js +10 -17
- package/packages/dd-trace/src/ci-visibility/test-optimization-http-cache-schema.js +9 -134
- package/packages/dd-trace/src/ci-visibility/test-optimization-http-cache.js +11 -156
- package/packages/dd-trace/src/config/config-types.d.ts +3 -0
- package/packages/dd-trace/src/config/defaults.js +9 -3
- package/packages/dd-trace/src/config/generated-config-types.d.ts +46 -2
- package/packages/dd-trace/src/config/index.js +111 -43
- package/packages/dd-trace/src/config/parsers.js +18 -1
- package/packages/dd-trace/src/config/supported-configurations.json +174 -4
- package/packages/dd-trace/src/constants.js +1 -0
- package/packages/dd-trace/src/debugger/pause-duration-histogram.js +2 -1
- package/packages/dd-trace/src/debugger/probe_sampler.js +6 -6
- package/packages/dd-trace/src/encode/0.4.js +2 -2
- package/packages/dd-trace/src/esm-module-load.js +58 -0
- package/packages/dd-trace/src/exporter.js +23 -15
- package/packages/dd-trace/src/exporters/agent/index.js +3 -1
- package/packages/dd-trace/src/exporters/agentless/index.js +3 -1
- package/packages/dd-trace/src/exporters/common/request.js +83 -50
- package/packages/dd-trace/src/exporters/common/retry.js +12 -7
- package/packages/dd-trace/src/exporters/common/url.js +1 -1
- package/packages/dd-trace/src/exporters/llmobs/index.js +135 -0
- package/packages/dd-trace/src/exporters/log/index.js +4 -3
- package/packages/dd-trace/src/id.js +1 -1
- package/packages/dd-trace/src/lambda/facade.js +74 -0
- package/packages/dd-trace/src/lambda/handler.js +3 -41
- package/packages/dd-trace/src/lambda/index.js +38 -15
- package/packages/dd-trace/src/lambda/runtime/patch.js +19 -3
- package/packages/dd-trace/src/lambda/wrap.js +44 -0
- package/packages/dd-trace/src/llmobs/constants/tags.js +3 -0
- package/packages/dd-trace/src/llmobs/experiments/experiment.js +10 -5
- package/packages/dd-trace/src/llmobs/experiments/index.js +2 -3
- package/packages/dd-trace/src/llmobs/experiments/noop.js +5 -2
- package/packages/dd-trace/src/llmobs/index.js +13 -2
- package/packages/dd-trace/src/llmobs/plugins/claude-agent-sdk/index.js +1 -1
- package/packages/dd-trace/src/llmobs/plugins/elevenlabs.js +96 -0
- package/packages/dd-trace/src/llmobs/plugins/genai/index.js +1 -1
- package/packages/dd-trace/src/llmobs/plugins/genai/util.js +27 -10
- package/packages/dd-trace/src/llmobs/plugins/openai/realtime.js +38 -11
- package/packages/dd-trace/src/llmobs/plugins/typesafe/index.js +102 -0
- package/packages/dd-trace/src/llmobs/plugins/vertexai.js +10 -2
- package/packages/dd-trace/src/llmobs/prompts/cache.js +3 -1
- package/packages/dd-trace/src/llmobs/sdk.js +21 -1
- package/packages/dd-trace/src/llmobs/span_processor.js +219 -12
- package/packages/dd-trace/src/llmobs/tagger.js +25 -0
- package/packages/dd-trace/src/llmobs/writers/util.js +3 -3
- package/packages/dd-trace/src/log/channels.js +4 -0
- package/packages/dd-trace/src/log/writer.js +13 -2
- package/packages/dd-trace/src/openfeature/agentless_configuration_source.js +68 -6
- package/packages/dd-trace/src/openfeature/configuration_source.js +41 -17
- package/packages/dd-trace/src/openfeature/debug-logging-hook.js +66 -3
- package/packages/dd-trace/src/openfeature/exposure-hook.js +185 -0
- package/packages/dd-trace/src/openfeature/flag-selection.js +152 -0
- package/packages/dd-trace/src/openfeature/flagging_provider.js +58 -14
- package/packages/dd-trace/src/openfeature/remote_config.js +16 -3
- package/packages/dd-trace/src/openfeature/writers/base.js +63 -30
- package/packages/dd-trace/src/openfeature/writers/exposures.js +161 -1
- package/packages/dd-trace/src/openfeature/writers/flag-eval-evp-hook.js +5 -0
- package/packages/dd-trace/src/openfeature/writers/flag-evaluation-aggregation.js +9 -4
- package/packages/dd-trace/src/openfeature/writers/flag-evaluation-payload.js +2 -0
- package/packages/dd-trace/src/openfeature/writers/flag-evaluation-pii.js +2 -0
- package/packages/dd-trace/src/openfeature/writers/split-features.js +25 -0
- package/packages/dd-trace/src/opentelemetry/logs/index.js +11 -0
- package/packages/dd-trace/src/opentelemetry/logs/otlp_http_log_exporter.js +1 -1
- package/packages/dd-trace/src/opentelemetry/metrics/index.js +7 -1
- package/packages/dd-trace/src/opentelemetry/metrics/otlp_http_metric_exporter.js +1 -1
- package/packages/dd-trace/src/opentelemetry/metrics/otlp_span_stats_exporter.js +4 -1
- package/packages/dd-trace/src/opentelemetry/metrics/periodic_metric_reader.js +2 -2
- package/packages/dd-trace/src/opentelemetry/otlp/otlp_http_exporter_base.js +19 -1
- package/packages/dd-trace/src/opentelemetry/span-ending-hook.js +5 -1
- package/packages/dd-trace/src/opentelemetry/span-helpers.js +6 -1
- package/packages/dd-trace/src/opentelemetry/span.js +2 -2
- package/packages/dd-trace/src/opentelemetry/startup-config.js +174 -0
- package/packages/dd-trace/src/opentelemetry/trace/otlp_http_trace_exporter.js +1 -1
- package/packages/dd-trace/src/opentelemetry/trace/otlp_transformer.js +7 -1
- package/packages/dd-trace/src/opentelemetry/tracer_provider.js +5 -1
- package/packages/dd-trace/src/opentracing/propagation/tracestate.js +77 -23
- package/packages/dd-trace/src/opentracing/tracer.js +33 -13
- package/packages/dd-trace/src/otel-thread-ctx.js +72 -49
- package/packages/dd-trace/src/plugin_manager.js +34 -7
- package/packages/dd-trace/src/plugins/ci_plugin.js +45 -14
- package/packages/dd-trace/src/plugins/index.js +9 -0
- package/packages/dd-trace/src/plugins/plugin.js +4 -2
- package/packages/dd-trace/src/plugins/tracing.js +1 -1
- package/packages/dd-trace/src/plugins/util/ci.js +18 -1
- package/packages/dd-trace/src/plugins/util/git-cache.js +4 -4
- package/packages/dd-trace/src/plugins/util/git.js +273 -86
- package/packages/dd-trace/src/plugins/util/http-otel-semantics.js +77 -50
- package/packages/dd-trace/src/plugins/util/inferred_proxy.js +12 -4
- package/packages/dd-trace/src/plugins/util/status-validator.js +23 -10
- package/packages/dd-trace/src/plugins/util/tags.js +6 -0
- package/packages/dd-trace/src/plugins/util/test.js +90 -45
- package/packages/dd-trace/src/plugins/util/url.js +10 -2
- package/packages/dd-trace/src/plugins/util/user-provided-git.js +2 -2
- package/packages/dd-trace/src/plugins/util/web.js +81 -10
- package/packages/dd-trace/src/process-tags/index.js +1 -1
- package/packages/dd-trace/src/profiling/config.js +6 -3
- package/packages/dd-trace/src/profiling/webspan-utils.js +6 -5
- package/packages/dd-trace/src/proxy.js +48 -57
- package/packages/dd-trace/src/serverless.js +3 -2
- package/packages/dd-trace/src/span_processor.js +41 -9
- package/packages/dd-trace/src/span_stats.js +28 -2
- package/packages/dd-trace/src/startup-log.js +8 -5
- package/packages/dd-trace/src/tagger.js +7 -5
- package/packages/dd-trace/src/telemetry/dependencies.js +4 -0
- package/packages/dd-trace/src/telemetry/index.js +3 -0
- package/packages/dd-trace/src/telemetry/logs/index.js +21 -2
- package/packages/dd-trace/src/telemetry/logs/log-collector.js +1 -0
- package/packages/dd-trace/src/telemetry/metrics.js +2 -1
- package/packages/dd-trace/src/telemetry/telemetry.js +10 -3
- package/packages/dd-trace/src/tracer.js +0 -2
- package/packages/dd-trace/src/util.js +1 -1
- package/packages/dd-trace/src/web-tags-cache.js +8 -9
- package/register.js +4 -2
- package/vendor/dist/@apm-js-collab/code-transformer/LICENSE +489 -0
- package/vendor/dist/{@opentelemetry/resources → @datadog/flagging-core}/LICENSE +22 -2
- package/vendor/dist/@datadog/flagging-core/index.js +1 -0
- package/vendor/dist/@datadog/openfeature-node-server/LICENSE +21 -1
- package/vendor/dist/@datadog/openfeature-node-server/index.js +1 -1
- package/vendor/dist/@datadog/openfeature-node-server/rules-based/LICENSE +3 -1
- package/vendor/dist/@datadog/openfeature-node-server/rules-based/index.d.ts +78 -0
- package/vendor/dist/@datadog/openfeature-node-server/rules-based/index.js +1 -1
- package/vendor/dist/@datadog/sketches-js/LICENSE +263 -0
- package/vendor/dist/@datadog/source-map/LICENSE +1 -0
- package/vendor/dist/@isaacs/ttlcache/LICENSE +13 -0
- package/vendor/dist/@opentelemetry/core/LICENSE +209 -1
- package/vendor/dist/@opentelemetry/core/index.js +1 -1
- package/vendor/dist/crypto-randomuuid/LICENSE +3 -0
- package/vendor/dist/escape-string-regexp/LICENSE +13 -0
- package/vendor/dist/esquery/LICENSE +2 -0
- package/vendor/dist/https-proxy-agent/LICENSE +80 -1
- package/vendor/dist/istanbul-lib-coverage/LICENSE +2 -0
- package/vendor/dist/jest-docblock/LICENSE +16 -0
- package/vendor/dist/jsonpath-plus/LICENSE +13 -0
- package/vendor/dist/limiter/LICENSE +2 -0
- package/vendor/dist/lodash.sortby/LICENSE +2 -0
- package/vendor/dist/lru-cache/LICENSE +13 -0
- package/vendor/dist/meriyah/LICENSE +13 -0
- package/vendor/dist/module-details-from-path/LICENSE +2 -0
- package/vendor/dist/mutexify/promise/LICENSE +28 -0
- package/vendor/dist/pprof-format/LICENSE +13 -0
- package/vendor/dist/pprof-format/index.js +1 -1
- package/vendor/dist/protobufjs/LICENSE +219 -0
- package/vendor/dist/protobufjs/minimal/LICENSE +219 -0
- package/vendor/dist/proxy-from-env/LICENSE +13 -0
- package/vendor/dist/retry/LICENSE +2 -0
- package/vendor/dist/rfdc/LICENSE +2 -0
- package/vendor/dist/semifies/LICENSE +3 -1
- package/vendor/dist/shell-quote/LICENSE +3 -1
- package/vendor/dist/source-map/LICENSE +1 -0
- package/vendor/dist/source-map/lib/util/LICENSE +1 -0
- package/vendor/dist/tlhunter-sorted-set/LICENSE +2 -0
- package/vendor/dist/ttl-set/LICENSE +28 -0
- package/ci/diagnose.js +0 -2215
- package/ci/runbook.md +0 -299
- package/ci/test-optimization-validation/approval-artifacts.js +0 -175
- package/ci/test-optimization-validation/approval.js +0 -386
- package/ci/test-optimization-validation/artifact-id.js +0 -19
- package/ci/test-optimization-validation/blocker-category.js +0 -24
- package/ci/test-optimization-validation/bounded-json.js +0 -120
- package/ci/test-optimization-validation/ci-command-candidate.js +0 -77
- package/ci/test-optimization-validation/ci-discovery.js +0 -192
- package/ci/test-optimization-validation/ci-package-scripts.js +0 -169
- package/ci/test-optimization-validation/ci-remediation.js +0 -283
- package/ci/test-optimization-validation/cli.js +0 -954
- package/ci/test-optimization-validation/command-blocker.js +0 -377
- package/ci/test-optimization-validation/command-output-policy.js +0 -188
- package/ci/test-optimization-validation/command-runner.js +0 -650
- package/ci/test-optimization-validation/environment.js +0 -88
- package/ci/test-optimization-validation/executable-approval.js +0 -47
- package/ci/test-optimization-validation/executable.js +0 -244
- package/ci/test-optimization-validation/execution-lock.js +0 -70
- package/ci/test-optimization-validation/framework-adapters/cucumber-validation.json +0 -3
- package/ci/test-optimization-validation/framework-adapters/cucumber.js +0 -767
- package/ci/test-optimization-validation/framework-adapters/cypress.js +0 -99
- package/ci/test-optimization-validation/framework-adapters/playwright.js +0 -175
- package/ci/test-optimization-validation/framework-adapters/vitest.js +0 -513
- package/ci/test-optimization-validation/generated-file-policy.js +0 -63
- package/ci/test-optimization-validation/generated-files.js +0 -425
- package/ci/test-optimization-validation/generated-test-contract.js +0 -284
- package/ci/test-optimization-validation/generated-verifier.js +0 -235
- package/ci/test-optimization-validation/literal-environment.js +0 -56
- package/ci/test-optimization-validation/literal-glob.js +0 -52
- package/ci/test-optimization-validation/manifest-loader.js +0 -116
- package/ci/test-optimization-validation/manifest-scaffold.js +0 -1276
- package/ci/test-optimization-validation/manifest-schema.js +0 -695
- package/ci/test-optimization-validation/offline-fixtures.js +0 -335
- package/ci/test-optimization-validation/offline-output.js +0 -406
- package/ci/test-optimization-validation/package-check.js +0 -97
- package/ci/test-optimization-validation/payload-normalizer.js +0 -72
- package/ci/test-optimization-validation/plan-writer.js +0 -541
- package/ci/test-optimization-validation/preflight-runner.js +0 -186
- package/ci/test-optimization-validation/project-build-artifact.js +0 -31
- package/ci/test-optimization-validation/redaction.js +0 -319
- package/ci/test-optimization-validation/report-writer.js +0 -666
- package/ci/test-optimization-validation/result-semantics.js +0 -103
- package/ci/test-optimization-validation/runner-command.js +0 -264
- package/ci/test-optimization-validation/runner-contract.js +0 -695
- package/ci/test-optimization-validation/safe-files.js +0 -202
- package/ci/test-optimization-validation/scenarios/auto-test-retries.js +0 -171
- package/ci/test-optimization-validation/scenarios/basic-reporting.js +0 -407
- package/ci/test-optimization-validation/scenarios/ci-wiring.js +0 -666
- package/ci/test-optimization-validation/scenarios/early-flake-detection.js +0 -142
- package/ci/test-optimization-validation/scenarios/helpers.js +0 -621
- package/ci/test-optimization-validation/scenarios/test-management.js +0 -219
- package/ci/test-optimization-validation/source-text.js +0 -84
- package/ci/test-optimization-validation/static-diagnosis.js +0 -166
- package/ci/test-optimization-validation/test-output.js +0 -120
- package/ci/test-optimization-validation/validation-blocker.js +0 -21
- package/ci/validate-test-optimization.js +0 -3
- package/packages/datadog-esbuild/src/resolver.js +0 -284
- package/packages/dd-trace/src/ci-visibility/exporters/ci-validation/index.js +0 -156
- package/packages/dd-trace/src/ci-visibility/exporters/ci-validation/msgpack-to-json.js +0 -287
- package/packages/dd-trace/src/ci-visibility/exporters/ci-validation/payload-projection.js +0 -84
- package/packages/dd-trace/src/ci-visibility/exporters/ci-validation/sink.js +0 -368
- package/packages/dd-trace/src/ci-visibility/exporters/ci-validation/writer.js +0 -59
- package/vendor/dist/@opentelemetry/resources/index.js +0 -1
|
@@ -1,284 +0,0 @@
|
|
|
1
|
-
'use strict'
|
|
2
|
-
|
|
3
|
-
const childProcess = require('node:child_process')
|
|
4
|
-
const readline = require('node:readline')
|
|
5
|
-
|
|
6
|
-
const { getEnvironmentVariables } = require('../../dd-trace/src/config/helper')
|
|
7
|
-
|
|
8
|
-
const MAX_PENDING_REQUESTS = 1024
|
|
9
|
-
const MAX_STDERR_LENGTH = 16 * 1024
|
|
10
|
-
const LOAD_OPERATION = 0
|
|
11
|
-
const RESOLVE_OPERATION = 1
|
|
12
|
-
const RESOLVER_SOURCE = String.raw`
|
|
13
|
-
import { createReadStream, createWriteStream } from 'node:fs'
|
|
14
|
-
import readline from 'node:readline'
|
|
15
|
-
|
|
16
|
-
const requests = createReadStream(null, { fd: 3, autoClose: false })
|
|
17
|
-
const responses = createWriteStream(null, { fd: 4, autoClose: false })
|
|
18
|
-
const lines = readline.createInterface({ input: requests })
|
|
19
|
-
|
|
20
|
-
for await (const line of lines) {
|
|
21
|
-
let request
|
|
22
|
-
try {
|
|
23
|
-
request = JSON.parse(line)
|
|
24
|
-
const url = await import.meta.resolve(request.specifier, request.parentURL)
|
|
25
|
-
responses.write(JSON.stringify({ id: request.id, url }) + '\n')
|
|
26
|
-
} catch (error) {
|
|
27
|
-
responses.write(JSON.stringify({
|
|
28
|
-
error: {
|
|
29
|
-
code: error?.code,
|
|
30
|
-
message: String(error?.message ?? error),
|
|
31
|
-
},
|
|
32
|
-
id: request?.id,
|
|
33
|
-
}) + '\n')
|
|
34
|
-
}
|
|
35
|
-
}
|
|
36
|
-
responses.end()
|
|
37
|
-
`
|
|
38
|
-
|
|
39
|
-
/** @typedef {{ specifier: string, parentURL: string }} StarReexport */
|
|
40
|
-
|
|
41
|
-
/**
|
|
42
|
-
* @typedef {{ exportNames: Iterable<string>, starReexports?: StarReexport[] }} ModuleExports
|
|
43
|
-
*/
|
|
44
|
-
|
|
45
|
-
/**
|
|
46
|
-
* @typedef {Set<string>|ModuleExports} GetExportsValue
|
|
47
|
-
*/
|
|
48
|
-
|
|
49
|
-
/**
|
|
50
|
-
* @typedef {[typeof LOAD_OPERATION, URL, object] | [typeof RESOLVE_OPERATION, string, object]} GetExportsOperation
|
|
51
|
-
*/
|
|
52
|
-
|
|
53
|
-
/**
|
|
54
|
-
* @typedef {{ done: false, value: GetExportsOperation } | { done: true, value: GetExportsValue }} GetExportsResult
|
|
55
|
-
*/
|
|
56
|
-
|
|
57
|
-
/**
|
|
58
|
-
* @typedef {{
|
|
59
|
-
* next: (value?: unknown) => GetExportsResult,
|
|
60
|
-
* throw: (error?: unknown) => GetExportsResult,
|
|
61
|
-
* }} GetExportsGenerator
|
|
62
|
-
*/
|
|
63
|
-
|
|
64
|
-
class EsmResolver {
|
|
65
|
-
#child
|
|
66
|
-
#closed = false
|
|
67
|
-
#closedPromise
|
|
68
|
-
#failure
|
|
69
|
-
#nextId = 0
|
|
70
|
-
#pending = new Map()
|
|
71
|
-
#readline
|
|
72
|
-
#rejectClosed
|
|
73
|
-
#request
|
|
74
|
-
#resolveClosed
|
|
75
|
-
#stderr = ''
|
|
76
|
-
|
|
77
|
-
constructor () {
|
|
78
|
-
this.#closedPromise = new Promise((resolve, reject) => {
|
|
79
|
-
this.#resolveClosed = resolve
|
|
80
|
-
this.#rejectClosed = reject
|
|
81
|
-
})
|
|
82
|
-
// Mark lifecycle failures handled immediately. close() still returns the original promise.
|
|
83
|
-
this.#closedPromise.catch(() => {})
|
|
84
|
-
}
|
|
85
|
-
|
|
86
|
-
/**
|
|
87
|
-
* @param {string} specifier
|
|
88
|
-
* @param {URL|string} parentURL
|
|
89
|
-
* @returns {Promise<string>}
|
|
90
|
-
*/
|
|
91
|
-
resolve (specifier, parentURL) {
|
|
92
|
-
if (this.#closed) return Promise.reject(this.#failure ?? new Error('The ESM resolver is closed'))
|
|
93
|
-
if (this.#pending.size >= MAX_PENDING_REQUESTS) {
|
|
94
|
-
return Promise.reject(new Error(`The ESM resolver has more than ${MAX_PENDING_REQUESTS} pending requests`))
|
|
95
|
-
}
|
|
96
|
-
|
|
97
|
-
try {
|
|
98
|
-
this.#start()
|
|
99
|
-
} catch (error) {
|
|
100
|
-
this.#failure = error
|
|
101
|
-
this.#closed = true
|
|
102
|
-
this.#resolveClosed()
|
|
103
|
-
return Promise.reject(error)
|
|
104
|
-
}
|
|
105
|
-
const id = this.#nextId++
|
|
106
|
-
return new Promise((resolve, reject) => {
|
|
107
|
-
this.#pending.set(id, { reject, resolve })
|
|
108
|
-
this.#request.write(`${JSON.stringify({ id, parentURL: String(parentURL), specifier })}\n`, error => {
|
|
109
|
-
if (error) this.#rejectRequest(id, error)
|
|
110
|
-
})
|
|
111
|
-
})
|
|
112
|
-
}
|
|
113
|
-
|
|
114
|
-
/** @returns {Promise<void>} */
|
|
115
|
-
close () {
|
|
116
|
-
if (!this.#closed) {
|
|
117
|
-
this.#closed = true
|
|
118
|
-
if (this.#child) this.#request.end()
|
|
119
|
-
else this.#resolveClosed()
|
|
120
|
-
}
|
|
121
|
-
return this.#closedPromise
|
|
122
|
-
}
|
|
123
|
-
|
|
124
|
-
#start () {
|
|
125
|
-
if (this.#child) return
|
|
126
|
-
const env = getEnvironmentVariables()
|
|
127
|
-
env.DD_CIVISIBILITY_ENABLED = 'false'
|
|
128
|
-
env.DD_INSTRUMENTATION_TELEMETRY_ENABLED = 'false'
|
|
129
|
-
env.DD_TRACE_ENABLED = 'false'
|
|
130
|
-
this.#child = childProcess.spawn(process.execPath, [
|
|
131
|
-
'--no-warnings',
|
|
132
|
-
'--experimental-import-meta-resolve',
|
|
133
|
-
'--input-type=module',
|
|
134
|
-
'--eval',
|
|
135
|
-
RESOLVER_SOURCE,
|
|
136
|
-
], {
|
|
137
|
-
env,
|
|
138
|
-
stdio: ['ignore', 'ignore', 'pipe', 'pipe', 'pipe'],
|
|
139
|
-
})
|
|
140
|
-
this.#request = this.#child.stdio[3]
|
|
141
|
-
this.#readline = readline.createInterface({ input: this.#child.stdio[4] })
|
|
142
|
-
this.#readline.on('line', this.#handleLine)
|
|
143
|
-
this.#request.once('error', this.#handleError)
|
|
144
|
-
this.#child.stdio[4].once('error', this.#handleError)
|
|
145
|
-
this.#child.stderr.on('data', this.#handleStderr)
|
|
146
|
-
this.#child.once('error', this.#handleError)
|
|
147
|
-
this.#child.once('close', this.#handleClose)
|
|
148
|
-
}
|
|
149
|
-
|
|
150
|
-
/** @param {string} line */
|
|
151
|
-
#handleLine = (line) => {
|
|
152
|
-
let response
|
|
153
|
-
try {
|
|
154
|
-
response = JSON.parse(line)
|
|
155
|
-
} catch (error) {
|
|
156
|
-
this.#fail(new Error(`The ESM resolver returned malformed JSON: ${error.message}`))
|
|
157
|
-
return
|
|
158
|
-
}
|
|
159
|
-
|
|
160
|
-
const id = response?.id
|
|
161
|
-
if (!Number.isSafeInteger(id) || !this.#pending.has(id)) {
|
|
162
|
-
this.#fail(new Error('The ESM resolver returned an unknown request identifier'))
|
|
163
|
-
return
|
|
164
|
-
}
|
|
165
|
-
if (typeof response.url === 'string' && response.error === undefined) {
|
|
166
|
-
const request = this.#pending.get(id)
|
|
167
|
-
this.#pending.delete(id)
|
|
168
|
-
request.resolve(response.url)
|
|
169
|
-
return
|
|
170
|
-
}
|
|
171
|
-
if (typeof response.error?.message !== 'string' || response.url !== undefined) {
|
|
172
|
-
this.#rejectRequest(id, new Error('The ESM resolver returned a malformed response'))
|
|
173
|
-
return
|
|
174
|
-
}
|
|
175
|
-
|
|
176
|
-
const error = /** @type {Error & { code?: string }} */ (new Error(response.error.message))
|
|
177
|
-
if (typeof response.error.code === 'string') error.code = response.error.code
|
|
178
|
-
this.#rejectRequest(id, error)
|
|
179
|
-
}
|
|
180
|
-
|
|
181
|
-
/** @param {Buffer|string} chunk */
|
|
182
|
-
#handleStderr = (chunk) => {
|
|
183
|
-
if (this.#stderr.length >= MAX_STDERR_LENGTH) return
|
|
184
|
-
this.#stderr += String(chunk).slice(0, MAX_STDERR_LENGTH - this.#stderr.length)
|
|
185
|
-
}
|
|
186
|
-
|
|
187
|
-
/** @param {Error} error */
|
|
188
|
-
#handleError = (error) => {
|
|
189
|
-
this.#fail(error)
|
|
190
|
-
}
|
|
191
|
-
|
|
192
|
-
/**
|
|
193
|
-
* @param {number|null} code
|
|
194
|
-
* @param {string|null} signal
|
|
195
|
-
*/
|
|
196
|
-
#handleClose = (code, signal) => {
|
|
197
|
-
this.#readline?.close()
|
|
198
|
-
this.#closed = true
|
|
199
|
-
let error = this.#failure
|
|
200
|
-
if (!error && (code !== 0 || this.#pending.size > 0)) {
|
|
201
|
-
const reason = signal ? `signal ${signal}` : `status ${code}`
|
|
202
|
-
const stderr = this.#stderr.trim()
|
|
203
|
-
error = new Error(`The ESM resolver exited with ${reason}${stderr ? `: ${stderr}` : ''}`)
|
|
204
|
-
this.#failure = error
|
|
205
|
-
}
|
|
206
|
-
if (error) {
|
|
207
|
-
this.#rejectAll(error)
|
|
208
|
-
this.#rejectClosed(error)
|
|
209
|
-
} else {
|
|
210
|
-
this.#resolveClosed()
|
|
211
|
-
}
|
|
212
|
-
}
|
|
213
|
-
|
|
214
|
-
/**
|
|
215
|
-
* @param {number} id
|
|
216
|
-
* @param {Error} error
|
|
217
|
-
*/
|
|
218
|
-
#rejectRequest (id, error) {
|
|
219
|
-
const request = this.#pending.get(id)
|
|
220
|
-
if (!request) return
|
|
221
|
-
this.#pending.delete(id)
|
|
222
|
-
request.reject(error)
|
|
223
|
-
}
|
|
224
|
-
|
|
225
|
-
/** @param {Error} error */
|
|
226
|
-
#fail (error) {
|
|
227
|
-
if (this.#failure) return
|
|
228
|
-
this.#failure = error
|
|
229
|
-
this.#closed = true
|
|
230
|
-
this.#rejectAll(error)
|
|
231
|
-
this.#request?.destroy()
|
|
232
|
-
this.#child?.kill()
|
|
233
|
-
}
|
|
234
|
-
|
|
235
|
-
/** @param {Error} error */
|
|
236
|
-
#rejectAll (error) {
|
|
237
|
-
for (const request of this.#pending.values()) request.reject(error)
|
|
238
|
-
this.#pending.clear()
|
|
239
|
-
}
|
|
240
|
-
}
|
|
241
|
-
|
|
242
|
-
/** @returns {EsmResolver} */
|
|
243
|
-
function createEsmResolver () {
|
|
244
|
-
return new EsmResolver()
|
|
245
|
-
}
|
|
246
|
-
|
|
247
|
-
/**
|
|
248
|
-
* Drives the generator returned by import-in-the-middle >=3.1.0 export discovery.
|
|
249
|
-
*
|
|
250
|
-
* @param {GetExportsGenerator} exportsGenerator
|
|
251
|
-
* @param {(url: URL, context: object) => { source: string, format: string }} getSource
|
|
252
|
-
* @param {(specifier: string, context: object) => Promise<{ format: string, url: URL }>} resolve
|
|
253
|
-
* @returns {Promise<ModuleExports>}
|
|
254
|
-
*/
|
|
255
|
-
async function driveGetExportsGenerator (exportsGenerator, getSource, resolve) {
|
|
256
|
-
let next = exportsGenerator.next()
|
|
257
|
-
while (next.done === false) {
|
|
258
|
-
let result
|
|
259
|
-
let failure
|
|
260
|
-
let threw = false
|
|
261
|
-
|
|
262
|
-
try {
|
|
263
|
-
const operation = next.value
|
|
264
|
-
const operationType = operation[0]
|
|
265
|
-
|
|
266
|
-
if (operationType === LOAD_OPERATION) {
|
|
267
|
-
result = getSource(operation[1], operation[2])
|
|
268
|
-
} else if (operationType === RESOLVE_OPERATION) {
|
|
269
|
-
// eslint-disable-next-line no-await-in-loop
|
|
270
|
-
result = await resolve(operation[1], operation[2])
|
|
271
|
-
} else {
|
|
272
|
-
throw new Error(`Unsupported import-in-the-middle getExports operation: ${operationType}`)
|
|
273
|
-
}
|
|
274
|
-
} catch (error) {
|
|
275
|
-
threw = true
|
|
276
|
-
failure = error
|
|
277
|
-
}
|
|
278
|
-
|
|
279
|
-
next = threw ? exportsGenerator.throw(failure) : exportsGenerator.next(result)
|
|
280
|
-
}
|
|
281
|
-
return next.value instanceof Set ? { exportNames: next.value } : next.value
|
|
282
|
-
}
|
|
283
|
-
|
|
284
|
-
module.exports = { createEsmResolver, driveGetExportsGenerator }
|
|
@@ -1,156 +0,0 @@
|
|
|
1
|
-
'use strict'
|
|
2
|
-
|
|
3
|
-
/* eslint-disable eslint-rules/eslint-process-env */
|
|
4
|
-
|
|
5
|
-
const TestOptimizationHttpCache = require('../../test-optimization-http-cache').TestOptimizationHttpCache
|
|
6
|
-
const CiVisibilityExporter = require('../ci-visibility-exporter')
|
|
7
|
-
const { CiValidationSink } = require('./sink')
|
|
8
|
-
const CiValidationWriter = require('./writer')
|
|
9
|
-
|
|
10
|
-
const VALIDATION_MANIFEST_ENV = '_DD_TEST_OPTIMIZATION_VALIDATION_MANIFEST_FILE'
|
|
11
|
-
const VALIDATION_OUTPUT_ENV = '_DD_TEST_OPTIMIZATION_VALIDATION_OUTPUT_DIR'
|
|
12
|
-
const VALIDATION_CAPTURE_MODE_ENV = '_DD_TEST_OPTIMIZATION_VALIDATION_CAPTURE_MODE'
|
|
13
|
-
|
|
14
|
-
class CiValidationExporter extends CiVisibilityExporter {
|
|
15
|
-
/**
|
|
16
|
-
* Creates an immediately available cache-only Test Optimization exporter.
|
|
17
|
-
*
|
|
18
|
-
* @param {object} config tracer configuration
|
|
19
|
-
*/
|
|
20
|
-
constructor (config) {
|
|
21
|
-
const validationManifestPath = process.env[VALIDATION_MANIFEST_ENV]
|
|
22
|
-
const validationOutputRoot = process.env[VALIDATION_OUTPUT_ENV]
|
|
23
|
-
if (!validationManifestPath) {
|
|
24
|
-
throw new Error('Offline Test Optimization validation requires an explicit private manifest path.')
|
|
25
|
-
}
|
|
26
|
-
if (!validationOutputRoot) {
|
|
27
|
-
throw new Error('Offline Test Optimization validation requires an explicit private output root.')
|
|
28
|
-
}
|
|
29
|
-
const cache = new TestOptimizationHttpCache({
|
|
30
|
-
validationManifestPath,
|
|
31
|
-
})
|
|
32
|
-
super(config, { cacheOnly: true, testOptimizationHttpCache: cache })
|
|
33
|
-
|
|
34
|
-
this._sink = new CiValidationSink(validationOutputRoot, {
|
|
35
|
-
captureMode: process.env[VALIDATION_CAPTURE_MODE_ENV] || 'strict',
|
|
36
|
-
})
|
|
37
|
-
this._writer = new CiValidationWriter({ sink: this._sink, tags: config.tags })
|
|
38
|
-
this._isInitialized = true
|
|
39
|
-
this._isGzipCompatible = false
|
|
40
|
-
this._resolveCanUseCiVisProtocol(true)
|
|
41
|
-
this._resolveGit()
|
|
42
|
-
this.exportUncodedTraces()
|
|
43
|
-
|
|
44
|
-
this._finalizeValidation = () => this.flush(() => this._sink.writeSummary())
|
|
45
|
-
globalThis[Symbol.for('dd-trace')].beforeExitHandlers.add(this._finalizeValidation)
|
|
46
|
-
process.once('exit', this._finalizeValidation)
|
|
47
|
-
}
|
|
48
|
-
|
|
49
|
-
/**
|
|
50
|
-
* Loads library settings from the validator-controlled cache.
|
|
51
|
-
*
|
|
52
|
-
* @param {object} testConfiguration test configuration identity
|
|
53
|
-
* @param {Function} callback completion callback
|
|
54
|
-
*/
|
|
55
|
-
getLibraryConfiguration (testConfiguration, callback) {
|
|
56
|
-
super.getLibraryConfiguration(testConfiguration, (err, configuration) => {
|
|
57
|
-
this._sink.writeInputResult('settings', err)
|
|
58
|
-
if (err) process.exitCode = 1
|
|
59
|
-
callback(err, configuration)
|
|
60
|
-
})
|
|
61
|
-
}
|
|
62
|
-
|
|
63
|
-
/**
|
|
64
|
-
* Loads known tests from the validator-controlled cache.
|
|
65
|
-
*
|
|
66
|
-
* @param {object} testConfiguration test configuration identity
|
|
67
|
-
* @param {Function} callback completion callback
|
|
68
|
-
*/
|
|
69
|
-
getKnownTests (testConfiguration, callback) {
|
|
70
|
-
super.getKnownTests(testConfiguration, (err, tests) => {
|
|
71
|
-
this._sink.writeInputResult('known_tests', err)
|
|
72
|
-
if (err) process.exitCode = 1
|
|
73
|
-
callback(err, tests)
|
|
74
|
-
})
|
|
75
|
-
}
|
|
76
|
-
|
|
77
|
-
/**
|
|
78
|
-
* Loads skippable suites from the validator-controlled cache.
|
|
79
|
-
*
|
|
80
|
-
* @param {object} testConfiguration test configuration identity
|
|
81
|
-
* @param {Function} callback completion callback
|
|
82
|
-
*/
|
|
83
|
-
getSkippableSuites (testConfiguration, callback) {
|
|
84
|
-
super.getSkippableSuites(testConfiguration, (err, suites, correlationId, coverage) => {
|
|
85
|
-
this._sink.writeInputResult('skippable_tests', err)
|
|
86
|
-
if (err) process.exitCode = 1
|
|
87
|
-
callback(err, suites, correlationId, coverage)
|
|
88
|
-
})
|
|
89
|
-
}
|
|
90
|
-
|
|
91
|
-
/**
|
|
92
|
-
* Loads managed tests from the validator-controlled cache.
|
|
93
|
-
*
|
|
94
|
-
* @param {object} testConfiguration test configuration identity
|
|
95
|
-
* @param {Function} callback completion callback
|
|
96
|
-
*/
|
|
97
|
-
getTestManagementTests (testConfiguration, callback) {
|
|
98
|
-
super.getTestManagementTests(testConfiguration, (err, tests) => {
|
|
99
|
-
this._sink.writeInputResult('test_management', err)
|
|
100
|
-
if (err) process.exitCode = 1
|
|
101
|
-
callback(err, tests)
|
|
102
|
-
})
|
|
103
|
-
}
|
|
104
|
-
|
|
105
|
-
/**
|
|
106
|
-
* Resolves the inherited git-upload gate without performing an upload.
|
|
107
|
-
*
|
|
108
|
-
*/
|
|
109
|
-
sendGitMetadata () {
|
|
110
|
-
this._resolveGit()
|
|
111
|
-
}
|
|
112
|
-
|
|
113
|
-
/**
|
|
114
|
-
* Drops debugger logs in offline validation mode.
|
|
115
|
-
*
|
|
116
|
-
*/
|
|
117
|
-
exportDiLogs () {}
|
|
118
|
-
|
|
119
|
-
/**
|
|
120
|
-
* Reports that code coverage is outside the offline validator's scope.
|
|
121
|
-
*
|
|
122
|
-
*/
|
|
123
|
-
canReportCodeCoverage () {
|
|
124
|
-
return false
|
|
125
|
-
}
|
|
126
|
-
|
|
127
|
-
/**
|
|
128
|
-
* Rejects coverage report upload in offline validation mode.
|
|
129
|
-
*
|
|
130
|
-
* @param {object} options ignored upload options
|
|
131
|
-
* @param {Function} callback completion callback
|
|
132
|
-
*/
|
|
133
|
-
uploadCoverageReport (options, callback) {
|
|
134
|
-
callback(new Error('Coverage report upload is disabled during offline Test Optimization validation.'))
|
|
135
|
-
}
|
|
136
|
-
|
|
137
|
-
/**
|
|
138
|
-
* Reports that screenshot upload is unavailable.
|
|
139
|
-
*
|
|
140
|
-
*/
|
|
141
|
-
canUploadTestScreenshots () {
|
|
142
|
-
return false
|
|
143
|
-
}
|
|
144
|
-
|
|
145
|
-
/**
|
|
146
|
-
* Rejects screenshot upload in offline validation mode.
|
|
147
|
-
*
|
|
148
|
-
* @param {object} options ignored upload options
|
|
149
|
-
* @param {Function} callback completion callback
|
|
150
|
-
*/
|
|
151
|
-
uploadTestScreenshot (options, callback) {
|
|
152
|
-
callback(new Error('Screenshot upload is disabled during offline Test Optimization validation.'))
|
|
153
|
-
}
|
|
154
|
-
}
|
|
155
|
-
|
|
156
|
-
module.exports = CiValidationExporter
|