-
Notifications
You must be signed in to change notification settings - Fork 54
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
fix: software artifacts are downloaded twice when the update-list
feature is not available
#3065
fix: software artifacts are downloaded twice when the update-list
feature is not available
#3065
Conversation
…t available Signed-off-by: Krzysztof Piotrowski <krzysztof.piotrowski@inetum.com>
Codecov ReportAttention: Patch coverage is
Additional details and impacted files📢 Thoughts on this report? Let us know! |
Robot Results
|
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. Can a system test be added to fully confirm the effectiveness of the fix? You can just assert that the agent log contains only one "downloading" statement for that artefact.
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.
I would only log an info!
telling that the agent installs the packages one after the other as update_list
is not supported for this type of packages
crates/core/plugin_sm/src/plugin.rs
Outdated
if let Err(SoftwareError::UpdateListNotSupported(name)) = outcome { | ||
info!("{}", SoftwareError::UpdateListNotSupported(name)); |
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 let Err(SoftwareError::UpdateListNotSupported(name)) = outcome { | |
info!("{}", SoftwareError::UpdateListNotSupported(name)); | |
if let Err(err @ SoftwareError::UpdateListNotSupported(_)) = outcome { | |
info!("{err}"); |
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.
Thanks, applied
Signed-off-by: Rina Fujino <rina.fujino.23@gmail.com>
8eed947
to
1d99114
Compare
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.
Approved
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
This small PR fixes issue with software artifacts being downloaded twice when
update-list
is not available. Extra validation step was introduced to check if artifact is downloaded.Proposed changes
Types of changes
Paste Link to the issue
Checklist
cargo fmt
as mentioned in CODING_GUIDELINEScargo clippy
as mentioned in CODING_GUIDELINESFurther comments