Skip to content

aix, test: prolong debugged child process - #15774

Closed
jBarz wants to merge 1 commit into
nodejs:masterfrom
jBarz:master.aix
Closed

aix, test: prolong debugged child process#15774
jBarz wants to merge 1 commit into
nodejs:masterfrom
jBarz:master.aix

Conversation

@jBarz

@jBarzjBarz commented Oct 4, 2017

Copy link
Copy Markdown
Contributor

On AIX, there is a possibility that the child process is done before the parent debugger can connect to it. So prolong the child process by factor of 2.

Fixes: #14897

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

@nodejs-github-botnodejs-github-bot added dont-land-on-v4.x inspector Issues and PRs related to the V8 inspector protocol test Issues and PRs related to the tests. labels Oct 4, 2017
@gibfahn

Copy link
Copy Markdown
Member

Needs a stress test

@refack

Copy link
Copy Markdown
Contributor

@gibfahn

Copy link
Copy Markdown
Member

Still looking a bit flaky: 1237 OK: 1228 NOT OK: 9 TOTAL: 9999

Is there a way for the child process to pause until the debugger is attached?

@refack

Copy link
Copy Markdown
Contributor

Is there a way for the child process to pause until the debugger is attached?

Maybe replace --inspect=0 with --inspect-brk=0 (there's already a Runtime.runIfWaitingForDebugger that will "continue" execution)

@jBarz

Copy link
Copy Markdown
ContributorAuthor

Can we do the stress test again?

@gibfahn

Copy link
Copy Markdown
Member

@jBarz not till nodejs/build#775 (comment) is resolved.

@gibfahn

Copy link
Copy Markdown
Member

@jBarz if you rebase I'll stress test.

@jBarz

Copy link
Copy Markdown
ContributorAuthor

Thanks @gibfahn , done!

@gibfahn

Copy link
Copy Markdown
Member

@gibfahn

Copy link
Copy Markdown
Member

@mhdawsonmhdawson left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

LGTM the change but I think we also need to revert the AIX part of 7027191 so that it is no longer marked as flaky for AIX.

Pause child on startup using inspect-brk=0 until the parent debugger
is ready.
@jBarz

Copy link
Copy Markdown
ContributorAuthor

I made another change which no longer marks this test as flaky for aix and windows.

@refackrefack left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Should stress test, but code LGTM

@mhdawson

Copy link
Copy Markdown
Member

I think earlier stress test showed it was good.

New CI since it has been 2 weeks: https://ci.nodejs.org/job/node-test-pull-request/11152/

@mhdawson

Copy link
Copy Markdown
Member

arm failures were infra issues not related to this PR.

@mhdawson

Copy link
Copy Markdown
Member

Windows failure was #16688

so net is that CI is good with respect to this change.

mhdawson pushed a commit that referenced this pull request Nov 2, 2017
Pause child on startup using inspect-brk=0 until the parent debugger
is ready.
PR-URL: #15774Fixes: #14897
Reviewed-By: Gibson Fahnestock <gibfahn@gmail.com>
Reviewed-By: Refael Ackermann <refack@gmail.com>
Reviewed-By: Gireesh Punathil <gpunathi@in.ibm.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Michael Dawson <michael_dawson@ca.ibm.com>
@mhdawson

Copy link
Copy Markdown
Member

Landed as f1f0eb2

@mhdawsonmhdawson closed this Nov 2, 2017
@jBarz
jBarz deleted the master.aix branch November 3, 2017 00:07
cjihrig pushed a commit to cjihrig/node that referenced this pull request Nov 6, 2017
Pause child on startup using inspect-brk=0 until the parent debugger
is ready.
PR-URL: nodejs#15774Fixes: nodejs#14897
Reviewed-By: Gibson Fahnestock <gibfahn@gmail.com>
Reviewed-By: Refael Ackermann <refack@gmail.com>
Reviewed-By: Gireesh Punathil <gpunathi@in.ibm.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Michael Dawson <michael_dawson@ca.ibm.com>
@cjihrigcjihrig mentioned this pull request Nov 6, 2017
gibfahn pushed a commit that referenced this pull request Nov 14, 2017
Pause child on startup using inspect-brk=0 until the parent debugger
is ready.
PR-URL: #15774Fixes: #14897
Reviewed-By: Gibson Fahnestock <gibfahn@gmail.com>
Reviewed-By: Refael Ackermann <refack@gmail.com>
Reviewed-By: Gireesh Punathil <gpunathi@in.ibm.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Michael Dawson <michael_dawson@ca.ibm.com>
@gibfahngibfahn mentioned this pull request Nov 21, 2017
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

inspectorIssues and PRs related to the V8 inspector protocoltestIssues and PRs related to the tests.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

8 participants

@jBarz@gibfahn@refack@mhdawson@jasnell@gireeshpunathil@MylesBorins@nodejs-github-bot