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

doc, test: update --watch for linux recursive watch by avivkeller · Pull Request #55256 · nodejs/node · GitHub

/ node Public

doc, test: update --watch for linux recursive watch - #55256

Closed
avivkeller wants to merge 1 commit into
nodejs:mainfrom
avivkeller:watch-mode-recursive
Closed

doc, test: update --watch for linux recursive watch#55256
avivkeller wants to merge 1 commit into
nodejs:mainfrom
avivkeller:watch-mode-recursive

Conversation

avivkeller commented Oct 3, 2024
edited
Loading

Copy link
Copy Markdown
Member

Follow-up #45098

This PR removes the unused error code ERR_FEATURE_UNAVAILABLE_ON_PLATFORM, and stops skipping some of the watch mode tests on Linux machines.

nodejs-github-bot added errors Issues and PRs related to JavaScript errors originated in Node.js core. needs-ci PRs that need a full CI run. labels Oct 3, 2024

Copy link
Copy Markdown
Member

I'm a bit surprised ERR_FEATURE_UNAVAILABLE_ON_PLATFORM is now unused -- I was under the impression that watch mode still doesn't work on e.g. IBM i (most watch tests skip) and at one point that error was returned there.

cc @nodejs/platform-ibmi

avivkeller commented Oct 3, 2024
edited
Loading

Copy link
Copy Markdown
Member Author

If you search for the error, it's only mentioned in the docs and defined in errors.js, it is never thrown.

Copy link
Copy Markdown
Member

If you search for the error, it's only mentioned in the docs and defined in errors.js, it is never thrown.

I can see that, but I'm questioning whether the code was changed to not throw the error anymore on all platforms despite watch not working on IBM i -- AFAIK it's a system limitation there.

avivkeller added the watch-mode Issues and PRs related to watch mode label Oct 3, 2024

codecov Bot commented Oct 3, 2024
edited
Loading

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 88.41%. Comparing base (1d5ed72) to head (a0719b8).
⚠️ Report is 3112 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main   #55256      +/-   ##
==========================================
- Coverage   88.41%   88.41%   -0.01%     
==========================================
  Files         652      652              
  Lines      186572   186585      +13     
  Branches    36045    36061      +16     
==========================================
+ Hits       164957   164967      +10     
+ Misses      14899    14887      -12     
- Partials     6716     6731      +15     
Files with missing lines Coverage Δ
lib/internal/errors.js 96.98% <ø> (-0.01%) ⬇️

... and 49 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.

avivkeller commented Oct 4, 2024
edited
Loading

Copy link
Copy Markdown
Member Author

FWIW the tests are skipped on IBMi

abmusse commented Oct 7, 2024
edited
Loading

Copy link
Copy Markdown
Contributor

@richardlau

Looks like calling fs.watch on IBM i returns ENOSYS.

const fs = require('fs');

fs.watch('dummy', (eventType, filename) => {
  console.log(`event type is: ${eventType}`);
  if (filename) {
    console.log(`filename provided: ${filename}`);
  } else {
    console.log('filename not provided');
  }
});
Error: ENOSYS: function not implemented, watch 'dummy'

I'm not sure if ever returned ERR_FEATURE_UNAVAILABLE_ON_PLATFORM in the past but currently ENOSYS is being returned.

Copy link
Copy Markdown
Member

Maybe I misremembered then. 🤷

avivkeller added linux Issues and PRs related to the Linux platform. doc Issues and PRs related to the documentations. labels Oct 14, 2024

avivkeller commented Nov 3, 2024
edited
Loading

Copy link
Copy Markdown
Member Author

I've added https://github.com/nodejs/node/labels/dont-land-on-v18.x as #45098 didn't land on that release line. If you could review it would be appreciated :-)

Copy link
Copy Markdown
Member Author

Bump for reviews

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

doc Issues and PRs related to the documentations. errors Issues and PRs related to JavaScript errors originated in Node.js core. linux Issues and PRs related to the Linux platform. needs-ci PRs that need a full CI run. review wanted PRs that need reviews. watch-mode Issues and PRs related to watch mode

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants


Back | FazBrowse Home | New Git URL