node icon indicating copy to clipboard operation
node copied to clipboard

test: execute shell directly for refresh()

Open anonrig opened this issue 1 year ago • 1 comments

What if we just called the shell directly to avoid the cost of booting a Node.js instance?

cc @nodejs/build any concerns?

anonrig avatar Sep 21 '24 19:09 anonrig

Codecov Report

All modified and coverable lines are covered by tests :white_check_mark:

Project coverage is 89.14%. Comparing base (b181535) to head (5888bc2). Report is 11 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main   #55051   +/-   ##
=======================================
  Coverage   89.13%   89.14%           
=======================================
  Files         665      665           
  Lines      193165   193179   +14     
  Branches    37191    37196    +5     
=======================================
+ Hits       172181   172204   +23     
- Misses      13729    13730    +1     
+ Partials     7255     7245   -10     

see 38 files with indirect coverage changes

codecov[bot] avatar Sep 21 '24 21:09 codecov[bot]

cc @nodejs/cpp-reviewers @nodejs/tsc would you mind reviewing?

anonrig avatar Nov 28 '24 02:11 anonrig

CI: https://ci.nodejs.org/job/node-test-pull-request/63735/

nodejs-github-bot avatar Nov 28 '24 03:11 nodejs-github-bot

@jasnell @mcollina would you mind reviewing this PR? is it a good idea or a bad one, i'm not sure.

anonrig avatar Jan 24 '25 01:01 anonrig

I don't really have a strong opinion on it. The code change looks fine but not sure if it's worthwhile or not. @nodejs/testing folks?

jasnell avatar Jan 24 '25 01:01 jasnell

I expect problems in windows, but if we can get it to pass on CI it's ok.

mcollina avatar Jan 24 '25 09:01 mcollina

I expect problems in windows, but if we can get it to pass on CI it's ok.

This PR doesn't update Windows implementation. Only UNIX

anonrig avatar Jan 24 '25 16:01 anonrig

CI: https://ci.nodejs.org/job/node-test-pull-request/64716/

nodejs-github-bot avatar Jan 24 '25 16:01 nodejs-github-bot

cc @aduh95 @cjihrig can you re-review? I've addressed your comments.

anonrig avatar Feb 09 '25 00:02 anonrig

CI: https://ci.nodejs.org/job/node-test-pull-request/65075/

nodejs-github-bot avatar Feb 09 '25 00:02 nodejs-github-bot

CI: https://ci.nodejs.org/job/node-test-pull-request/65102/

nodejs-github-bot avatar Feb 09 '25 21:02 nodejs-github-bot

CI: https://ci.nodejs.org/job/node-test-pull-request/65109/

nodejs-github-bot avatar Feb 10 '25 02:02 nodejs-github-bot

CI: https://ci.nodejs.org/job/node-test-pull-request/65118/

nodejs-github-bot avatar Feb 10 '25 12:02 nodejs-github-bot

Landed in 03e9adf876e2039604a038b2eb1476bf4a9e1774

nodejs-github-bot avatar Feb 10 '25 14:02 nodejs-github-bot