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

test_runner: handle file rename and deletion under watch mode by jakecastelli · Pull Request #53114 · nodejs/node · GitHub

/ node Public

test_runner: handle file rename and deletion under watch mode - #53114

Merged
nodejs-github-bot merged 2 commits into
nodejs:mainfrom
jakecastelli:fix-test-runner-rename-delete-error
Jun 2, 2024
Merged

test_runner: handle file rename and deletion under watch mode#53114
nodejs-github-bot merged 2 commits into
nodejs:mainfrom
jakecastelli:fix-test-runner-rename-delete-error

Conversation

jakecastelli commented May 23, 2024
edited
Loading

Copy link
Copy Markdown
Member

Fixes: #53113

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 May 23, 2024
jakecastelli force-pushed the fix-test-runner-rename-delete-error branch from 174efbb to 019625e Compare May 23, 2024 07:05
Comment thread lib/internal/test_runner/runner.js Outdated
Comment thread lib/internal/test_runner/runner.js Outdated
jakecastelli force-pushed the fix-test-runner-rename-delete-error branch from 019625e to d23cbc4 Compare May 24, 2024 00:06

MoLow left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

please add a test

jakecastelli force-pushed the fix-test-runner-rename-delete-error branch 2 times, most recently from 1f0ae63 to 0d22545 Compare May 25, 2024 15:55

Copy link
Copy Markdown
Member Author

@MoLow I have added tests to cover both rename and delete a watched test file 👍 could you please take a look when you have time

jakecastelli force-pushed the fix-test-runner-rename-delete-error branch from 0d22545 to b1816bb Compare May 25, 2024 16:04

jakecastelli commented May 31, 2024
edited
Loading

Copy link
Copy Markdown
Member Author

Could someone help me to kick start the CI? 👀

Thanks!

Copy link
Copy Markdown
Collaborator

Copy link
Copy Markdown
Member Author

Looks like there are a few failing jobs (most likely flaky tests 👀) I guess they need a rerun?

Copy link
Copy Markdown
Collaborator

Copy link
Copy Markdown
Collaborator

MoLow added commit-queue Add this label to land a pull request using GitHub Actions. commit-queue-squash Add this label to instruct the Commit Queue to squash all the PR commits into the first one. labels Jun 2, 2024
nodejs-github-bot removed the commit-queue Add this label to land a pull request using GitHub Actions. label Jun 2, 2024
nodejs-github-bot merged commit 7125931 into nodejs:main Jun 2, 2024

Copy link
Copy Markdown
Collaborator

Landed in 7125931

targos pushed a commit that referenced this pull request Jun 3, 2024
Fixes: #53113
PR-URL: #53114
Reviewed-By: Moshe Atlow <moshe@atlow.co.il>
Reviewed-By: Chemi Atlow <chemi@atlow.co.il>
Reviewed-By: Raz Luvaton <rluvaton@gmail.com>
RafaelGSS mentioned this pull request Jun 7, 2024
soophoo pushed a commit to soophoo/node that referenced this pull request Jun 20, 2024
Fixes: nodejs#53113
PR-URL: nodejs#53114
Reviewed-By: Moshe Atlow <moshe@atlow.co.il>
Reviewed-By: Chemi Atlow <chemi@atlow.co.il>
Reviewed-By: Raz Luvaton <rluvaton@gmail.com>
marco-ippolito pushed a commit that referenced this pull request Jul 19, 2024
Fixes: #53113
PR-URL: #53114
Reviewed-By: Moshe Atlow <moshe@atlow.co.il>
Reviewed-By: Chemi Atlow <chemi@atlow.co.il>
Reviewed-By: Raz Luvaton <rluvaton@gmail.com>
nodejs-github-bot pushed a commit that referenced this pull request Aug 14, 2024
When a watched test file is being deleted then the referenced dependency
file(s) will be updated incorrect when `unfilterFilesOwnedBy` method is
called, which will cause tests not being rerun when its referenced
dependency changed. To prevent this case, we can simply `return` when we
detect a watched test file being deleted.

PR-URL: #53533
Refs: #53114
Reviewed-By: Chemi Atlow <chemi@atlow.co.il>
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Matteo Collina <matteo.collina@gmail.com>
RafaelGSS pushed a commit that referenced this pull request Aug 19, 2024
When a watched test file is being deleted then the referenced dependency
file(s) will be updated incorrect when `unfilterFilesOwnedBy` method is
called, which will cause tests not being rerun when its referenced
dependency changed. To prevent this case, we can simply `return` when we
detect a watched test file being deleted.

PR-URL: #53533
Refs: #53114
Reviewed-By: Chemi Atlow <chemi@atlow.co.il>
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Matteo Collina <matteo.collina@gmail.com>
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

commit-queue-squash Add this label to instruct the Commit Queue to squash all the PR commits into the first one. 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.

Rename or delete a watched test file will cause MODULE_NOT_FOUND error

6 participants


Back | FazBrowse Home | New Git URL