Skip to content
This repository has been archived by the owner on Sep 18, 2024. It is now read-only.

fix #1578 and some improvements #2370

Merged
merged 11 commits into from
Apr 26, 2020
Merged

fix #1578 and some improvements #2370

merged 11 commits into from
Apr 26, 2020

Conversation

squirrelsc
Copy link
Member

@squirrelsc squirrelsc commented Apr 24, 2020

Add shell support for ssh connection, so that remote script can be started with user environment.

Minor fixes,

  1. Fix gpu_metrics_collector to support pyenv. As pyenv will create one more process, so that original pgrep code always got extra processes, and cannot start gpu_metrics_collector.
  2. Fix NASUI failure on dev-install-node-modules, to create subfolder every time.
  3. Fix MakeFile to reduce mis-created links, and other minor issues.
  4. Add node --watch for nni_manager for better dev experience.

#1578

if (useShell) {
captureStdOut = true;
channel.stdin.write(`${command}\n`);
captureStdOut = false;
Copy link
Contributor

Choose a reason for hiding this comment

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

Firstly set captureStdOut = true, then set captureStdOut = false, what is the purpose of this operation?

Copy link
Member Author

Choose a reason for hiding this comment

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

It used to reduce output in log, but it may bring confusing. So removed this flag.

};

if (useShell) {
client.shell(callback);
Copy link
Contributor

Choose a reason for hiding this comment

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

how to exec command in client.shell?

Copy link
Member Author

Choose a reason for hiding this comment

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

It supports in ssh2 package, and the command will be send in 'ready' event as above lines

if (useShell) {
  channel.stdin.write(`${command}\n`);
  channel.end("exit\n");
}

@squirrelsc squirrelsc merged commit 1c6f1ef into master Apr 26, 2020
@squirrelsc squirrelsc deleted the dev-issue-1578 branch April 26, 2020 09:33
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