GeezerVisonThe World Wide Web, restored to 800 pixels of glory. | |||||||||||||||||||||||
| Home|About|Gaming cabinet|Archives|How it works|Starter sites | |||||||||||||||||||||||
GeezerVison is showing github.com — test_runner: scope rerun ids to the entry file by MoLow · Pull Request #67512 · nodejs/node Conversation
Member
With process isolation, the Prefix the identifier of a test defined outside of its entry file with
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page. All reactionsThe location of a test file run in a child process was resolved against `process.cwd()`, so `run()` reported a wrong `entryFile` for relative paths when called with a different `cwd`. Signed-off-by: Moshe Atlow <[email protected]> With process isolation, the `--test-rerun-failures` state file is written by the parent process, which numbered tests sharing a location across all test files, while each child process numbers them within its own file. A test defined in a helper used by several test files was therefore looked up in a slot belonging to another file, and a failing test could be replayed as passed without running. Prefix the identifier of a test defined outside of its entry file with the entry file when tests run in per-file child processes, and build the identifier with the same helper on both sides. Signed-off-by: Moshe Atlow <[email protected]>
Collaborator
All reactions
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page.
atlowChemi
approved these changes
Collaborator
All reactions
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page.
benjamingr
approved these changes
|
There was an error while loading. Please reload this page.
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@ ## main #67512 +/- ## ========================================== - Coverage 90.68% 90.66% -0.03% ========================================== Files 799 799 Lines 280246 280260 +14 Branches 54113 54121 +8 ========================================== - Hits 254150 254090 -60 - Misses 16234 16284 +50 - Partials 9862 9886 +24
🚀 New features to boost your workflow:
|
Sorry, something went wrong.
There was an error while loading. Please reload this page.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
Landed in d78268e...20a93ab |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
The location of a test file run in a child process was resolved against `process.cwd()`, so `run()` reported a wrong `entryFile` for relative paths when called with a different `cwd`. Signed-off-by: Moshe Atlow <[email protected]> PR-URL: #67512 Reviewed-By: Chemi Atlow <[email protected]> Reviewed-By: Benjamin Gruenbaum <[email protected]>
With process isolation, the `--test-rerun-failures` state file is written by the parent process, which numbered tests sharing a location across all test files, while each child process numbers them within its own file. A test defined in a helper used by several test files was therefore looked up in a slot belonging to another file, and a failing test could be replayed as passed without running. Prefix the identifier of a test defined outside of its entry file with the entry file when tests run in per-file child processes, and build the identifier with the same helper on both sides. Signed-off-by: Moshe Atlow <[email protected]> PR-URL: #67512 Reviewed-By: Chemi Atlow <[email protected]> Reviewed-By: Benjamin Gruenbaum <[email protected]>
The location of a test file run in a child process was resolved against `process.cwd()`, so `run()` reported a wrong `entryFile` for relative paths when called with a different `cwd`. Signed-off-by: Moshe Atlow <[email protected]> PR-URL: #67512 Reviewed-By: Chemi Atlow <[email protected]> Reviewed-By: Benjamin Gruenbaum <[email protected]>
With process isolation, the `--test-rerun-failures` state file is written by the parent process, which numbered tests sharing a location across all test files, while each child process numbers them within its own file. A test defined in a helper used by several test files was therefore looked up in a slot belonging to another file, and a failing test could be replayed as passed without running. Prefix the identifier of a test defined outside of its entry file with the entry file when tests run in per-file child processes, and build the identifier with the same helper on both sides. Signed-off-by: Moshe Atlow <[email protected]> PR-URL: #67512 Reviewed-By: Chemi Atlow <[email protected]> Reviewed-By: Benjamin Gruenbaum <[email protected]>
The location of a test file run in a child process was resolved against `process.cwd()`, so `run()` reported a wrong `entryFile` for relative paths when called with a different `cwd`. Signed-off-by: Moshe Atlow <[email protected]> PR-URL: nodejs#67512 Reviewed-By: Chemi Atlow <[email protected]> Reviewed-By: Benjamin Gruenbaum <[email protected]>
With process isolation, the `--test-rerun-failures` state file is written by the parent process, which numbered tests sharing a location across all test files, while each child process numbers them within its own file. A test defined in a helper used by several test files was therefore looked up in a slot belonging to another file, and a failing test could be replayed as passed without running. Prefix the identifier of a test defined outside of its entry file with the entry file when tests run in per-file child processes, and build the identifier with the same helper on both sides. Signed-off-by: Moshe Atlow <[email protected]> PR-URL: nodejs#67512 Reviewed-By: Chemi Atlow <[email protected]> Reviewed-By: Benjamin Gruenbaum <[email protected]>
There was an error while loading. Please reload this page.
Successfully merging this pull request may close these issues.
There was an error while loading. Please reload this page.