report_job_results: handle cancelled jobs
ClosedPublic

Authored by adamwill on Aug 7 2015, 9:19 PM.

Details

Summary

Cancelled jobs have their own state (at least in the openQA
running on happyassassin, they do). This causes r_j_r to get
stuck forever if any of the jobs are cancelled. Consider a
cancelled job 'done'.

Test Plan

Try submitting results for a set of jobs that includes one or
more cancelled jobs. It should now work (before it would get
stuck).

Diff Detail

Repository
rOPENQA fedora_openqa
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.
adamwill retitled this revision from to report_job_results: handle cancelled jobs.Aug 7 2015, 9:19 PM
adamwill updated this object.
adamwill edited the test plan for this revision. (Show Details)
adamwill added reviewers: jskladan, garretraziel.
garretraziel accepted this revision.Aug 10 2015, 9:08 AM

I am not sure, but I think that in older versions, cancelled jobs had job_state['state'] == 'done', but job_state['outcome'] == 'cancelled', but nvm, this will work either way.

This revision is now accepted and ready to land.Aug 10 2015, 9:08 AM
This revision was automatically updated to reflect the committed changes.