-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Re-enable self cert tests for notebooks #11197
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
Conversation
@@ -149,7 +150,7 @@ export class NotebookStarter implements Disposable { | |||
if (exitCode !== 0) { | |||
throw new Error(localize.DataScience.jupyterServerCrashed().format(exitCode?.toString())); | |||
} else { | |||
throw new Error(localize.DataScience.jupyterNotebookFailure().format(err)); | |||
throw new WrappedError(localize.DataScience.jupyterNotebookFailure().format(err), err); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Found that the error message didn't contain the stack trace.
Added a new error to ensure the stack trace is persisted in the new error, much like in .NET.
@@ -400,7 +388,7 @@ suite('DataScience notebook tests', () => { | |||
'-m', | |||
'jupyter', | |||
'notebook', | |||
`--config=${configFile}`, | |||
'--NotebookApp.open_browser=False', |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@IanMatthewHuff I removed the config file as all it was doing was setting two flags.
Removing one of them fixed it for mac.
However I feel we might need c.NotebookApp.ip = '0.0.0.0'
for non mac scenarios. Do you remember why you added it?
I can add it back here (conditionally based on the OS).
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Look just a bit down that thread. Glad that I put that info in the old PR or I would have forgotten.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No config file does more than that. It overrides the user's default config file. We had all sorts of problems with config files being wrong for us to run.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oh wait this was for the test only? Never mind. I should have looked at the file.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes the config is only used in tests (used here), hence safe to delete.
@@ -400,7 +388,7 @@ suite('DataScience notebook tests', () => { | |||
'-m', | |||
'jupyter', | |||
'notebook', | |||
`--config=${configFile}`, | |||
'--NotebookApp.open_browser=False', |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this.usablePythonInterpreter = undefined; | ||
} | ||
} | ||
// Copyright (c) Microsoft Corporation. All rights reserved. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is showing as entirely different for me?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
How about ignoring white space.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
⏲️
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
1080566
to
2627f54
Compare
Kudos, SonarCloud Quality Gate passed!
|
yay tests are passing, was difficult to tell cuz there are other failures and its a 44k line long log file. |
For #10447
Will run flaky test before I merge this.