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

Remove unnecessary args, ensure proper remote test #13555

Merged
merged 1 commit into from
May 25, 2023
Merged

Conversation

DonJayamanne
Copy link
Contributor

Fixes #12832

traceVerbose('No default remote controller, hence returning the active interpreter');
return createActiveInterpreterController(viewType, resource, this.interpreters, this.registration);
// This should never happen.
throw new Error('No default remote controller, hence returning the active interpreter');
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Tests should fail instead of running successfully under the wrong conditions.
If we're running remote tests, then we MUST run against a remote kernel
Previously we'd just log a message and tests would end up running against a local kernel, and thats completely wrong.

@@ -699,7 +695,6 @@ async function selectPythonRemoteKernelConnectionForActiveInterpreter(
export async function waitForKernelToGetAutoSelected(
notebookEditor: NotebookEditor,
expectedLanguage: string,
preferRemoteKernelSpec: boolean = false,
Copy link
Contributor Author

Choose a reason for hiding this comment

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

There's no need to specify this value, it can be derived from IS_REMOTE_NATIVE_TEST

@@ -63,5 +63,6 @@ export class JupyterServerSelectorCommand
this.handleMappings.set(handle, { uri: source, server: serverUri });
// Set the uri directly
await this.serverSelector.addJupyterServer({ id: this.id, handle });
this._onDidChangeHandles.fire();
Copy link
Contributor Author

Choose a reason for hiding this comment

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

This was missing

@DonJayamanne DonJayamanne marked this pull request as ready for review May 25, 2023 00:30
@DonJayamanne DonJayamanne enabled auto-merge (squash) May 25, 2023 00:31
@DonJayamanne DonJayamanne changed the title Remove unnecessary argument and proper remote test Remove unnecessary args, ensure proper remote test May 25, 2023
@DonJayamanne DonJayamanne merged commit 845902a into main May 25, 2023
@DonJayamanne DonJayamanne deleted the fixRemoteTests branch May 25, 2023 06:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Explore how to simplify the code for managing connections to local and remote Jupyter Servers
2 participants