Update the Virtualization Test to Clean up Logs (Bugfix)#743
Conversation
Codecov ReportAttention:
Additional details and impacted files@@ Coverage Diff @@
## main #743 +/- ##
==========================================
+ Coverage 37.06% 37.43% +0.37%
==========================================
Files 313 313
Lines 34805 34808 +3
Branches 5982 5983 +1
==========================================
+ Hits 12899 13029 +130
+ Misses 21335 21201 -134
- Partials 571 578 +7
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
Hook25
left a comment
There was a problem hiding this comment.
I have suggested a couple of ideas here and there, overall nice contribution, thank you.
To consider this ready I will need to ask you to write a few unit tests to improve the overall coverage of this contribution. Given that we have a 90% target on patches, covering cleanup and run_command should be enough but if you want/can, try to reach 100% (covering start_vm is going to be a little bit more complicated but we really need to improve the overall coverage of provider scripts and checkbox itself!).
79900bd to
0afd0db
Compare
baad4a9 to
1922999
Compare
I have added an option to reduce the error messages shown in the logs while the script checks to see if the virtual machine has booted. (Bugfix) for issue #695 Updated suggested changes in PR review - Changed error_msgs to log_stderr - Replaced elif with a cleaner if statement
be809d4 to
617fdb9
Compare
Add test for cleanup Fully test start_vm Partially test setup Add no stderr test
617fdb9 to
ea4ada6
Compare
* Update the Virtualization Test Clean up Logs I have added an option to reduce the error messages shown in the logs while the script checks to see if the virtual machine has booted. (Bugfix) for issue canonical#695 Updated suggested changes in PR review - Changed error_msgs to log_stderr - Replaced elif with a cleaner if statement * Add a few tests to virtualization.py Add test for cleanup Fully test start_vm Partially test setup Add no stderr test * Updated tests and small refactoring of start_vm * Black run_command and setup * Recover deleted minor tests --------- Co-authored-by: Hook25 <massimiliano.girardi@canonical.com>
* Update the Virtualization Test Clean up Logs I have added an option to reduce the error messages shown in the logs while the script checks to see if the virtual machine has booted. (Bugfix) for issue canonical#695 Updated suggested changes in PR review - Changed error_msgs to log_stderr - Replaced elif with a cleaner if statement * Add a few tests to virtualization.py Add test for cleanup Fully test start_vm Partially test setup Add no stderr test * Updated tests and small refactoring of start_vm * Black run_command and setup * Recover deleted minor tests --------- Co-authored-by: Hook25 <massimiliano.girardi@canonical.com>
I have added an option to reduce the error messages shown in the logs while the script checks to see if the virtual machine has booted.
This fixes this issue
#695
Jira Card
https://warthogs.atlassian.net/browse/SERVCERT-1259
This PR will replace PR #720
Description
Resolved issues
#695
Documentation
Tests
Run checkbox and run the virtualization/verify_lxd_vm job