node icon indicating copy to clipboard operation
node copied to clipboard

test: making test-runner-run.mjs ignore colors

Open puskin opened this issue 1 year ago • 12 comments

Fixes: https://github.com/nodejs/node/issues/54551

puskin avatar Aug 25 '24 14:08 puskin

Review requested:

  • [ ] @nodejs/test_runner

nodejs-github-bot avatar Aug 25 '24 14:08 nodejs-github-bot

Hi! Could you amend your commit message to begin with an active verb? Something like test: ignore colors in `test-runner-run`

avivkeller avatar Aug 25 '24 15:08 avivkeller

Hi! Could you amend your commit message to begin with an active verb? Something like test: ignore colors in `test-runner-run`

done 😄

puskin avatar Aug 25 '24 15:08 puskin

Codecov Report

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

Project coverage is 87.89%. Comparing base (26b03c1) to head (120d49b). Report is 27 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main   #54552      +/-   ##
==========================================
- Coverage   87.90%   87.89%   -0.01%     
==========================================
  Files         651      651              
  Lines      183364   183364              
  Branches    35719    35711       -8     
==========================================
- Hits       161182   161174       -8     
- Misses      15461    15465       +4     
- Partials     6721     6725       +4     

see 25 files with indirect coverage changes

codecov[bot] avatar Aug 25 '24 17:08 codecov[bot]

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

nodejs-github-bot avatar Aug 25 '24 17:08 nodejs-github-bot

I guess this commit broke the tests I wrote just a couple of days ago and that now are in the main branch: https://github.com/nodejs/node/commit/52322aa42a43cb820432946e7997d070de078a10

Am I reading this wrong or that commit is actually causing an issue?

Why should I not be allowed to listen on ipv6_link_local which could be locally resolved to a valid IP ?

puskin avatar Aug 25 '24 20:08 puskin

See https://github.com/nodejs/node/pull/54556

avivkeller avatar Aug 25 '24 20:08 avivkeller

@puskin94 After looking at the previous implementation, server.listen accepts any string passed into dns.lookup. I started thinking introducing this enforcement might be too restricted. I think it's worth it to discuss more on this. I'll raise it to the original issue thread.

jazelly avatar Aug 26 '24 06:08 jazelly

@puskin94 After looking at the previous implementation, server.listen accepts any string passed into dns.lookup. I started thinking introducing this enforcement might be too restricted. I think it's worth it to discuss more on this. I'll raise it to the original issue thread.

@jazelly exactly what I am thinking too. I should be allowed to have whatever_i_want in my /etc/hosts file and being able to listen to it, always imho 😄

puskin avatar Aug 26 '24 06:08 puskin

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

nodejs-github-bot avatar Aug 26 '24 12:08 nodejs-github-bot

This should land only if there are other tests that ensures colors work as expected

MoLow avatar Aug 26 '24 19:08 MoLow

This should land only if there are other tests that ensures colors work as expected

@MoLow went for a more elegant solution then :) just checking for the colors when in TTY

puskin avatar Aug 27 '24 07:08 puskin

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

nodejs-github-bot avatar Aug 31 '24 14:08 nodejs-github-bot

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

nodejs-github-bot avatar Sep 01 '24 06:09 nodejs-github-bot

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

nodejs-github-bot avatar Sep 01 '24 09:09 nodejs-github-bot

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

nodejs-github-bot avatar Sep 02 '24 07:09 nodejs-github-bot

I'm fine with that.

cjihrig avatar Sep 02 '24 11:09 cjihrig

updated the code to be using node:util

puskin avatar Sep 02 '24 12:09 puskin

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

nodejs-github-bot avatar Sep 02 '24 14:09 nodejs-github-bot

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

nodejs-github-bot avatar Sep 03 '24 18:09 nodejs-github-bot

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

nodejs-github-bot avatar Sep 04 '24 13:09 nodejs-github-bot

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

nodejs-github-bot avatar Sep 04 '24 20:09 nodejs-github-bot

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

nodejs-github-bot avatar Sep 05 '24 20:09 nodejs-github-bot

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

nodejs-github-bot avatar Sep 06 '24 13:09 nodejs-github-bot

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

nodejs-github-bot avatar Sep 06 '24 19:09 nodejs-github-bot

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

nodejs-github-bot avatar Sep 09 '24 22:09 nodejs-github-bot

It may be worth rebasing this to pick up some of the tests marked as flaky.

cjihrig avatar Sep 10 '24 13:09 cjihrig

Failed to start CI
   ⚠  Something was pushed to the Pull Request branch since the last approving review.
   ℹ  request-ci label was added by a Collaborator after the last push event.
- Validating Jenkins credentials
✔  Jenkins credentials valid
- Starting PR CI job
✘  Failed to start PR CI: 400 Bad Request
https://github.com/nodejs/node/actions/runs/10797001710

github-actions[bot] avatar Sep 10 '24 16:09 github-actions[bot]

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

nodejs-github-bot avatar Sep 11 '24 12:09 nodejs-github-bot

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

nodejs-github-bot avatar Sep 12 '24 17:09 nodejs-github-bot