-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Connect to raw kernel with command line args instead of connection file #11894
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
Connect to raw kernel with command line args instead of connection file #11894
Conversation
@@ -271,7 +271,7 @@ | |||
], | |||
"env": { | |||
// Remove `X` prefix to test with real browser to host DS ui (for DS functional tests). | |||
"xVSC_PYTHON_DS_UI_BROWSER": "1", | |||
"XVSC_PYTHON_DS_UI_BROWSER": "1", |
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.
That little x was bugging me 😆
// Update the args in the kernelspec to include the conenction file. | ||
// Instead of having to use a connection file update our local copy of the kernelspec to launch | ||
// directly with command line arguments | ||
private updateConnectionArgs() { |
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.
I thought briefly about where to handle this and I believe this is the right spot.
- We already make a deep copy of the kernelspec in KernelProcess so that we can mess with it, but not change the original spec
- Same location we were previously creating and inserting the connection file info.
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.
I tested on windows as well. Not fully sure if this fixes the nightly test runs (as those issues don't seem to repro doing real python tests locally) so I'll queue up a run for that. I would expect this to fix the nightly test issues but even if there was another issue there this new method seems like a solid improvement, no messing around with creating and removing files.
Kudos, SonarCloud Quality Gate passed!
|
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.
Hey did you try a nightly run? Can't seem to find it. Was curious if it worked or not. |
@rchiodo Just queued it up. Just didn't do that until after lunch. I'm going to submit regardless as I think it's a good change anyways. Fingers crossed that it fixes the windows flakes as well. |
For #11883
package-lock.json
has been regenerated by runningnpm install
(if dependencies have changed).