-
Notifications
You must be signed in to change notification settings - Fork 343
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
Avocado Jobs Keys #6076
Avocado Jobs Keys #6076
Conversation
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #6076 +/- ##
===========================================
+ Coverage 54.32% 68.63% +14.30%
===========================================
Files 202 202
Lines 21892 21910 +18
===========================================
+ Hits 11892 15037 +3145
+ Misses 10000 6873 -3127 ☔ View full report in Codecov by Sentry. |
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.
Hi @harvey0100, thank you for investigating this and finding a solution. I have a few small comments, please take a look. Also, I would like to ask you to add tests which will catch the issues from #6067 in the future. Thank you.
f4d195d
to
f0d92c0
Compare
Fix: Handle missing job data in 'avocado jobs list' command - Updated 'handle_list_command' to use `job.get()` for safely accessing job data. - If a key is missing, it now defaults to '<unknown>' instead of causing a crash. - Refactored some code due to codeclimate suggestion. Reference: avocado-framework#6067 Signed-off-by: Harvey Lynden <hlynden@redhat.com>
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, thanks!
Fix: Handle missing job data in 'avocado jobs list' command
job.get()
for safely accessing job data.Reference: #6067