Project

General

Profile

Actions

action #8082

closed

calculate overall test result in os-autoinst or worker?

Added by lnussel over 9 years ago. Updated about 5 years ago.

Status:
Resolved
Priority:
Low
Assignee:
-
Category:
Feature requests
Target version:
Start date:
2015-07-01
Due date:
% Done:

0%

Estimated time:

Description

os-autoinst doesn't know the overall status of a run anymore, it only uploads individual module results the openqa and that one calculates the result when the job is set to done.

When uploading hard disk images however one needs to know the overall status as images shouldn't be uploaded if the test completed but failed

Actions #1

Updated by coolo about 9 years ago

I don't want to duplicate the logic - but how about querying openQA for the result before uploading?

Actions #2

Updated by okurz almost 9 years ago

  • Category set to 140
Actions #3

Updated by coolo almost 9 years ago

I added the job_result to the update_status call, so the worker knows the overall state:
https://github.com/os-autoinst/openQA/pull/499

Actions #4

Updated by okurz about 8 years ago

  • Status changed from New to Resolved

IMHO this is solved. The whole communication protocol was reworked and the status reporting is fine. Also, images to be published are only uploaded for passed jobs.

Actions #5

Updated by coolo about 8 years ago

says who? openQA worker will happily upload images for failed jobs because it doesn't know if the job failed

Actions #6

Updated by okurz about 8 years ago

  • Status changed from Resolved to In Progress

Why don't we have images as assets for failed jobs in the webUI then? Because they are discarded after uploading? If this is the case then it would be a good starting point to preserve qcow images of failed jobs for investigation purposes on demand.

Actions #7

Updated by oholecek about 8 years ago

os-autoinst will not mark the image for upload in case of fatal failure. But will mark it ready to upload in case of failed important test. As of os-autoinst#PR597

Actions #8

Updated by coolo about 8 years ago

we don't want to upload them as the STARTS_AFTER tests should only run on working images. And we don't upload failed images for investigation as we rollback failing job modules - make any hints disappear.

Actions #9

Updated by okurz about 8 years ago

coolo wrote:

we don't want to upload them as the STARTS_AFTER tests should only run on working images. And we don't upload failed images for investigation as we rollback failing job modules - make any hints disappear.

I don't see a general problem with that. My idea was to provide some kind of variable, like we have with KEEPHDDS, which can be used to make all modules fatal, not trigger START_AFTER tests and publish the image maybe even to a special "investigation" space pool with it's own quota where we can store these.

Actions #10

Updated by coolo about 8 years ago

Actions #11

Updated by coolo about 7 years ago

  • Priority changed from Normal to Low
  • Target version set to Ready

this became less relevant as we stopped overwriting disk images on upload, but we still want to avoid uploading failed images. It just doesn't sound too important at this point

Actions #12

Updated by szarate about 7 years ago

  • Status changed from In Progress to Feedback

Nobody is working on this

Actions #13

Updated by coolo about 7 years ago

  • Status changed from Feedback to New
Actions #14

Updated by okurz over 5 years ago

  • Category changed from 140 to Feature requests
Actions #15

Updated by okurz over 5 years ago

  • Status changed from New to Resolved

so I guess we can state it was done with https://github.com/os-autoinst/os-autoinst/pull/597 . Also there is another, dedicated ticket for the feature request to upload images on demand even from failed jobs (but also not trigger downstream jobs on them)

Actions #16

Updated by coolo about 5 years ago

  • Target version changed from Ready to Done
Actions

Also available in: Atom PDF