-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
[build][reproducible]Fix version file access for dbg container build #18485
Conversation
Oh typo there, should be `export SONIC_VERSION_CONTROL_COMPONENTS=all`
…On Wed, Mar 27, 2024 at 2:01 PM Konstantin Vasin ***@***.***> wrote:
I'm not sure SONIC_DPKG_CACHE_METHOD is fully implemented feature.
But if you change version_manager.py then SONIC_VERSION_CONTROL may be
affected.
—
Reply to this email directly, view it on GitHub
<#18485 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ACHPMMTSB7WSGSXXXAIJPHDY2MXT7AVCNFSM6AAAAABFLRKBPOVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDAMRTHE4DEMZXHA>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
|
I removed my comment because I thought you mean
|
@liushilongbuaa , can you take a look? |
I didn't get any errors for dbg docker container when reproducible build is enabled. |
We already get these dbg packages in When we copy version files in this line, the version files in buildinfo is the same as normal docker. |
Take docker-syncd-brcm-dbg.gz as an example, the dbg packages are saved to the dfiles/build/versions/dockers/docker-syncd-brcm/versions-deb-bullseye file, but these version files are not correct loaded when building. The version files copied to docker container are empty when inspecting it. Another evidence in docker-syncd-brcm-dbg.gz.log:
The warning is printed out at this line. You can still build the dbg docker because the check_apt_version only give warnings never errors. Speaking of that, I think the reproducible framework should throw errors instead of warnings but continue with "latest" versions, this silent warning makes the build not reproducible... And pin ALL dependency packages during build, not only the incremental ones to avoid conflicts resolving dependencies versions. I would love to provide the possible solutions for debian packages if you agreed. |
I checked the log. It didn't work for dbg docker 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.
LGTM
As I understand, we are using
|
BTW, why last version update was in January? |
We don't use this public mirror to build as we host our own mirrors to have better control. But I assume the mirror repositories host multiple versions of packages as the version files might be different between different release branches and can be upgraded? The version files should be still needed to tell which versions of packages to install. Anyway, the behavior of the reproducible build should be consistent between non-dbg and dbg containers build. We should merge this PR and continue discussion for separate issues if needed. |
I agree. It's just FYI.
And if you use some non-standard package installation like |
Opened a thread to discuss the strategy. Please move discussions there. I also add my proposal in the issue description. If all agreed, can this PR be approved and merged now? |
Kindly ping for review. |
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.
LGTM
Why I did it
Reproducible build fails when building dbg containers
make INSTALL_DEBUG_TOOLS=y target/docker-orchagent-dbg.gz
Work item tracking
How I did it
How to verify it
Which release branch to backport (provide reason below if selected)