Skip to content

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

Merged
merged 1 commit into from
Apr 17, 2020

Conversation

DonJayamanne
Copy link

@DonJayamanne DonJayamanne commented Apr 15, 2020

For #10447
Will run flaky test before I merge this.

@@ -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);
Copy link
Author

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',
Copy link
Author

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).

Copy link
Member

Choose a reason for hiding this comment

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

Copy link
Member

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.

Copy link

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.

Copy link

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.

Copy link
Author

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',
Copy link
Member

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.
Copy link
Member

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?

Copy link
Author

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.

Copy link

@rchiodo rchiodo left a comment

Choose a reason for hiding this comment

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

⏲️

Copy link

@rchiodo rchiodo left a comment

Choose a reason for hiding this comment

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

:shipit:

@sonarqubecloud
Copy link

Kudos, SonarCloud Quality Gate passed!

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities (and Security Hotspot 0 Security Hotspots to review)
Code Smell A 0 Code Smells

No Coverage information No Coverage information
0.6% 0.6% Duplication

@DonJayamanne
Copy link
Author

yay tests are passing, was difficult to tell cuz there are other failures and its a 44k line long log file.

@DonJayamanne DonJayamanne merged commit 47be27b into microsoft:master Apr 17, 2020
@DonJayamanne DonJayamanne deleted the fixCertTests branch April 17, 2020 18:56
@lock lock bot locked as resolved and limited conversation to collaborators Apr 25, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants