Skip to content

Make sure new binaries replace existing binaries in docker-sonic-vs#807

Merged
qiluo-msft merged 3 commits intosonic-net:masterfrom
saiarcot895:fix-docker-sonic-vs-container-binaries
Aug 1, 2023
Merged

Make sure new binaries replace existing binaries in docker-sonic-vs#807
qiluo-msft merged 3 commits intosonic-net:masterfrom
saiarcot895:fix-docker-sonic-vs-container-binaries

Conversation

@saiarcot895
Copy link
Copy Markdown
Contributor

PR #716 removed a step where existing deb packages were removed before installing the new deb packages. The problem is that due to Docker's change detection code, where it only checks the file size and the modification timestamp, even if the file gets modified when installing a newer debian package, the file size may remain the same, and the modification timestamp will remain the same (since this is based on the debian/changelog timestamp). This caused changed binaries to not actually replace the existing binaries.

Fix this by re-adding the line that removed existing packages first.

PR sonic-net#716 removed a step where existing deb packages were removed before
installing the new deb packages. The problem is that due to Docker's
change detection code, where it only checks the file size and the
modification timestamp, even if the file gets modified when installing a
newer debian package, the file size may remain the same, and the
modification timestamp will remain the same (since this is based on the
debian/changelog timestamp). This caused changed binaries to not
actually replace the existing binaries.

Fix this by re-adding the line that removed existing packages first.

Signed-off-by: Saikrishna Arcot <[email protected]>
qiluo-msft
qiluo-msft previously approved these changes Jul 28, 2023
Signed-off-by: Saikrishna Arcot <[email protected]>
@saiarcot895 saiarcot895 marked this pull request as ready for review July 28, 2023 22:00
@saiarcot895 saiarcot895 marked this pull request as draft July 28, 2023 22:01
@qiluo-msft qiluo-msft merged commit 82581cf into sonic-net:master Aug 1, 2023
SviatoslavBoichuk pushed a commit to SviatoslavBoichuk/sonic-swss-common that referenced this pull request Sep 7, 2023
…onic-net#807)

PR sonic-net#716 removed a step where existing deb packages were removed before installing the new deb packages. The problem is that due to Docker's change detection code, where it only checks the file size and the modification timestamp, even if the file gets modified when installing a newer debian package, the file size may remain the same, and the modification timestamp will remain the same (since this is based on the debian/changelog timestamp). This caused changed binaries to not actually replace the existing binaries.

Fix this by re-adding the line that removed existing packages first.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants