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

test: use common/child_process spawnSync helpers by ganjanggejang · Pull Request #65377 · nodejs/node · GitHub

/ node Public

test: use common/child_process spawnSync helpers - #65377

Merged
nodejs-github-bot merged 1 commit into
nodejs:mainfrom
ganjanggejang:spawnsync-helpers
Aug 21, 2026
Merged

test: use common/child_process spawnSync helpers#65377
nodejs-github-bot merged 1 commit into
nodejs:mainfrom
ganjanggejang:spawnsync-helpers

Conversation

Copy link
Copy Markdown
Contributor

Replace manual spawnSync() result assertions with
spawnSyncAndExitWithoutError(), spawnSyncAndExit() and
spawnSyncAndAssert() from test/common/child_process.

This also removes hand-rolled if (status !== 0) console.log(...)
blocks that duplicate what the helpers already do, and adds a
signal check to call sites that previously only compared status.

Follow-up to #65351, applying the same change to the remaining sync spawn call sites.

Replace manual spawnSync() result assertions
with test/common/child_process helper functions.

Signed-off-by: Junsoo Ha <junsoo2018@naver.com>

Copy link
Copy Markdown
Collaborator

Review requested:

  • @nodejs/test_runner

nodejs-github-bot added needs-ci PRs that need a full CI run. test Issues and PRs related to the tests. labels Aug 18, 2026

codecov Bot commented Aug 18, 2026
edited
Loading

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 90.13%. Comparing base (cf30b2e) to head (aa7f940).
⚠️ Report is 49 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main   #65377      +/-   ##
==========================================
+ Coverage   90.11%   90.13%   +0.02%     
==========================================
  Files         752      752              
  Lines      251861   251861              
  Branches    47365    47362       -3     
==========================================
+ Hits       226955   227011      +56     
+ Misses      16238    16184      -54     
+ Partials     8668     8666       -2     

see 36 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.

richardlau added the request-ci Add this label to start a Jenkins CI on a PR. label Aug 18, 2026
github-actions Bot removed the request-ci Add this label to start a Jenkins CI on a PR. label Aug 18, 2026

Copy link
Copy Markdown
Collaborator

daeyeon added author ready PRs that have at least one approval, no outstanding review comments, and a CI started. commit-queue Add this label to land a pull request using GitHub Actions. labels Aug 21, 2026
nodejs-github-bot merged commit f7968e7 into nodejs:main Aug 21, 2026
83 checks passed

Copy link
Copy Markdown
Collaborator

Landed in f7968e7

nodejs-github-bot removed the commit-queue Add this label to land a pull request using GitHub Actions. label Aug 21, 2026
aduh95 pushed a commit that referenced this pull request Aug 25, 2026
Replace manual spawnSync() result assertions
with test/common/child_process helper functions.

Signed-off-by: Junsoo Ha <junsoo2018@naver.com>
PR-URL: #65377
Reviewed-By: Chemi Atlow <chemi@atlow.co.il>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
aduh95 pushed a commit that referenced this pull request Aug 25, 2026
Replace manual spawnSync() result assertions
with test/common/child_process helper functions.

Signed-off-by: Junsoo Ha <junsoo2018@naver.com>
PR-URL: #65377
Reviewed-By: Chemi Atlow <chemi@atlow.co.il>
Reviewed-By: Luigi Pinca <luigipinca@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

author ready PRs that have at least one approval, no outstanding review comments, and a CI started. needs-ci PRs that need a full CI run. test Issues and PRs related to the tests.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants


Back | FazBrowse Home | New Git URL