-
Notifications
You must be signed in to change notification settings - Fork 341
Update sonic-swss-common pipeline build for Bullseye #716
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
Merged
saiarcot895
merged 14 commits into
sonic-net:master
from
saiarcot895:bullseye-docker-sonic-vs
Mar 28, 2023
Merged
Changes from all commits
Commits
Show all changes
14 commits
Select commit
Hold shift + click to select a range
fb3574e
Don't install python-swsscommon in docker-sonic-vs
saiarcot895 cec1a08
Change AzP to build for Bullseye only
saiarcot895 87f5077
Don't install python-swsscommon_*.deb.
saiarcot895 37fcdbd
Merge remote-tracking branch 'origin/master' into bullseye-docker-son…
saiarcot895 5d46a4f
Use pytest-3 instead of pytest
saiarcot895 bc7b119
Clean up build rules to only support Bullseye builds
saiarcot895 510b43f
Update Microsoft repo URL for Bullseye
saiarcot895 1fbb507
Merge remote-tracking branch 'origin/master' into bullseye-docker-son…
saiarcot895 35eaff7
Merge remote-tracking branch 'origin/master' into bullseye-docker-son…
saiarcot895 b26c0bb
Fix sairedis build for Bullseye
saiarcot895 bdb85ec
Fix swss build.
saiarcot895 3a366e2
Temporarily bump up time limit for sairedis build
saiarcot895 e1506de
Replace deb packages instead of remove and install
saiarcot895 1f67e67
Empty commit to make new commit hash.
saiarcot895 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
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
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
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
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
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.
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.
libswsscommon depends on libboost1.71-dev. (in debian/control Line5)
But docker-sonic-vs uninstalled libboost1.71. This line should fail. @saiarcot895 can you rerun the pipeline? Maybe the former PR check used old docker-sonic-vs image.
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.
The dependency string is specified as
libboost-dev | libboost1.71-dev, which means eitherlibboost-devorlibboost1.71-devneeds to be installed. Sincelibboost-devis installed in Bullseye, the dependency is met.In Buster, Boost 1.71 is installed through the
libboost1.71-dev(and associated) packages. The Buster default is Boost 1.67, and I guess something explicitly wanted to use Boost 1.71, so all packages are built with that. Because libswsscommon might still get built for Buster (it's needed for the nat and sflow containers), that part of the dependency string cannot be removed just yet.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.
/mnt$ docker run --rm -ti --entrypoint bash docker-sonic-vs:latest
root@9f79d2f3aae7:/# apt list| grep libboost
WARNING: apt does not have a stable CLI interface. Use with caution in scripts.
libboost-serialization1.74.0/now 1.74.0-9 amd64 [installed,local]
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.
docker-sonic-vs didn't install libboost-dev or libboost1.71-dev
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.
The docker container shouldn't need the dev package. The dev package is only for building libswsscommon, and should only be present in the slave container.
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.
Line 5 of
debian/controllists the build-time dependencies. This does not necessarily correspond to runtime dependencies. The runtime dependency list is automatically generated, and gets filled into theshlibs:Dependsvariable for each package. For thelibswsscommonpackage, this dependency list is libboost-serialization1.74.0 (>= 1.74.0), libc6 (>= 2.14), libgcc-s1 (>= 3.0), libhiredis0.14 (>= 0.14.0), libnl-3-200 (>= 3.2.21), libnl-nf-3-200 (>= 3.2.7), libnl-route-3-200 (>= 3.2.7), libstdc++6 (>= 9), libuuid1 (>= 2.16), libyang, libzmq5 (>= 4.0.1+dfsg) (for a package built on Bullseye).