Skip to content

test: add missing port=0 arg in test-debugger-extract-function-name #58977

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

Conversation

dario-piotrowicz
Copy link
Member

@dario-piotrowicz dario-piotrowicz commented Jul 6, 2025

In the test-debugger-extract-function-name file the inspector port is not set to 0, this causes the test (at least on my machine) to consistently (always) fail when run with the python runner with any repeat value greater than 1:
test-debugger-fail

So I am making sure that the port is indeed set to 0 solving the issue.

Also the test has also been a bit flaky in the CI lately:

So hopefully this change should address the flakiness 🙂

However I am not completely sure, since I did try to run some stress tests on the file on main:

But unfortunately they didn't show any flakes, so it is hard to confirm with full confidence whether
or not my changes are also addressing the CI flakes or not 😕

@dario-piotrowicz dario-piotrowicz force-pushed the dario/deflake-test-debugger-extract-function-name branch from dde5c1a to 6464821 Compare July 8, 2025 00:55
@dario-piotrowicz dario-piotrowicz added the commit-queue Add this label to land a pull request using GitHub Actions. label Jul 8, 2025
Copy link

codecov bot commented Jul 8, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 90.07%. Comparing base (ba49d71) to head (6464821).
Report is 6 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main   #58977      +/-   ##
==========================================
- Coverage   90.09%   90.07%   -0.02%     
==========================================
  Files         641      641              
  Lines      188666   188666              
  Branches    37003    37008       +5     
==========================================
- Hits       169970   169947      -23     
- Misses      11402    11439      +37     
+ Partials     7294     7280      -14     

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

@nodejs-github-bot nodejs-github-bot removed the commit-queue Add this label to land a pull request using GitHub Actions. label Jul 8, 2025
@nodejs-github-bot
Copy link
Collaborator

Commit Queue failed
- Loading data for nodejs/node/pull/58977
✔  Done loading data for nodejs/node/pull/58977
----------------------------------- PR info ------------------------------------
Title      test: add missing port=0 arg in test-debugger-extract-function-name (#58977)
Author     Dario Piotrowicz <dario.piotrowicz@gmail.com> (@dario-piotrowicz)
Branch     dario-piotrowicz:dario/deflake-test-debugger-extract-function-name -> nodejs:main
Labels     
Commits    1
 - test: add missing port=0 arg in test-debugger-extract-function-name
Committers 1
 - Dario Piotrowicz <dario.piotrowicz@gmail.com>
PR-URL: https://github.com/nodejs/node/pull/58977
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
------------------------------ Generated metadata ------------------------------
PR-URL: https://github.com/nodejs/node/pull/58977
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
--------------------------------------------------------------------------------
   ℹ  This PR was created on Sun, 06 Jul 2025 20:01:20 GMT
   ✔  Approvals: 2
   ✔  - James M Snell (@jasnell) (TSC): https://github.com/nodejs/node/pull/58977#pullrequestreview-2994091269
   ✔  - Luigi Pinca (@lpinca): https://github.com/nodejs/node/pull/58977#pullrequestreview-2995176354
   ✔  Last GitHub CI successful
   ✘  No Jenkins CI runs detected
--------------------------------------------------------------------------------
   ✔  Aborted `git node land` session in /home/runner/work/node/node/.ncu
https://github.com/nodejs/node/actions/runs/16153314450

@nodejs-github-bot nodejs-github-bot added the commit-queue-failed An error occurred while landing this pull request using GitHub Actions. label Jul 8, 2025
@dario-piotrowicz dario-piotrowicz added request-ci Add this label to start a Jenkins CI on a PR. and removed commit-queue-failed An error occurred while landing this pull request using GitHub Actions. labels Jul 8, 2025
@github-actions github-actions bot removed the request-ci Add this label to start a Jenkins CI on a PR. label Jul 8, 2025
@nodejs-github-bot
Copy link
Collaborator

@nodejs-github-bot
Copy link
Collaborator

@dario-piotrowicz dario-piotrowicz added the commit-queue Add this label to land a pull request using GitHub Actions. label Jul 8, 2025
@nodejs-github-bot nodejs-github-bot removed the commit-queue Add this label to land a pull request using GitHub Actions. label Jul 8, 2025
@nodejs-github-bot nodejs-github-bot merged commit 0992d28 into nodejs:main Jul 8, 2025
68 checks passed
@nodejs-github-bot
Copy link
Collaborator

Landed in 0992d28

@dario-piotrowicz dario-piotrowicz deleted the dario/deflake-test-debugger-extract-function-name branch July 8, 2025 23:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants