Title: test-cluster-net-listen-ipv6only-none is unreliable/flaky · Issue #29679 · nodejs/node · GitHub
Open Graph Title: test-cluster-net-listen-ipv6only-none is unreliable/flaky · Issue #29679 · nodejs/node
X Title: test-cluster-net-listen-ipv6only-none is unreliable/flaky · Issue #29679 · nodejs/node
Description: Version: 13.0.0-pre (master branch) Platform: all, although observed on various Linux in CI Subsystem: cluster test test-cluster-net-listen-ipv6only-none has faulty logic in its Countdown callback. The check there assumes that if a port ...
Open Graph Description: Version: 13.0.0-pre (master branch) Platform: all, although observed on various Linux in CI Subsystem: cluster test test-cluster-net-listen-ipv6only-none has faulty logic in its Countdown callback....
X Description: Version: 13.0.0-pre (master branch) Platform: all, although observed on various Linux in CI Subsystem: cluster test test-cluster-net-listen-ipv6only-none has faulty logic in its Countdown callback....
Opengraph URL: https://github.com/nodejs/node/issues/29679
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"test-cluster-net-listen-ipv6only-none is unreliable/flaky","articleBody":"\u003c!--\r\nThank you for reporting a possible bug in Node.js.\r\n\r\nPlease fill in as much of the template below as you can.\r\n\r\nVersion: output of `node -v`\r\nPlatform: output of `uname -a` (UNIX), or version and 32 or 64-bit (Windows)\r\nSubsystem: if known, please specify the affected core module name\r\n\r\nIf possible, please provide code that demonstrates the problem, keeping it as\r\nsimple and free of external dependencies as you can.\r\n--\u003e\r\n\r\n* **Version**: 13.0.0-pre (master branch)\r\n* **Platform**: all, although observed on various Linux in CI\r\n* **Subsystem**: cluster test\r\n\r\n\u003c!-- Please provide more details below this comment. --\u003e\r\n\r\ntest-cluster-net-listen-ipv6only-none has faulty logic in its Countdown callback. The check there assumes that if a port is unavailable for IPv4 but available for IPv6, that the operating system won't supply that port for IPv6. This is apparently incorrect as seen in https://ci.nodejs.org/job/node-test-commit-linux/nodes=centos7-64-gcc6/29869/testReport/junit/(root)/test/parallel_test_cluster_net_listen_ipv6only_none/:\r\n\r\n```console\r\nError: listen EADDRINUSE: address already in use 0.0.0.0:44400\r\n at Server.setupListenHandle [as _listen2] (net.js:1298:14)\r\n at listenInCluster (net.js:1346:12)\r\n at doListen (net.js:1485:7)\r\n at processTicksAndRejections (internal/process/task_queues.js:81:21)\r\nEmitted 'error' event on Server instance at:\r\n at emitErrorNT (net.js:1325:8)\r\n at processTicksAndRejections (internal/process/task_queues.js:80:21) {\r\n code: 'EADDRINUSE',\r\n errno: -98,\r\n syscall: 'listen',\r\n address: '0.0.0.0',\r\n port: 44400\r\n}\r\n```\r\n\r\nOne option to fix it would be to remove the check entirely. But then we're perhaps not checking that it's not opening the port on IPv4, which is part of the test.\r\n\r\nIn my opinion, a better option would be to switch to using `common.PORT` rather than an operating-system-allocated port. That would mean moving the test to `sequential`. \r\n\r\nWe'd also want to check the other tests in `parallel` that use `ipv6Only` to make sure they don't suffer from the same issue.","author":{"url":"https://github.com/Trott","@type":"Person","name":"Trott"},"datePublished":"2019-09-23T20:47:12.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":2},"url":"https://github.com/29679/node/issues/29679"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:8c7b1dfb-8470-5452-ab42-641fd809a5d4 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 99D8:3BEDBF:ACD61B:ECD488:6A4DC1B5 |
| html-safe-nonce | 71f1556ea6805b341d3f52830c9df267f94fd702310ce943e1b23db7dc32899d |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5OUQ4OjNCRURCRjpBQ0Q2MUI6RUNENDg4OjZBNERDMUI1IiwidmlzaXRvcl9pZCI6Ijg2MTU4OTMwMjgyMjgxNTM3ODEiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 33c3f36bd7cede25df9267448e7b88a9738ac71b2ece1794a657668a89e87fba |
| hovercard-subject-tag | issue:497319991 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/nodejs/node/29679/issue_layout |
| twitter:image | https://opengraph.githubassets.com/cea8295f28ab652ce000ad8e28e1e323d5f9c32066bd61797dafe9d1859fb6e4/nodejs/node/issues/29679 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/cea8295f28ab652ce000ad8e28e1e323d5f9c32066bd61797dafe9d1859fb6e4/nodejs/node/issues/29679 |
| og:image:alt | Version: 13.0.0-pre (master branch) Platform: all, although observed on various Linux in CI Subsystem: cluster test test-cluster-net-listen-ipv6only-none has faulty logic in its Countdown callback.... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | Trott |
| hostname | github.com |
| expected-hostname | github.com |
| None | 06b8a6144231bf3a234f1c2e9993861e07ce98a905912b114aa386c2d7e84b33 |
| turbo-cache-control | no-preview |
| go-import | github.com/nodejs/node git https://github.com/nodejs/node.git |
| octolytics-dimension-user_id | 9950313 |
| octolytics-dimension-user_login | nodejs |
| octolytics-dimension-repository_id | 27193779 |
| octolytics-dimension-repository_nwo | nodejs/node |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 27193779 |
| octolytics-dimension-repository_network_root_nwo | nodejs/node |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 1d344bdb7547fe6bca17a59bb2b8aac3dc9532a0 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width