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

Stop prompt during build #6585

Merged
merged 1 commit into from
Jan 28, 2021
Merged

Conversation

qiluo-msft
Copy link
Collaborator

- Why I did it
Some commands used during build will prompt user interactively, but this is not expected during build. Since most output is collected into log file, user could not see the prompt and feel the build process hangs.

- How I did it

  1. Use mv command in non interactive mode
  2. Redirect stdin to null if command output is collected into log file.

- How to verify it
Manual test in local build

- Which release branch to backport (provide reason below if selected)

  • 201811
  • 201911
  • 202006
  • 202012

- Description for the changelog

- A picture of a cute animal (not mandatory but encouraged)

@lguohan
Copy link
Collaborator

lguohan commented Jan 28, 2021

never experienced such issue. how to repro?

@qiluo-msft
Copy link
Collaborator Author

Somehow build a binary by root, and then build by normal user again.

-rw-r--r-- 1 root  root    205468 Dec 29 18:48 ../../target/debs/buster/libswsscommon_1.0.0_amd64.deb

@lguohan lguohan merged commit 0e72878 into sonic-net:master Jan 28, 2021
lguohan pushed a commit that referenced this pull request Jan 28, 2021
Some commands used during build will prompt user interactively, but this is not expected during build. Since most output is collected into log file, user could not see the prompt and feel the build process hangs.

- How I did it

Use mv command in non interactive mode
Redirect stdin to null if command output is collected into log file.
deran1980 pushed a commit to deran1980/sonic-buildimage that referenced this pull request Feb 4, 2021
Some commands used during build will prompt user interactively, but this is not expected during build. Since most output is collected into log file, user could not see the prompt and feel the build process hangs.

- How I did it

Use mv command in non interactive mode
Redirect stdin to null if command output is collected into log file.
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.

2 participants