-
Notifications
You must be signed in to change notification settings - Fork 29.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
test: prevent unwanted dependencyOwners removal #55565
test: prevent unwanted dependencyOwners removal #55565
Conversation
|
Review requested:
|
|
The subsystem should be |
Hey @RedYetiDev, yes it makes sense 😁 cc @nodejs/fs WDYT about this? 😁 |
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #55565 +/- ##
=======================================
Coverage 88.43% 88.44%
=======================================
Files 654 654
Lines 187698 187701 +3
Branches 36123 36133 +10
=======================================
+ Hits 165998 166011 +13
+ Misses 14945 14936 -9
+ Partials 6755 6754 -1
|
|
Since the code change here is not directly related to the test runner, is it possible to create a test case that does not rely on the test runner?
Sometimes it's better to have things in separate test files. Even though the test runner can handle it, it can lead to other issues. For example, when a test is marked flaky, the entire test file is marked flaky (watch mode tests are almost always flaky). Additionally, the Python runner imposes a timeout per file, not per test. Bigger tests can lead to timeouts on some of the slower CI machines. |
remove file from watcher dependencyOwners on file change only if it has no other owners. Co-authored-by: Pietro Marchini <pietro.marchini94@gmail.com>
9f0b735
to
bd9a3ed
Compare
Co-authored-by: Pietro Marchini <pietro.marchini94@gmail.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
| if (common.isAIX) | ||
| common.skip('folder watch capability is limited in AIX.'); | ||
|
|
||
| tmpdir.refresh(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
As a new test, it would be helpful to include comments here describing what expected behaviors are being tested.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do you mean like a general summary? Because each block of code below has a comment of the behaviour
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hey @jasnell, is this comment a blocker for you?
If not, I suggest we go ahead and land it 😄
Commit Queue failed- Loading data for nodejs/node/pull/55565 ✔ Done loading data for nodejs/node/pull/55565 ----------------------------------- PR info ------------------------------------ Title test: prevent unwanted dependencyOwners removal (#55565) ⚠ Could not retrieve the email or name of the PR author's from user's GitHub profile! Branch Ceres6:test/test-runner-complex-dependencies -> nodejs:main Labels fs, author ready, needs-ci, test_runner, watch-mode Commits 5 - test: prevent unwanted dependencyOwners removal - fixup! fs: prevent unwanted dependencyOwners removal - fixup! fixup! fs: prevent unwanted dependencyOwners removal - fixup! fixup! fixup! fs: prevent unwanted dependencyOwners removal - Update test/parallel/test-watch-file-shared-dependency.mjs Committers 2 - Carlos Espa <carlos.espa@nearform.com> - GitHub <noreply@github.com> PR-URL: https://github.com/nodejs/node/pull/55565 Reviewed-By: Pietro Marchini <pietro.marchini94@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com> ------------------------------ Generated metadata ------------------------------ PR-URL: https://github.com/nodejs/node/pull/55565 Reviewed-By: Pietro Marchini <pietro.marchini94@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com> -------------------------------------------------------------------------------- ℹ This PR was created on Sun, 27 Oct 2024 19:08:05 GMT ✔ Approvals: 2 ✔ - Pietro Marchini (@pmarchini): https://github.com/nodejs/node/pull/55565#pullrequestreview-2407418012 ✔ - James M Snell (@jasnell) (TSC): https://github.com/nodejs/node/pull/55565#pullrequestreview-2416994220 ✔ Last GitHub CI successful ℹ Last Full PR CI on 2024-11-06T13:27:11Z: https://ci.nodejs.org/job/node-test-pull-request/63455/ - Querying data for job/node-test-pull-request/63455/ ✔ Last Jenkins CI successful -------------------------------------------------------------------------------- ✔ No git cherry-pick in progress ✔ No git am in progress ✔ No git rebase in progress -------------------------------------------------------------------------------- - Bringing origin/main up to date... From https://github.com/nodejs/node * branch main -> FETCH_HEAD ✔ origin/main is now up-to-date - Downloading patch for 55565 From https://github.com/nodejs/node * branch refs/pull/55565/merge -> FETCH_HEAD ✔ Fetched commits as b648d37ad760..44f0da079c64 -------------------------------------------------------------------------------- [main 6c99f996c3] test: prevent unwanted dependencyOwners removal Author: Carlos Espa <carlos.espa@nearform.com> Date: Sun Oct 27 20:00:31 2024 +0100 2 files changed, 133 insertions(+), 1 deletion(-) create mode 100644 test/parallel/test-runner-complex-dependencies.mjs [main 6cef4828a3] fixup! fs: prevent unwanted dependencyOwners removal Author: Carlos Espa <carlos.espa@nearform.com> Date: Wed Oct 30 12:24:13 2024 +0100 1 file changed, 5 insertions(+), 8 deletions(-) [main d056fb3b5a] fixup! fixup! fs: prevent unwanted dependencyOwners removal Author: Carlos Espa <carlos.espa@nearform.com> Date: Wed Oct 30 18:23:35 2024 +0100 1 file changed, 53 insertions(+) create mode 100644 test/parallel/test-watch-file-shared-dependency.mjs [main be9c31780f] fixup! fixup! fixup! fs: prevent unwanted dependencyOwners removal Author: Carlos Espa <carlos.espa@nearform.com> Date: Wed Oct 30 18:37:21 2024 +0100 1 file changed, 1 insertion(+), 1 deletion(-) [main 33fb04b773] Update test/parallel/test-watch-file-shared-dependency.mjs Author: Carlos Espa <43477095+Ceres6@users.noreply.github.com> Date: Thu Oct 31 09:25:46 2024 +0100 1 file changed, 1 insertion(+) ✔ Patches applied There are 5 commits in the PR. Attempting autorebase. Rebasing (2/10) Executing: git node land --amend --yes --------------------------------- New Message ---------------------------------- test: prevent unwanted dependencyOwners removalhttps://github.com/nodejs/node/actions/runs/11878050213 |
|
Landed in b0051de |
Remove files from watcher `dependencyOwners` on file change only if it has no other owners. Co-authored-by: Pietro Marchini <pietro.marchini94@gmail.com> PR-URL: #55565 Reviewed-By: Pietro Marchini <pietro.marchini94@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com>
Remove files from watcher `dependencyOwners` on file change only if it has no other owners. Co-authored-by: Pietro Marchini <pietro.marchini94@gmail.com> PR-URL: nodejs#55565 Reviewed-By: Pietro Marchini <pietro.marchini94@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com>
Remove files from watcher `dependencyOwners` on file change only if it has no other owners. Co-authored-by: Pietro Marchini <pietro.marchini94@gmail.com> PR-URL: nodejs#55565 Reviewed-By: Pietro Marchini <pietro.marchini94@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com>
Remove files from watcher `dependencyOwners` on file change only if it has no other owners. Co-authored-by: Pietro Marchini <pietro.marchini94@gmail.com> PR-URL: #55565 Reviewed-By: Pietro Marchini <pietro.marchini94@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com>
Remove files from watcher `dependencyOwners` on file change only if it has no other owners. Co-authored-by: Pietro Marchini <pietro.marchini94@gmail.com> PR-URL: #55565 Reviewed-By: Pietro Marchini <pietro.marchini94@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com>
Remove files from watcher `dependencyOwners` on file change only if it has no other owners. Co-authored-by: Pietro Marchini <pietro.marchini94@gmail.com> PR-URL: #55565 Reviewed-By: Pietro Marchini <pietro.marchini94@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com>


remove file from watcher dependencyOwners on file change only if it has no other owners.
Closes #55095