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

src: Remove support for --debug #12197

Closed
wants to merge 2 commits into from

Conversation

jkrems
Copy link
Contributor

@jkrems jkrems commented Apr 3, 2017

Checklist
  • make -j4 test (UNIX), or vcbuild test (Windows) passes
  • tests and/or benchmarks are included
  • documentation is changed or added
  • commit message follows commit guidelines
Affected core subsystem(s)

doc, src, test

I wasn't 100% sure how to deal with the tests. For now I just deleted them but I would open a ticket to investigate which of them should be ported to comparable --inspect tests.

@nodejs-github-bot nodejs-github-bot added c++ Issues and PRs that require attention from people who are familiar with C++. debugger labels Apr 3, 2017
@jkrems
Copy link
Contributor Author

jkrems commented Apr 3, 2017

There's a lot of code in src/node.cc that is effectively dead now. But it would be a lot less disruptive (~ prone to conflicts) to remove it after #11431 lands, so I'd like to keep it around for now.

@Trott
Copy link
Member

Trott commented Apr 3, 2017

I wonder if test-cluster-disconnect-handles.js should be rewritten. (Not necessarily in this PR.) Thoughts?

The other tests that are removed seem like they can go.

Maybe the test-cluster-disconnect-handles.js test can be moved to known_issues until it is rewritten to work without the debugger protocol.

@jkrems
Copy link
Contributor Author

jkrems commented Apr 3, 2017

At first I had moved all tests to test/disabled/* (before I turned it into deletions). There's definitely value in skimming through those tests to make sure we're not losing coverage. E.g. I'm not sure we have the same coverage now for --inspect that we used to have for --debug. @ofrobots did some of that work already.

My current proposal would be to go through these tests in a follow-up and port the ones that would still make sense. Happy to already move one or more to known_issues/ if we identify ones that definitely should be preserved in some form.

Copy link
Contributor

@ofrobots ofrobots left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. Thanks for putting together this PR! The test changes would overlap/conflict with #11441, so it would make sense to land this first and rework the tests in either #11441 or a follow on.

@addaleax addaleax added the semver-major PRs that contain breaking changes and should be released in the next major version. label Apr 4, 2017
@addaleax addaleax added this to the 8.0.0 milestone Apr 4, 2017
@Trott
Copy link
Member

Trott commented Apr 4, 2017

Copy link
Contributor

@MylesBorins MylesBorins left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM
Enjoy seeing all those removed lines!!!

@jkrems
Copy link
Contributor Author

jkrems commented Apr 4, 2017

Scanning some of the other recent PR builds, the windows failure doesn't seem to be related to my change.

not ok 32 parallel/test-cli-syntax
  ---
  duration_ms: 3.250
  severity: fail
  stack: |-
    
    assert.js:82
      throw new assert.AssertionError({
      ^
    AssertionError: 'c:\\workspace\\node-test-binary-windows\\RUN_SUBSET\\3\\VS_VERSION\\vcbt2015\\label\\win10\\Release\\node.exe: either --check o === 'c:\\workspace\\node-test-binary-windows\\RUN_SUBSET\\3\\VS_VERSION\\vcbt2015\\label\\win10\\Release\\node.exe: either --check o
        at c:\workspace\node-test-binary-windows\RUN_SUBSET\3\VS_VERSION\vcbt2015\label\win10\test\parallel\test-cli-syntax.js:127:12
        at Array.forEach (native)
        at c:\workspace\node-test-binary-windows\RUN_SUBSET\3\VS_VERSION\vcbt2015\label\win10\test\parallel\test-cli-syntax.js:123:20
        at Array.forEach (native)
        at Object.<anonymous> (c:\workspace\node-test-binary-windows\RUN_SUBSET\3\VS_VERSION\vcbt2015\label\win10\test\parallel\test-cli-syntax.js:122:19)
        at Module._compile (module.js:607:30)
        at Object.Module._extensions..js (module.js:618:10)
        at Module.load (module.js:516:32)
        at tryModuleLoad (module.js:466:12)
        at Function.Module._load (module.js:458:3

@gibfahn
Copy link
Member

gibfahn commented Apr 4, 2017

Scanning some of the other recent PR builds, the windows failure doesn't seem to be related to my change.

Should be fixed in #12212

@joshgav
Copy link
Contributor

joshgav commented Apr 4, 2017

Would it perhaps be better to port the tests to --inspect rather than deleting and adding them back?

@jkrems
Copy link
Contributor Author

jkrems commented Apr 4, 2017

@joshgav The idea is to have a way to land the removal now so we can include it comfortably in 8.x. Some of those tests are already duplicated by existing tests, some will be replaced by new --inspect tests, and pulling that apart correctly is something I'd rather not do under time pressure (as would be the case with this PR).

P.S.: Also there's overlap with test changes as part of #11441, making things even more complicated.

@targos targos self-assigned this Apr 6, 2017
targos pushed a commit to targos/node that referenced this pull request Apr 6, 2017
In the 2017-04-05 meeting, the CTC agreed to remove support for the
legacy debugger in 8.0.0. This is the first step in this direction.

Refs: nodejs/CTC#94
PR-URL: nodejs#12197
Reviewed-By: Richard Lau <riclau@uk.ibm.com>
Reviewed-By: Ali Ijaz Sheikh <ofrobots@google.com>
Reviewed-By: Anna Henningsen <anna@addaleax.net>
Reviewed-By: Myles Borins <myles.borins@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Michaël Zasso <targos@protonmail.com>
@targos
Copy link
Member

targos commented Apr 6, 2017

Landed in 47f8f74

@targos targos closed this Apr 6, 2017
MylesBorins pushed a commit that referenced this pull request Apr 18, 2017
Skip test-cluster-disconnect-handles on Windows.

PR-URL: #12261
Ref: #12197 (comment)
Reviewed-By: Richard Lau <riclau@uk.ibm.com>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
MylesBorins pushed a commit that referenced this pull request Apr 19, 2017
Skip test-cluster-disconnect-handles on Windows.

PR-URL: #12261
Ref: #12197 (comment)
Reviewed-By: Richard Lau <riclau@uk.ibm.com>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
sam-github added a commit to sam-github/node that referenced this pull request Apr 22, 2017
--inspect-brk didn't exist prior to 7.6.0, and --debug-brk doesn't exist
after nodejs#12197, leaving no consistent
way to start node with inspector activated and breaking on first line.
Add --debug-brk back in as an undocumented option until 7.x is no longer
supported.

Fixes: nodejs#12364
jkrems pushed a commit to jkrems/node that referenced this pull request May 4, 2017
--inspect-brk didn't exist prior to 7.6.0, and --debug-brk doesn't exist
after nodejs#12197, leaving no consistent
way to start node with inspector activated and breaking on first line.
Add --debug-brk back in as an undocumented option until 7.x is no longer
supported.

Fixes: nodejs#12364
@jasnell jasnell mentioned this pull request May 11, 2017
andrew749 pushed a commit to michielbaird/node that referenced this pull request Jul 19, 2017
Skip test-cluster-disconnect-handles on Windows.

PR-URL: nodejs/node#12261
Ref: nodejs/node#12197 (comment)
Reviewed-By: Richard Lau <riclau@uk.ibm.com>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
@targos targos removed their assignment Oct 31, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
c++ Issues and PRs that require attention from people who are familiar with C++. semver-major PRs that contain breaking changes and should be released in the next major version.
Projects
None yet
Development

Successfully merging this pull request may close these issues.