[Build]: Fix installing dpkg packages in parallel issue#10175
Merged
xumia merged 4 commits intosonic-net:masterfrom Mar 14, 2022
Merged
[Build]: Fix installing dpkg packages in parallel issue#10175xumia merged 4 commits intosonic-net:masterfrom
xumia merged 4 commits intosonic-net:masterfrom
Conversation
liushilongbuaa
approved these changes
Mar 14, 2022
Collaborator
|
Could you explain the original problem? What is the error message? |
qiluo-msft
pushed a commit
that referenced
this pull request
Mar 16, 2022
Why I did it Fix the debian packages installing in parallel issue. Add apt hook command to support apt to print no version control info.
judyjoseph
pushed a commit
that referenced
this pull request
Mar 20, 2022
Why I did it Fix the debian packages installing in parallel issue. Add apt hook command to support apt to print no version control info.
xumia
added a commit
that referenced
this pull request
Apr 7, 2022
Why I did it Fix the debian packages installing in parallel issue. Add apt hook command to support apt to print no version control info.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Why I did it
Fix the debian packages installing in parallel issue.
Add apt hook command to support apt to print no version control info.
How I did it
Add a file lock, it can block the apt/apt-get installation for 10 min in max if another apt/apt-get installation command is running. It only has effect on the build time.
Clarify the feature to the lock in slave.mk:
Currently, we already has a lock in the slave.mk, it has no effect when installing the package inside of the makefile. Comparing the method, the method in the pr is more general, take effect when using the command apt/apt-get.
And it is not as a replacement for the debian installation lock in the slave.mk, another feature of the lock in slave.mk is to block some of the conflict packages installation, so make the conflict targets not building in the same time.
How to verify it
Which release branch to backport (provide reason below if selected)
Description for the changelog
Link to config_db schema for YANG module changes
A picture of a cute animal (not mandatory but encouraged)