Skip to content
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

tests: test-debugger-util-regression failure "program should not terminate" #6201

Closed
jhamhader opened this issue Apr 14, 2016 · 5 comments
Closed
Labels
test Issues and PRs related to the tests.

Comments

@jhamhader
Copy link
Contributor

  • Version: latest (commit fb5f66a)
  • Platform: Linux 4.4.5-1-ARCH x86_64 GNU/Linux
  • Subsystem: tests

Running make test (regardless of the number of jobs) produces the following failure:

=== release test-debugger-util-regression ===
Path: parallel/test-debugger-util-regression
assert.js:90
  throw new assert.AssertionError({
  ^
AssertionError: the program should not terminate
    at Object.exports.fail (/home/<username>/src/node/test/common.js:462:10)
    at Socket.proc.stdout.on (/home/<username>/src/node/test/parallel/test-debugger-util-regression.js:49:12)
    at emitOne (events.js:90:13)
    at Socket.emit (events.js:182:7)
    at readableAddChunk (_stream_readable.js:153:18)
    at Socket.Readable.push (_stream_readable.js:111:10)
    at Pipe.onread (net.js:529:20)
Command: out/Release/node /home/<username>/src/node/test/parallel/test-debugger-util-regression.js

and somtimes:

=== release test-debugger-repeat-last ===                                      
Path: parallel/test-debugger-repeat-last
events.js:154
      throw er; // Unhandled 'error' event
      ^

Error: read ECONNRESET
    at exports._errnoException (util.js:893:11)
    at Pipe.onread (net.js:550:26)
Command: out/Release/node /home/<username>/src/node/test/parallel/test-debugger-repeat-last.js

Seems like commit 1df84f4 introduces the issue.

@Fishrock123
Copy link
Member

Fishrock123 commented Apr 14, 2016

CI for confirmation: https://ci.nodejs.org/job/node-test-commit/2916/

Edit: Looks like this is on Arch linux, which we don't test at the current time.

@Trott
Copy link
Member

Trott commented Apr 14, 2016

@thealphanerd Any idea if this is a false positive? Or have we really re-introduced the bug that you wrote this test to find?

@Fishrock123 Fishrock123 added debugger test Issues and PRs related to the tests. labels Apr 14, 2016
Trott added a commit to Trott/io.js that referenced this issue Apr 14, 2016
The debugger tests in parallel fail with `make test` sometimes (all the
time?). This appears to be related to running in parallel, as it does
not fail with `make test-ci`, when run via `tools/test.py` or directly
from the command line with `./node
test/parallel/test-debugger-util-regression.js`.

A separate issue may be opened to find out why it is failing in
parallel, but for now, I think it's important to fix `make test`
promptly.

I suspect the issue is that the tests are relying on a default port
somewhere and so they are colliding when run in parallel. But that's
just a guess for the moment.

Fixes: nodejs#6201
@mhdawson
Copy link
Member

mhdawson commented Apr 14, 2016

I am getting an error on my local ubuntu machine as well:

/usr/bin/python tools/test.py --mode=release message parallel sequential -J
=== release test-debugger-util-regression ===
Path: parallel/test-debugger-util-regression
assert.js:90
  throw new assert.AssertionError({
  ^
AssertionError: the program should not hang
    at Object.exports.fail (/home/mhdawson/pulls/ras/io.js/test/common.js:462:10)
    at Timeout.fail [as _onTimeout] (/home/mhdawson/pulls/ras/io.js/test/parallel/test-debugger-util-regression.js:23:10)
    at tryOnTimeout (timers.js:224:11)
    at Timer.listOnTimeout (timers.js:198:5)
Command: out/Release/node /home/mhdawson/pulls/ras/io.js/test/parallel/test-debugger-util-regression.js

Checkout commit before the debugger change and it runs ok, Checkout 1df84f4 and error occurs.

Machine info:

mhdawson@duv-aurora:~/pulls/ras/io.js$ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description:    Ubuntu 14.04.2 LTS
Release:        14.04
Codename:       trusty

@Trott
Copy link
Member

Trott commented Apr 14, 2016

The problem is that there are two debugger tests now and they both use the default port for debugging. So when run in parallel (which is what make test does), one of them fails. When run sequentially (as they are on CI, for example), they succeed. I have a PR open to move them to sequential which should fix this issue. #6205 I think this warrants expedited landing (especially given the low stakes nature of the change--just moving them to sequential is really straightforward). If someone wants to parallelize them later by introducing a custom debug port (common.PORT or otherwise), then great. But for now, a few LGTMs on that PR would be awesome.

@Trott Trott closed this as completed in 00b2219 Apr 15, 2016
@Trott
Copy link
Member

Trott commented Apr 15, 2016

Fixed on master with 00b2219

MylesBorins pushed a commit that referenced this issue Apr 20, 2016
The debugger tests in parallel fail with `make test` sometimes (all the
time?). This appears to be related to running in parallel, as it does
not fail with `make test-ci`, when run via `tools/test.py` or directly
from the command line with `./node
test/parallel/test-debugger-util-regression.js`.

A separate issue may be opened to find out why it is failing in
parallel, but for now, I think it's important to fix `make test`
promptly.

I suspect the issue is that the tests are relying on a default port
somewhere and so they are colliding when run in parallel. But that's
just a guess for the moment.

PR-URL: #6205
Fixes: #6201
Reviewed-By: Jeremiah Senkpiel <fishrock123@rocketmail.com>
Reviewed-By: Johan Bergström <bugs@bergstroem.nu>
MylesBorins pushed a commit that referenced this issue Apr 20, 2016
The debugger tests in parallel fail with `make test` sometimes (all the
time?). This appears to be related to running in parallel, as it does
not fail with `make test-ci`, when run via `tools/test.py` or directly
from the command line with `./node
test/parallel/test-debugger-util-regression.js`.

A separate issue may be opened to find out why it is failing in
parallel, but for now, I think it's important to fix `make test`
promptly.

I suspect the issue is that the tests are relying on a default port
somewhere and so they are colliding when run in parallel. But that's
just a guess for the moment.

PR-URL: #6205
Fixes: #6201
Reviewed-By: Jeremiah Senkpiel <fishrock123@rocketmail.com>
Reviewed-By: Johan Bergström <bugs@bergstroem.nu>
MylesBorins pushed a commit that referenced this issue Apr 21, 2016
The debugger tests in parallel fail with `make test` sometimes (all the
time?). This appears to be related to running in parallel, as it does
not fail with `make test-ci`, when run via `tools/test.py` or directly
from the command line with `./node
test/parallel/test-debugger-util-regression.js`.

A separate issue may be opened to find out why it is failing in
parallel, but for now, I think it's important to fix `make test`
promptly.

I suspect the issue is that the tests are relying on a default port
somewhere and so they are colliding when run in parallel. But that's
just a guess for the moment.

PR-URL: #6205
Fixes: #6201
Reviewed-By: Jeremiah Senkpiel <fishrock123@rocketmail.com>
Reviewed-By: Johan Bergström <bugs@bergstroem.nu>
jasnell pushed a commit that referenced this issue Apr 26, 2016
The debugger tests in parallel fail with `make test` sometimes (all the
time?). This appears to be related to running in parallel, as it does
not fail with `make test-ci`, when run via `tools/test.py` or directly
from the command line with `./node
test/parallel/test-debugger-util-regression.js`.

A separate issue may be opened to find out why it is failing in
parallel, but for now, I think it's important to fix `make test`
promptly.

I suspect the issue is that the tests are relying on a default port
somewhere and so they are colliding when run in parallel. But that's
just a guess for the moment.

PR-URL: #6205
Fixes: #6201
Reviewed-By: Jeremiah Senkpiel <fishrock123@rocketmail.com>
Reviewed-By: Johan Bergström <bugs@bergstroem.nu>
santigimeno pushed a commit to santigimeno/node that referenced this issue May 18, 2016
The debugger tests in parallel fail with `make test` sometimes (all the
time?). This appears to be related to running in parallel, as it does
not fail with `make test-ci`, when run via `tools/test.py` or directly
from the command line with `./node
test/parallel/test-debugger-util-regression.js`.

A separate issue may be opened to find out why it is failing in
parallel, but for now, I think it's important to fix `make test`
promptly.

I suspect the issue is that the tests are relying on a default port
somewhere and so they are colliding when run in parallel. But that's
just a guess for the moment.

PR-URL: nodejs#6205
Fixes: nodejs#6201
Reviewed-By: Jeremiah Senkpiel <fishrock123@rocketmail.com>
Reviewed-By: Johan Bergström <bugs@bergstroem.nu>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
test Issues and PRs related to the tests.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants