Skip to content
This repository has been archived by the owner on May 21, 2024. It is now read-only.

Improve error reporting for sending metadata to Secondaries #1703

Merged
merged 2 commits into from
Jul 6, 2020

Conversation

pattivacek
Copy link
Collaborator

Previously, only the last Secondary to report an error would get reported. Now we handle all Secondary metadata sending failures and combine them into the device report as is done for installation.

Previously we were writing a separate config file for each Secondary,
despite that the Primary can only use one at a time. Now we create only
one and append to it if it already exists. We still store the
Secondary-specific files in their own subdirectories, but the exact
layout is a bit different. Several tests needed adjustment to these
changes, but functionally, nothing changed.

Signed-off-by: Patrick Vacek <patrickvacek@gmail.com>
Previously, only the last Secondary to report an error would get
reported. Now we handle all Secondary metadata sending failures and
combine them into the device report as is done for installation.

Signed-off-by: Patrick Vacek <patrickvacek@gmail.com>
@codecov-commenter
Copy link

Codecov Report

Merging #1703 into master will decrease coverage by 0.46%.
The diff coverage is 58.69%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #1703      +/-   ##
==========================================
- Coverage   75.44%   74.98%   -0.47%     
==========================================
  Files         195      195              
  Lines       13641    13750     +109     
==========================================
+ Hits        10292    10310      +18     
- Misses       3349     3440      +91     
Impacted Files Coverage Δ
src/libaktualizr/primary/sotauptaneclient.h 77.27% <ø> (-7.73%) ⬇️
src/virtual_secondary/virtualsecondary.cc 71.95% <50.00%> (-7.22%) ⬇️
src/libaktualizr/primary/sotauptaneclient.cc 61.82% <59.52%> (-4.43%) ⬇️
src/libaktualizr-posix/ipuptanesecondary.cc 81.31% <0.00%> (+0.98%) ⬆️
src/libaktualizr/package_manager/ostreemanager.cc 80.88% <0.00%> (+1.10%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 6eb2631...886d626. Read the comment docs.

@pattivacek pattivacek merged commit 4c3a488 into master Jul 6, 2020
@pattivacek pattivacek deleted the feat/metadata-failure-report branch July 6, 2020 09:38
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants