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

test: use --port=0 in debugger tests that do not have to work on 9229 by joyeecheung · Pull Request #44342 · nodejs/node · GitHub

/ node Public

test: use --port=0 in debugger tests that do not have to work on 9229 - #44342

Closed
joyeecheung wants to merge 1 commit into
nodejs:mainfrom
joyeecheung:fix-debugger-tests
Closed

test: use --port=0 in debugger tests that do not have to work on 9229#44342
joyeecheung wants to merge 1 commit into
nodejs:mainfrom
joyeecheung:fix-debugger-tests

Conversation

joyeecheung commented Aug 22, 2022
edited
Loading

Copy link
Copy Markdown
Member

To avoid failures when there is another running process occupying
the port 9229 which may happen if there is a stale process, use the
--port argument of node-inspect to use a random port in tests that
don't have to work on port 9229.

The following tests are not touched:

  • test-debugger-launch: specifically needs to test port 9229
  • test-debugger-pid: needs modifications to node-inspect
  • test-debugger-random-port-with-inspect-port: same as -pid test

Refs: nodejs/build#3014

nodejs-github-bot added needs-ci PRs that need a full CI run. test Issues and PRs related to the tests. labels Aug 22, 2022
To avoid failures when there is another running process occupying
the port 9229 which may happen if there is a stale process, use the
--port argument of node-inspect to use a random port in tests that
don't have to work on port 9229.

The following tests are not touched:

- test-debugger-launch: specifically needs to test port 9229
- test-debugger-pid: needs modifications to node-inspect
- test-debugger-random-port-with-inspect-port: same as -pid test

joyeecheung commented Aug 22, 2022
edited
Loading

Copy link
Copy Markdown
Member Author

The tests here can fail if one runs a node inspect process that listens to 9229 on the background before running them. As far as I can tell though, they don't actually need to be run on 9229, all they need are just a valid node-inspect session, so changing them to run on random ports seem reasonable to me and can help with nodejs/build#3014 which has been failing a lot of windows CI runs lately (see nodejs/reliability#354). test-debugger-pid and test-debugger-random-port-with-inspect-port would need some fixes in node-inspect to run on random ports, as node-inspect still waits for 9229 to free up when --inspect-port or -p is used, I'll send in another PR for those.

Copy link
Copy Markdown
Member Author

cc @nodejs/testing

Copy link
Copy Markdown
Collaborator

Copy link
Copy Markdown
Member Author

hmm, apparently the tests are still timing out, so there must be something else that is causing the timeout

Copy link
Copy Markdown
Member Author

It's too old now. I'll open a new one and move them to parallel.

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

flaky-test Issues and PRs related to the tests with unstable failures on the CI. 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.

2 participants


Back | FazBrowse Home | New Git URL