node icon indicating copy to clipboard operation
node copied to clipboard

test_runner: differentiate test types in enqueue dequeue events

Open EddieAbbondanzio opened this issue 1 year ago • 8 comments

The test:enqueue and test:dequeue events now include a type in details to allow reporters to distinguish if it was a suite or test.

Fixes #51235

EddieAbbondanzio avatar Jul 26 '24 02:07 EddieAbbondanzio

Review requested:

  • [ ] @nodejs/test_runner

nodejs-github-bot avatar Jul 26 '24 02:07 nodejs-github-bot

Sure, I added one.

EddieAbbondanzio avatar Jul 27 '24 01:07 EddieAbbondanzio

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

nodejs-github-bot avatar Jul 27 '24 15:07 nodejs-github-bot

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

nodejs-github-bot avatar Jul 29 '24 06:07 nodejs-github-bot

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

nodejs-github-bot avatar Jul 30 '24 08:07 nodejs-github-bot

This PR seems like it may have stagnated. Is there anything needed to get it merged?

EddieAbbondanzio avatar Aug 06 '24 22:08 EddieAbbondanzio

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

nodejs-github-bot avatar Aug 07 '24 07:08 nodejs-github-bot

Hey @EddieAbbondanzio, I noticed this PR has been stale since August and some files now have conflicts. Could you please resolve them?

pmarchini avatar Dec 04 '24 22:12 pmarchini

Hey @pmarchini, I can work on bring it back but do you know why it went stale? Was there something else I needed to do to get it merged after all the approvals it got back in July?

EddieAbbondanzio avatar Dec 16 '24 13:12 EddieAbbondanzio

Hey @EddieAbbondanzio, honestly, I can't see any reason why this PR should remain stalled. I would suggest fixing the conflicts and then landing it 😊

pmarchini avatar Dec 28 '24 17:12 pmarchini

Codecov Report

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

Project coverage is 88.54%. Comparing base (35742a2) to head (214b59e). Report is 244 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main   #54049      +/-   ##
==========================================
- Coverage   88.54%   88.54%   -0.01%     
==========================================
  Files         657      657              
  Lines      190742   190746       +4     
  Branches    36606    36603       -3     
==========================================
- Hits       168901   168888      -13     
- Misses      15027    15039      +12     
- Partials     6814     6819       +5     
Files with missing lines Coverage Δ
lib/internal/test_runner/test.js 96.96% <100.00%> (+<0.01%) :arrow_up:
lib/internal/test_runner/tests_stream.js 91.71% <100.00%> (+0.09%) :arrow_up:

... and 23 files with indirect coverage changes

codecov[bot] avatar Jan 01 '25 17:01 codecov[bot]

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

nodejs-github-bot avatar Jan 02 '25 09:01 nodejs-github-bot

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

nodejs-github-bot avatar Jan 02 '25 15:01 nodejs-github-bot

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

nodejs-github-bot avatar Jan 02 '25 18:01 nodejs-github-bot

Hey @pmarchini, is there anything on my end I need to do to merge this?

I'm still new to contributing to Node and don't have permissions to add the merge-queue label (seems like that's what this PR needs based on the docs) but I'm also not 100% certain why some of the CI jobs are intermittently failing. Appreciate your help!

EddieAbbondanzio avatar Jan 03 '25 12:01 EddieAbbondanzio

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

nodejs-github-bot avatar Jan 03 '25 13:01 nodejs-github-bot

Hey @EddieAbbondanzio, you can't do anything else on your side atm 😁 We have some problems with flaky tests, and that's the reason why the CI keeps failing. I'm restarting it again now!

As soon as the CI is green, and if @cjihrig and @MoLow are still okay with this change, we will land it 🚀

Thank you very much for your patience and your support to Node 🚀

pmarchini avatar Jan 03 '25 13:01 pmarchini

Landed in 383e1a281b6b979ede9d2ee46781643971da104b

nodejs-github-bot avatar Jan 05 '25 08:01 nodejs-github-bot

~test/parallel/test-runner-output.mjs is failing when trying to backport this to v22.x-staging. Please open a backport PR if we want this on v22.x~ actually, it was relatively trivial to fix, nevermind

aduh95 avatar Feb 03 '25 12:02 aduh95