Skip to content

Conversation

benank
Copy link
Contributor

@benank benank commented Apr 14, 2022

If ConfigurePatching fails with an error, the error is now also written to autoAssessmentState and errors sections in autoAssessmentStatus.

@benank benank requested review from a team, kjohn-msft and rane-rajasi and removed request for a team April 14, 2022 18:52
@codecov
Copy link

codecov bot commented Apr 14, 2022

Codecov Report

Merging #137 (eaa431e) into master (f7f79bf) will increase coverage by 0.04%.
The diff coverage is 100.00%.

@@            Coverage Diff             @@
##           master     #137      +/-   ##
==========================================
+ Coverage   87.05%   87.09%   +0.04%     
==========================================
  Files          48       48              
  Lines        8263     8274      +11     
==========================================
+ Hits         7193     7206      +13     
+ Misses       1070     1068       -2     
Flag Coverage Δ
python27 85.91% <100.00%> (+0.04%) ⬆️
python39 87.04% <100.00%> (+0.04%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ
.../core/src/core_logic/ConfigurePatchingProcessor.py 92.47% <100.00%> (+0.08%) ⬆️
src/core/src/core_logic/PatchAssessor.py 98.38% <100.00%> (+0.02%) ⬆️
src/core/tests/Test_ConfigurePatchingProcessor.py 98.86% <100.00%> (+0.01%) ⬆️
src/core/tests/Test_PatchAssessor.py 97.43% <100.00%> (+0.56%) ⬆️
src/core/src/service_interfaces/StatusHandler.py 89.76% <0.00%> (+0.52%) ⬆️

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 f7f79bf...eaa431e. Read the comment docs.

return
if not self.telemetry_writer.is_agent_compatible():
error_msg = "{0} [{1}]".format(Constants.TELEMETRY_AT_AGENT_NOT_COMPATIBLE_ERROR_MSG, self.telemetry_writer.get_telemetry_diagnostics())
self.composite_logger.log_error(error_msg)
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Line removed because __report_consolidated_configure_patch_status logs the error, so this results in duplicate messages (at least, without the duplicate checking code that exists).

@benank benank merged commit 5f1d445 into master Apr 19, 2022
@benank benank deleted the bankiel-write-agent-multiple-statuses branch April 19, 2022 17:49
@benank benank mentioned this pull request Apr 19, 2022
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