-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
[Reproducible Build] Installing packages during docker-sonic-vs.gz build is rejected by versions control framework #7152
Closed
Labels
Triaged
this issue has been triaged
Comments
@xumia @qiluo-msft , do you have any thoughts on this issue? Thank you. |
Similar to the python packages mentioned in the example, some debian packages installation are also not "reproducible" (eg. python3-pip) installed during building but uninstalled later are not captured in versions-deb-* files. So their versions are not verified when version control is enabled. |
qiluo-msft
added a commit
to sonic-net/sonic-utilities
that referenced
this issue
May 3, 2021
… are no broken changes with future versions (#1530) #### What I did Fixes sonic-net/sonic-buildimage#7152 #### How I did it Relax the install_requires
qiluo-msft
added a commit
to qiluo-msft/sonic-utilities
that referenced
this issue
May 5, 2021
… are no broken changes with future versions (sonic-net#1530) Fixes sonic-net/sonic-buildimage#7152 Relax the install_requires
gitsabari
pushed a commit
to gitsabari/sonic-utilities
that referenced
this issue
Jun 15, 2021
… are no broken changes with future versions (sonic-net#1530) #### What I did Fixes sonic-net/sonic-buildimage#7152 #### How I did it Relax the install_requires
malletvapid23
added a commit
to malletvapid23/Sonic-Utility
that referenced
this issue
Aug 3, 2023
… are no broken changes with future versions (#1530) #### What I did Fixes sonic-net/sonic-buildimage#7152 #### How I did it Relax the install_requires
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Description
Background information for reproducible framework is described in sonic-net/SONiC#684.
The versions files are dumped after building the docker image, but during build, the package versions to install may vary.
As an example for docker-sonic-vs image build, the python3 package
netifaces
was installed first with version 0.10.9 by this line, and then when installing sonic-utilities whl, the package version is downgraded to 0.10.7. So the finalnetifaces
version in docker-sonic-vs image is 0.10.7, and the versions-py3 file containsnetifaces==0.10.7
.When versions control is enabled, building docker-sonic-vs image throws
ERROR: Could not find a version that satisfies the requirement netifaces==0.10.9
error when runningpip3 install netifaces==0.10.9
as an intermediate step.Steps to reproduce the issue:
Describe the results you received:
Describe the results you expected:
The solution can be just update one line in docker-sonic-vs/Dockerfile.j2 to be
pip3 install netifaces==0.10.9
, but wondering if this is a good solution for similar issues: whether strict the versions defined in Dockerfiles to be consistent, or multiple versions of same package are allowed in versions control framework.The text was updated successfully, but these errors were encountered: