-
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
06.Version-cache - Environment settings #13024
base: master
Are you sure you want to change the base?
06.Version-cache - Environment settings #13024
Conversation
90a8b6c
to
a15eeca
Compare
/azpw run Azure.sonic-buildimage |
/AzurePipelines run Azure.sonic-buildimage |
Azure Pipelines successfully started running 1 pipeline(s). |
- ARCH flags are not passed correctly to version cache framework. - Added required environment variables to the cache framework. - Fixed the uncleaned cache file copy code from version script due to merge.
a15eeca
to
14f23fa
Compare
/azp run Azure.sonic-buildimage |
Azure Pipelines successfully started running 1 pipeline(s). |
Need to rerun it for armhf agent pool change. |
/azpw run Azure.sonic-buildimage |
/AzurePipelines run Azure.sonic-buildimage |
Azure Pipelines successfully started running 1 pipeline(s). |
In December new commits for vcache were merged and now we have 2 sonic-slave-images after build finished.
Some cleanup scripts can failed because they expect slave images have pattern
Should we fix this? |
Thanks for flagging this.
I will check and fix this.
…On Mon, Jan 23, 2023 at 3:49 PM Konstantin Vasin ***@***.***> wrote:
@Kalimuthu-Velappan <https://github.com/Kalimuthu-Velappan> @xumia
<https://github.com/xumia>
In December new commits for vcache was merged and now we have 2
sonic-slave-images after build finished.
sonic-slave-bullseye bc6ac16e263 38cab04607b5 47 seconds ago 6.03GB
tmp-sonic-slave-bullseye bc6ac16e263 4bd80d159d7d 51 seconds ago 6.03GB
Some cleanup scripts can failed because they expect slave images have
pattern sonic-slave-*:
https://github.com/sonic-net/sonic-buildimage/blob/260a2ec3e7c671b716529b0faf9040fc924ecddc/.azure-pipelines/template-clean-sonic-slave.yml#L7
Should we fix this?
—
Reply to this email directly, view it on GitHub
<#13024 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AM2UC2SYJMNHSV5KLIPU7ALWTZLLZANCNFSM6AAAAAAS3UH5LI>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
--
This electronic communication and the information and any files transmitted
with it, or attached to it, are confidential and are intended solely for
the use of the individual or entity to whom it is addressed and may contain
information that is confidential, legally privileged, protected by privacy
laws, or otherwise restricted from disclosure to anyone else. If you are
not the intended recipient or the person responsible for delivering the
e-mail to the intended recipient, you are hereby notified that any use,
copying, distributing, dissemination, forwarding, printing, or copying of
this e-mail is strictly prohibited. If you received this e-mail in error,
please return the e-mail to the sender, delete it from your computer, and
destroy any printed copy of it.
|
Also probably need to fix
|
rsync is installed now for every build to every docker image:
but we remove rsync from docker containers only if vcache is enabled: sonic-buildimage/src/sonic-build-hooks/scripts/post_run_cleanup Lines 10 to 14 in 96817c4
I think need to fix it and install rsync only if vcache is enabled. Also auto-generated code is inserted in Dockerfiles above line: |
|
|
||
# Select version files for SHA calculation | ||
VERSION_FILES="${SRC_VERSION_PATH}/dockers/${DOCKER_IMAGE_NAME}/versions-*-${DISTRO}-${ARCH} ${SRC_VERSION_PATH}/default/versions-*" | ||
VERSION_FILES="${SRC_VERSION_PATH}/dockers/${DOCKER_IMAGE_NAME/-dbg/}/versions-*-${DISTRO}-${ARCH} ${SRC_VERSION_PATH}/default/versions-*" |
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.
If I try to build broadcom
I get cat: 'files/build/versions/dockers/sonic-slave-bullseye/versions-*-bullseye-amd64': No such file or directory
when calculate sha1sum
hash below.
It's because version file for amd64 doesn't have arch suffix:
versions-deb-bullseye versions-deb-bullseye-arm64 versions-deb-bullseye-armhf versions-py3
Should we fix this?
Why I did it
How I did it
How to verify it
Which release branch to backport (provide reason below if selected)
Description for the changelog
Ensure to add label/tag for the feature raised. example - PR#2174 under sonic-utilities repo. where, Generic Config and Update feature has been labelled as GCU.
Link to config_db schema for YANG module changes
A picture of a cute animal (not mandatory but encouraged)