Skip to content

fix(test-optimization): defer Vitest EFD faultiness detection - #9700

Open
juan-fernandez wants to merge 4 commits into
masterfrom
juan-fernandez/fix-vitest-efd-empty-suites
Open

fix(test-optimization): defer Vitest EFD faultiness detection#9700
juan-fernandez wants to merge 4 commits into
masterfrom
juan-fernandez/fix-vitest-efd-empty-suites

Conversation

@juan-fernandez

@juan-fernandez juan-fernandez commented Aug 5, 2026

Copy link
Copy Markdown
Collaborator

What does this PR do?

Changes Vitest 4 Early Flake Detection faultiness evaluation from a pre-run comparison of selected suites against known tests to runtime suite admission.

For Vitest 4, the tracer uses the existing worker transports to count unique suites that actually collect at least one runnable new test. EFD retries continue until that count exceeds the larger of the configured absolute and percentage-derived suite limits. Suites admitted before the limit is crossed finish their retries, while the crossing suite and subsequent suites do not retry. New tests continue to report test.is_new after EFD is marked faulty.

This applies to standard Vitest workers, no-worker init, and Browser Mode. Vitest 1–3 retain the existing pre-run faultiness check.

Motivation

Vitest and Storybook can select suite specifications that collect no tests. Those suites never appear in the known-tests response, so the previous pre-run suite comparison treated them as new and could disable EFD before any tests ran.

Basing the numerator on suites containing runnable new tests avoids false faulty-session detection without backend changes. Limiting the new protocol to Vitest 4 keeps the implementation small and covers the affected Vitest 4.1.10 session.

Additional Notes

Validation:

  • Standard Vitest 1.6 and 4.1.10, covering legacy behavior plus fork and thread transports
  • No-worker init Vitest 3.2.6 and 4.1.10, covering legacy behavior plus fork and thread transports
  • Vitest Browser Mode 4.1.10
  • Vitest main instrumentation unit test
  • ESLint and git diff --check

@dd-octo-sts

dd-octo-sts Bot commented Aug 5, 2026

Copy link
Copy Markdown
Contributor

Overall package size

Self size: 7.87 MB
Deduped: 8.53 MB
No deduping: 8.53 MB

Dependency sizes | name | version | self size | total size | |------|---------|-----------|------------| | import-in-the-middle | 3.3.3 | 125.43 kB | 441.68 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-official

datadog-official Bot commented Aug 5, 2026

Copy link
Copy Markdown

Tests

🎉 All green!

🧪 All tests passed
❄️ No new flaky tests detected

🎯 Code Coverage (details)
Patch Coverage: 97.94%
Overall Coverage: 98.52% (+0.01%)

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

@datadog-official

datadog-official Bot commented Aug 5, 2026

Copy link
Copy Markdown

Bits found no code fix to apply

🟢 Investigated · ⚪ No code fix needed

benchmark: [26, 3], integration-guardrails (20.0.0), and aws-sdk (oldest, stepfunctions) fail independently of the Vitest EFD changes, so no code change was made. The benchmark and guardrails jobs have repeated failures on master, and the Step Functions job has a recurring missing-trace timeout across many runs.


View in Datadog | Reviewed commit dd2487b · Any feedback? Reach out in #deveng-pr-agent

@codecov

codecov Bot commented Aug 5, 2026

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 97.93814% with 6 lines in your changes missing coverage. Please review.
✅ Project coverage is 98.51%. Comparing base (af34ba4) to head (00df06e).
⚠️ Report is 12 commits behind head on master.

Files with missing lines Patch % Lines
...ckages/datadog-instrumentations/src/vitest-main.js 96.25% 6 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master    #9700      +/-   ##
==========================================
- Coverage   98.52%   98.51%   -0.01%     
==========================================
  Files         957      963       +6     
  Lines      135131   136089     +958     
  Branches    11681    11934     +253     
==========================================
+ Hits       133132   134072     +940     
- Misses       1999     2017      +18     
Flag Coverage Δ
aiguard 56.89% <100.00%> (-0.11%) ⬇️
aiguard-integration 55.75% <100.00%> (-0.07%) ⬇️
apm-bucket-0 57.14% <100.00%> (-0.12%) ⬇️
apm-bucket-1 63.23% <100.00%> (-0.16%) ⬇️
apm-bucket-2 62.02% <100.00%> (-0.16%) ⬇️
apm-bucket-3 59.57% <100.00%> (-0.13%) ⬇️
apm-capabilities-tracing 62.58% <100.00%> (+0.02%) ⬆️
apm-integrations-aerospike 56.19% <100.00%> (-0.10%) ⬇️
apm-integrations-confluentinc-kafka-javascript 60.87% <100.00%> (-0.15%) ⬇️
apm-integrations-couchbase 56.61% <100.00%> (-0.11%) ⬇️
apm-integrations-http 62.02% <100.00%> (-0.03%) ⬇️
apm-integrations-kafkajs 61.46% <100.00%> (-0.16%) ⬇️
apm-integrations-next 59.18% <100.00%> (-0.10%) ⬇️
apm-integrations-prisma 58.20% <100.00%> (-0.11%) ⬇️
appsec 71.94% <100.00%> (-0.18%) ⬇️
appsec-express_fastify_graphql 69.37% <100.00%> (-0.14%) ⬇️
appsec-integration 50.16% <35.54%> (-0.03%) ⬇️
appsec-kafka_ldapjs_lodash 63.28% <100.00%> (-0.13%) ⬇️
appsec-mongodb-core_mongoose_mysql 66.89% <100.00%> (-0.12%) ⬇️
appsec-next 56.61% <100.00%> (+0.05%) ⬆️
appsec-node-serialize_passport_postgres 66.53% <100.00%> (-0.12%) ⬇️
appsec-sourcing_stripe_template 64.91% <100.00%> (-0.10%) ⬇️
debugger 64.11% <100.00%> (-0.17%) ⬇️
instrumentations-bucket-0 51.50% <100.00%> (-0.05%) ⬇️
instrumentations-bucket-1 59.52% <100.00%> (-0.13%) ⬇️
instrumentations-bucket-10 61.42% <100.00%> (-0.02%) ⬇️
instrumentations-bucket-11 51.41% <100.00%> (-0.05%) ⬇️
instrumentations-bucket-12 52.21% <100.00%> (-0.06%) ⬇️
instrumentations-bucket-13 51.52% <100.00%> (-0.05%) ⬇️
instrumentations-bucket-2 53.31% <100.00%> (-0.07%) ⬇️
instrumentations-bucket-3 58.58% <100.00%> (-0.12%) ⬇️
instrumentations-bucket-4 52.04% <100.00%> (-0.06%) ⬇️
instrumentations-bucket-5 57.09% <100.00%> (-0.15%) ⬇️
instrumentations-bucket-6 60.15% <100.00%> (-0.14%) ⬇️
instrumentations-bucket-7 57.95% <100.00%> (-0.10%) ⬇️
instrumentations-bucket-8 58.91% <100.00%> (-0.12%) ⬇️
instrumentations-bucket-9 60.97% <100.00%> (-0.02%) ⬇️
instrumentations-instrumentation-couchbase 50.77% <100.00%> (-0.04%) ⬇️
instrumentations-integration-esbuild 33.95% <35.54%> (-0.01%) ⬇️
llmobs-ai_anthropic_bedrock 62.75% <100.00%> (+0.27%) ⬆️
llmobs-bucket-1 61.24% <100.00%> (-0.11%) ⬇️
llmobs-openai 61.71% <100.00%> (-0.12%) ⬇️
llmobs-openai-agents_vertex-ai 59.70% <100.00%> (-0.10%) ⬇️
llmobs-sdk 66.51% <100.00%> (+0.32%) ⬆️
master-coverage 98.51% <97.93%> (?)
openfeature 55.54% <100.00%> (-0.07%) ⬇️
openfeature-unit 53.06% <100.00%> (-0.07%) ⬇️
platform-core_esbuild_instrumentations-misc 40.50% <35.54%> (-0.01%) ⬇️
platform-integration 60.40% <100.00%> (-0.11%) ⬇️
platform-shimmer_unit-guardrails_webpack 38.77% <35.54%> (+0.01%) ⬆️
plugins-bucket-0 56.71% <100.00%> (-0.10%) ⬇️
plugins-bucket-1 53.85% <100.00%> (-0.05%) ⬇️
plugins-bucket-11 61.73% <100.00%> (-0.14%) ⬇️
plugins-bucket-18 61.27% <100.00%> (-0.14%) ⬇️
plugins-bucket-19 59.47% <100.00%> (-0.14%) ⬇️
plugins-bucket-20 61.49% <100.00%> (-0.15%) ⬇️
plugins-bucket-4 58.09% <100.00%> (-0.11%) ⬇️
plugins-bullmq_cassandra_cookie 61.13% <100.00%> (-0.15%) ⬇️
plugins-cookie-parser_crypto_dd-trace-api 56.25% <100.00%> (-0.11%) ⬇️
plugins-fetch_fs_generic-pool 58.10% <100.00%> (-0.12%) ⬇️
plugins-google-cloud-pubsub_grpc_handlebars 63.98% <100.00%> (-0.17%) ⬇️
plugins-hapi_hono_ioredis 59.67% <100.00%> (-0.13%) ⬇️
plugins-jest_knex_langgraph 55.25% <100.00%> (-0.09%) ⬇️
plugins-ldapjs_light-my-request_limitd-client 58.01% <100.00%> (-0.11%) ⬇️
plugins-lodash_mariadb_memcached 57.57% <100.00%> (-0.12%) ⬇️
plugins-moleculer_mongodb_mongodb-core 61.25% <100.00%> (-0.15%) ⬇️
plugins-mongoose_multer_mysql 58.56% <100.00%> (-0.12%) ⬇️
plugins-mysql2_nats_node-serialize 60.08% <100.00%> (-0.14%) ⬇️
plugins-opensearch_passport-http_pino 58.99% <100.00%> (-0.13%) ⬇️
plugins-postgres_process_pug 58.15% <100.00%> (-0.12%) ⬇️
plugins-redis_router_sequelize 61.34% <100.00%> (-0.15%) ⬇️
plugins-test-and-upstream-rhea_undici_url 60.86% <100.00%> (-0.14%) ⬇️
plugins-valkey_vm_winston 57.51% <100.00%> (-0.11%) ⬇️
plugins-ws 59.02% <100.00%> (-0.13%) ⬇️
profiling 61.36% <100.00%> (-0.14%) ⬇️
serverless-aws-sdk-aws-sdk 54.79% <100.00%> (-0.12%) ⬇️
serverless-aws-sdk-base-inject-field 50.72% <100.00%> (-0.04%) ⬇️
serverless-aws-sdk-bedrockruntime 54.43% <100.00%> (-0.07%) ⬇️
serverless-aws-sdk-client 56.03% <100.00%> (-0.09%) ⬇️
serverless-aws-sdk-dynamodb 55.29% <100.00%> (-0.09%) ⬇️
serverless-aws-sdk-eventbridge 49.30% <100.00%> (-0.06%) ⬇️
serverless-aws-sdk-kinesis 58.80% <100.00%> (-0.12%) ⬇️
serverless-aws-sdk-lambda 56.96% <100.00%> (-0.10%) ⬇️
serverless-aws-sdk-s3 55.38% <100.00%> (-0.08%) ⬇️
serverless-aws-sdk-serverless-peer-service 59.20% <100.00%> (-0.12%) ⬇️
serverless-aws-sdk-sns 59.63% <100.00%> (-0.13%) ⬇️
serverless-aws-sdk-sqs 60.05% <100.00%> (-0.13%) ⬇️
serverless-aws-sdk-stepfunctions 55.22% <100.00%> (-0.08%) ⬇️
serverless-aws-sdk-util 51.26% <100.00%> (-0.05%) ⬇️
serverless-bucket-0 53.92% <100.00%> (-0.05%) ⬇️
serverless-bucket-1 58.74% <100.00%> (-0.12%) ⬇️
test-optimization-cucumber 71.41% <100.00%> (-0.06%) ⬇️
test-optimization-cypress 65.17% <100.00%> (-0.09%) ⬇️
test-optimization-jest 72.88% <100.00%> (-0.17%) ⬇️
test-optimization-mocha 72.45% <100.00%> (-0.16%) ⬇️
test-optimization-playwright-playwright-atr 60.09% <100.00%> (-0.07%) ⬇️
test-optimization-playwright-playwright-efd 60.22% <100.00%> (-0.07%) ⬇️
test-optimization-playwright-playwright-final-status 60.39% <100.00%> (-0.08%) ⬇️
test-optimization-playwright-playwright-impacted-tests 59.92% <100.00%> (+0.08%) ⬆️
test-optimization-playwright-playwright-reporting 61.10% <100.00%> (-0.18%) ⬇️
test-optimization-playwright-playwright-test-management 60.98% <100.00%> (-0.12%) ⬇️
test-optimization-playwright-playwright-test-span 60.13% <100.00%> (-0.14%) ⬇️
test-optimization-selenium 59.33% <100.00%> (-0.30%) ⬇️
test-optimization-testopt 57.79% <40.20%> (-0.02%) ⬇️
test-optimization-vitest 73.58% <96.90%> (-0.11%) ⬇️
test-optimization-vitest-browser 59.10% <80.75%> (+0.07%) ⬆️
test-optimization-webdriverio 64.80% <100.00%> (-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

Copy link
Copy Markdown
Collaborator Author

@codex review

@pr-commenter

pr-commenter Bot commented Aug 5, 2026

Copy link
Copy Markdown

Benchmarks

Benchmark execution time: 2026-08-05 21:23:08

Comparing candidate commit 00df06e in PR branch juan-fernandez/fix-vitest-efd-empty-suites with baseline commit af34ba4 in branch master.

📊 Benchmarking dashboard

Found 0 performance improvements and 0 performance regressions! Performance is the same for 2320 metrics, 38 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 [-205.858ms; +217.869ms] or [-7.708%; +8.157%]

scenario:appsec-appsec-enabled-26

  • unstable execution_time [-231.628ms; +235.426ms] or [-9.073%; +9.221%]

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

  • unstable execution_time [-162.050ms; +155.261ms] or [-5.227%; +5.008%]

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

  • unstable execution_time [-187.715ms; +190.718ms] or [-6.463%; +6.566%]

scenario:appsec-control-24

  • unstable execution_time [-116.379ms; +113.250ms] or [-9.352%; +9.100%]

scenario:appsec-control-26

  • unstable execution_time [-129.285ms; +125.512ms] or [-10.394%; +10.091%]

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

  • unstable execution_time [-18.156ms; +14.862ms] or [-6.984%; +5.717%]

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

  • unstable execution_time [-12.047ms; +17.141ms] or [-4.684%; +6.664%]

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

  • unstable execution_time [-15.550ms; +11.594ms] or [-6.055%; +4.514%]

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

  • unstable cpu_usage_percentage [-5.612%; +4.553%]
  • unstable execution_time [-34.177ms; +42.599ms] or [-6.197%; +7.725%]

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

  • unstable execution_time [-28.829ms; +35.102ms] or [-5.231%; +6.369%]

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

  • unstable execution_time [-27.280ms; +29.574ms] or [-5.016%; +5.438%]

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

  • unstable cpu_user_time [-2686.858ms; +4246.317ms] or [-28.110%; +44.425%]
  • unstable execution_time [-2868.814ms; +4453.619ms] or [-27.836%; +43.213%]
  • unstable instructions [-23.5G instructions; +37.3G instructions] or [-29.554%; +46.853%]
  • unstable max_rss_usage [-9.710MB; +13.531MB] or [-6.127%; +8.539%]
  • unstable throughput [-843.678op/s; +555.554op/s] or [-26.130%; +17.206%]

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

  • unstable cpu_user_time [-2.067s; +4.427s] or [-23.208%; +49.700%]
  • unstable execution_time [-2.144s; +4.509s] or [-22.299%; +46.885%]
  • unstable instructions [-17.6G instructions; +37.9G instructions] or [-24.216%; +52.058%]
  • unstable max_rss_usage [-8.522MB; +18.391MB] or [-5.335%; +11.514%]
  • unstable throughput [-1186.839op/s; +573.981op/s] or [-33.923%; +16.406%]

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

  • unstable cpu_user_time [-4286.572ms; +3105.237ms] or [-39.369%; +28.519%]
  • unstable execution_time [-4328.057ms; +3133.402ms] or [-37.187%; +26.923%]
  • unstable instructions [-38.5G instructions; +28.2G instructions] or [-42.013%; +30.811%]
  • unstable max_rss_usage [-14.836MB; +10.655MB] or [-9.102%; +6.536%]
  • unstable throughput [-616.478op/s; +861.874op/s] or [-20.882%; +29.194%]

scenario:dogstatsd-with-tags-20

  • unstable cpu_user_time [-461.135ms; +223.491ms] or [-9.112%; +4.416%]
  • unstable execution_time [-462.620ms; +226.930ms] or [-9.012%; +4.420%]
  • unstable throughput [-80231.723op/s; +168646.526op/s] or [-4.916%; +10.334%]

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

  • unstable cpu_usage_percentage [-7.451%; +3.167%]

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

  • unstable max_rss_usage [-29.232MB; +39.012MB] or [-7.297%; +9.738%]

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

  • unstable max_rss_usage [-2.694MB; +13.128MB] or [-2.047%; +9.975%]

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

  • unstable cpu_user_time [-618.638ms; +572.143ms] or [-5.338%; +4.936%]
  • unstable execution_time [-638.200ms; +584.152ms] or [-5.397%; +4.940%]
  • unstable throughput [-3.377op/s; +3.701op/s] or [-4.963%; +5.440%]

scenario:propagation-extract-26

  • unstable execution_time [-84.612ms; +112.173ms] or [-4.530%; +6.005%]

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: b710f8c77f

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread packages/datadog-instrumentations/src/vitest-main-no-worker-init.js Outdated
Comment thread packages/datadog-instrumentations/src/vitest-main.js Outdated
Comment thread packages/datadog-instrumentations/src/vitest-worker.js Outdated
@juan-fernandez

Copy link
Copy Markdown
Collaborator Author

@codex review

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. More of your lovely PRs please.

Reviewed commit: dd2487be7b

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

@juan-fernandez
juan-fernandez marked this pull request as ready for review August 5, 2026 20:04
@juan-fernandez
juan-fernandez requested review from a team as code owners August 5, 2026 20:04
@juan-fernandez
juan-fernandez requested review from bojbrook and removed request for a team August 5, 2026 20:04

@datadog-official datadog-official Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Datadog Autotest: PASS

More details

Runtime suite admission preserves the legacy absolute-and-percentage faultiness boundary while counting only runnable new tests, so empty selected Vitest suites no longer suppress EFD. The worker, no-worker, and Browser Mode paths consistently retain admitted retries and mark later suites as faulty after the configured threshold.

Was this helpful? React 👍 or 👎

📊 Validated against 4 scenarios · Open Bits AI session

🤖 Datadog Autotest · Commit dd2487b · What is Autotest? · @DataDog review to ask questions · Any feedback? Reach out in #autotest

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: dd2487be7b

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread packages/datadog-instrumentations/src/vitest-main.js
@juan-fernandez

Copy link
Copy Markdown
Collaborator Author

@codex review

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 00df06e454

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

@@ -1,5 +1,7 @@
import { afterEach, beforeAll, beforeEach, inject } from 'vitest'

import { requestEfdSuiteAdmission } from './vitest-efd-suite-admission.mjs'

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Allow the EFD helper in Browser Mode

In Browser Mode the setup file is served by Vite from outside the user's project, and addVitestBrowserSetupFileAccess() only adds vitest-no-worker-init-setup.mjs itself to server.fs.allow. This new static sibling import makes the browser request ci/vitest-efd-suite-admission.mjs too; because that file is not added to the allow list, Vite rejects the module load before any tests run, so Browser Mode Test Optimization setup breaks even when EFD admission is not used.

Useful? React with 👍 / 👎.

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