fix: we skip download if the same version of nucleus is being deployed#1717
Conversation
During installation the gg nucleus zip is not copied into the artifacts dir, as the installer is contained in the zip file. Even if the zip file is copied, it does not match the expected checksum, as there is some code signature added in the zip file provided by the zip file coming from cloudfront. This is now using the version that is provided by the localCandidate.getVersion() function to determine if a download is necessary. So the nucleus component is treated special. Signed-off-by: Thomas Roos <throos@amazon.de>
f1261cc to
e3d1e57
Compare
|
Binary incompatibility detected for commit 7d51433. com.aws.greengrass.lifecyclemanager.KernelAlternatives is binary incompatible and is source incompatible because of METHOD_LESS_ACCESSIBLE Produced by binaryCompatability.py |
|
Unit Tests Coverage Report
Minimum allowed coverage is Generated by 🐒 cobertura-action against 7d51433 |
|
Integration Tests Coverage Report
Minimum allowed coverage is Generated by 🐒 cobertura-action against 7d51433 |
alter-mage
left a comment
There was a problem hiding this comment.
The PR looks good to me. I made some logging improvements but that's just nit.
2a48329 to
b7be83e
Compare
b7be83e to
7d51433
Compare
Issue #, if available:
Description of changes:
During installation the gg nucleus zip is not copied into the artifacts dir, as the installer is contained in the zip file. Even if the zip file is copied, it does not match the expected checksum, as there is some code signature added in the zip file provided by the zip file coming from cloudfront.
This is now using the version that is provided by the localCandidate.getVersion() function to determine if a download is necessary.
So the nucleus component is treated special.
Why is this change necessary:
As not necessary downloads should be avoided.
How was this change tested:
Any additional information or context required to review the change:
Documentation Checklist:
Compatibility Checklist:
any deprecated method or type.
Refer to Compatibility Guidelines for more information.
By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.