Skip to content

[console] improve picocom launch efficiency#4531

Open
hehuang-nokia wants to merge 1 commit into
sonic-net:masterfrom
hehuang-nokia:dev_cons_feature
Open

[console] improve picocom launch efficiency#4531
hehuang-nokia wants to merge 1 commit into
sonic-net:masterfrom
hehuang-nokia:dev_cons_feature

Conversation

@hehuang-nokia
Copy link
Copy Markdown

replace pexpect calls with direct function call and exec while preserving the original logic

What I did

streamlined the picocom launch process

How I did it

replaced the first pexpect call with a direct function call
wrapped the picocom launch in a bash script
replaced the second pexpect call with execvp

How to verify it

first, launch console app just like before
then, use ps -ef to make sure "connect line" is no longer a standalone process

Previous command output (if the output of a command-line utility has changed)

connect line X or just reverse ssh

@mssonicbld
Copy link
Copy Markdown
Collaborator

/azp run

@azure-pipelines
Copy link
Copy Markdown

Azure Pipelines successfully started running 1 pipeline(s).

@mssonicbld
Copy link
Copy Markdown
Collaborator

/azp run

@azure-pipelines
Copy link
Copy Markdown

Azure Pipelines successfully started running 1 pipeline(s).

@mssonicbld
Copy link
Copy Markdown
Collaborator

/azp run

@azure-pipelines
Copy link
Copy Markdown

Azure Pipelines successfully started running 1 pipeline(s).

replace pexpect calls with direct function call and exec
while preserving the original logic

Signed-off-by: hehuang <henry.1.huang@nokia.com>
@mssonicbld
Copy link
Copy Markdown
Collaborator

/azp run

@azure-pipelines
Copy link
Copy Markdown

Azure Pipelines successfully started running 1 pipeline(s).

@hehuang-nokia hehuang-nokia marked this pull request as ready for review May 9, 2026 01:55
@Pavan-Nokia
Copy link
Copy Markdown

@Blueve @lizhijianrd Please help review

@Blueve
Copy link
Copy Markdown
Contributor

Blueve commented May 13, 2026

This PR will offload the centralized consutil/picocom implementation to a platform specific script.
May I know what is the motivation of this change and who you measure the improvement of this change?

Copy link
Copy Markdown
Contributor

@Blueve Blueve left a comment

Choose a reason for hiding this comment

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

Hold until clarified the motivation of this change

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants