Skip to content
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

watch: check parent and child path properly #57425

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

jazelly
Copy link
Member

@jazelly jazelly commented Mar 12, 2025

Fixes: #57422

@nodejs-github-bot nodejs-github-bot added the needs-ci PRs that need a full CI run. label Mar 12, 2025
@jazelly jazelly force-pushed the fix-57422 branch 3 times, most recently from bb7f643 to 7a81702 Compare March 12, 2025 14:26
@jakecastelli jakecastelli added the watch-mode Issues and PRs related to watch mode label Mar 12, 2025
Copy link

codecov bot commented Mar 12, 2025

Codecov Report

Attention: Patch coverage is 90.90909% with 1 line in your changes missing coverage. Please review.

Project coverage is 90.23%. Comparing base (59f00d7) to head (dc04bc4).
Report is 35 commits behind head on main.

Files with missing lines Patch % Lines
lib/internal/watch_mode/files_watcher.js 90.90% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main   #57425      +/-   ##
==========================================
+ Coverage   90.21%   90.23%   +0.01%     
==========================================
  Files         629      629              
  Lines      185126   184963     -163     
  Branches    36225    36223       -2     
==========================================
- Hits       167016   166900     -116     
+ Misses      11055    11019      -36     
+ Partials     7055     7044      -11     
Files with missing lines Coverage Δ
lib/internal/watch_mode/files_watcher.js 89.20% <90.90%> (-0.07%) ⬇️

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

@jazelly jazelly force-pushed the fix-57422 branch 2 times, most recently from a9aa5b0 to 711c301 Compare March 12, 2025 23:50
@jazelly jazelly added the request-ci Add this label to start a Jenkins CI on a PR. label Mar 13, 2025
@github-actions github-actions bot removed the request-ci Add this label to start a Jenkins CI on a PR. label Mar 13, 2025
@nodejs-github-bot
Copy link
Collaborator

@nodejs-github-bot
Copy link
Collaborator

@jazelly jazelly added the request-ci Add this label to start a Jenkins CI on a PR. label Mar 14, 2025
@github-actions github-actions bot removed the request-ci Add this label to start a Jenkins CI on a PR. label Mar 14, 2025
@nodejs-github-bot
Copy link
Collaborator

@jakecastelli
Copy link
Member

Hi folks @nodejs/build - could you take a look at this failure fatal error C1060: compiler is out of heap space [C:\workspace\node-compile-windows\node\tools\v8_gypfiles\v8_initializers_host.vcxproj] from https://ci.nodejs.org/job/node-compile-windows/60923/nodes=win-vs2022-arm64/

// The file is reloaded due to file watching
if (completeCount === 2) {
child.kill();
await once(child, 'exit');
Copy link
Contributor

Choose a reason for hiding this comment

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

nit: I missed that earlier, but we don't really need to wait for the 'exit' event here, since we already await for child.stdout to close in the for await. We can also keep it, it's fine

Suggested change
await once(child, 'exit');

Comment on lines 68 to 70
if (line.startsWith('Completed running')) {
completeCount++;
}
Copy link
Contributor

Choose a reason for hiding this comment

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

btw should we skip running appendFileSync and child.kill if there are unrelated lines??

Suggested change
if (line.startsWith('Completed running')) {
completeCount++;
}
if (!line.startsWith('Completed running')) {
continue;
}
completeCount++;

Copy link
Member Author

Choose a reason for hiding this comment

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

Yeah I think that would be better to avoid unnecessary appends

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
needs-ci PRs that need a full CI run. watch-mode Issues and PRs related to watch mode
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Watch not working on paths with overlap
5 participants