FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

test_runner: do not tag-filter test file wrappers by atlowChemi · Pull Request #65170 · nodejs/node · GitHub

/ node Public

test_runner: do not tag-filter test file wrappers - #65170

Merged
nodejs-github-bot merged 1 commit into
nodejs:mainfrom
atlowChemi:test_runner-filetest-tag-filter
Aug 11, 2026
Merged

test_runner: do not tag-filter test file wrappers#65170
nodejs-github-bot merged 1 commit into
nodejs:mainfrom
atlowChemi:test_runner-filetest-tag-filter

Conversation

Copy link
Copy Markdown
Member

Under run({ testTagFilters, isolation: 'process' }) the parent process's FileTest wrappers have empty tag sets, so any include filter filtered out the wrappers themselves and no test file was ever spawned. The same applied to the single re-spawned child in watch mode with isolation: 'none'.

Exempt file wrappers from tag filtering: the filter is re-emitted to the child process and applied there, matching isolation: 'none' results.

This also removes the testTagFilterExpressions bookkeeping and the isolation-conditional assignment of testTagFilters, both of which existed only to keep the parent process from filtering its own file wrappers. The parent now always holds the canonical filter values and re-emits them to child processes.

Refs: #63221

Under run({ testTagFilters, isolation: 'process' }) the parent
process's FileTest wrappers have empty tag sets, so any include filter
filtered out the wrappers themselves and no test file was ever
spawned. The same applied to the single re-spawned child in watch mode
with isolation 'none'.

Exempt file wrappers from tag filtering: the filter is re-emitted to
the child process and applied there, matching isolation 'none'
results.

This also removes the testTagFilterExpressions bookkeeping and the
isolation-conditional assignment of testTagFilters, both of which
existed only to keep the parent process from filtering its own file
wrappers. The parent now always holds the canonical filter values and
re-emits them to child processes.

Refs: nodejs#63221
Signed-off-by: atlowChemi <chemi@atlow.co.il>

Copy link
Copy Markdown
Collaborator

Review requested:

  • @nodejs/test_runner

nodejs-github-bot added needs-ci PRs that need a full CI run. test_runner Issues and PRs related to the test runner subsystem. labels Aug 9, 2026
atlowChemi added the request-ci Add this label to start a Jenkins CI on a PR. label Aug 9, 2026
github-actions Bot removed the request-ci Add this label to start a Jenkins CI on a PR. label Aug 9, 2026

This comment was marked as outdated.

Copy link
Copy Markdown
Collaborator

atlowChemi added the author ready PRs that have at least one approval, no outstanding review comments, and a CI started. label Aug 9, 2026

codecov Bot commented Aug 9, 2026
edited
Loading

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 90.31%. Comparing base (65a0265) to head (216b8cc).
⚠️ Report is 23 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main   #65170      +/-   ##
==========================================
- Coverage   90.32%   90.31%   -0.01%     
==========================================
  Files         759      759              
  Lines      248342   248336       -6     
  Branches    46866    46857       -9     
==========================================
- Hits       224320   224291      -29     
- Misses      15461    15466       +5     
- Partials     8561     8579      +18     
Files with missing lines Coverage Δ
lib/internal/test_runner/runner.js 94.72% <100.00%> (+0.28%) ⬆️
lib/internal/test_runner/test.js 97.93% <100.00%> (+<0.01%) ⬆️
lib/internal/test_runner/utils.js 65.98% <100.00%> (-0.37%) ⬇️

... and 46 files with indirect coverage changes

🚀 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.

atlowChemi added the commit-queue Add this label to land a pull request using GitHub Actions. label Aug 10, 2026
nodejs-github-bot merged commit 2749388 into nodejs:main Aug 11, 2026
85 of 86 checks passed

Copy link
Copy Markdown
Collaborator

Landed in 2749388

nodejs-github-bot removed the commit-queue Add this label to land a pull request using GitHub Actions. label Aug 11, 2026
aduh95 pushed a commit that referenced this pull request Aug 13, 2026
Under run({ testTagFilters, isolation: 'process' }) the parent
process's FileTest wrappers have empty tag sets, so any include filter
filtered out the wrappers themselves and no test file was ever
spawned. The same applied to the single re-spawned child in watch mode
with isolation 'none'.

Exempt file wrappers from tag filtering: the filter is re-emitted to
the child process and applied there, matching isolation 'none'
results.

This also removes the testTagFilterExpressions bookkeeping and the
isolation-conditional assignment of testTagFilters, both of which
existed only to keep the parent process from filtering its own file
wrappers. The parent now always holds the canonical filter values and
re-emits them to child processes.

Refs: #63221
Signed-off-by: atlowChemi <chemi@atlow.co.il>
PR-URL: #65170
Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com>
Reviewed-By: Moshe Atlow <moshe@atlow.co.il>
atlowChemi deleted the test_runner-filetest-tag-filter branch August 17, 2026 16:48
aduh95 pushed a commit that referenced this pull request Aug 25, 2026
Under run({ testTagFilters, isolation: 'process' }) the parent
process's FileTest wrappers have empty tag sets, so any include filter
filtered out the wrappers themselves and no test file was ever
spawned. The same applied to the single re-spawned child in watch mode
with isolation 'none'.

Exempt file wrappers from tag filtering: the filter is re-emitted to
the child process and applied there, matching isolation 'none'
results.

This also removes the testTagFilterExpressions bookkeeping and the
isolation-conditional assignment of testTagFilters, both of which
existed only to keep the parent process from filtering its own file
wrappers. The parent now always holds the canonical filter values and
re-emits them to child processes.

Refs: #63221
Signed-off-by: atlowChemi <chemi@atlow.co.il>
PR-URL: #65170
Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com>
Reviewed-By: Moshe Atlow <moshe@atlow.co.il>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

author ready PRs that have at least one approval, no outstanding review comments, and a CI started. needs-ci PRs that need a full CI run. test_runner Issues and PRs related to the test runner subsystem.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants


Back | FazBrowse Home | New Git URL