Bug 1485866

Summary: [RFE] Provide <task duration="..."> and <recipe arch="..."> when reporting job results
Product: [Retired] Restraint Reporter: Miloš Prchlík <mprchlik>
Component: generalAssignee: beaker-dev-list
Status: CLOSED WONTFIX QA Contact:
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 0.1.31CC: asavkov, bpeck, cbouchar, danrodri
Target Milestone: ---Keywords: FutureFeature
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2020-11-19 21:05:38 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Miloš Prchlík 2017-08-28 10:12:43 UTC
Description of problem:

When job finishes, restraint leaves job.xml with results of tasks. We'd like to get our hands on task duration and recipe architecture, which are - when it comes on XMLs provided by Beaker - available as attributes of <task /> and <recipe /> elements, respectively:

  <recipe id="4209029" job_id="2023720" recipe_set_id="3397650" whiteboard="" role="RECIPE_MEMBERS" kickstart_url="http://beaker.engineering.redhat.com/kickstart/3407018" ks_meta="" kernel_options="" kernel_options_post="" start_time="2017-08-28 08:42:46" result="Pass" status="Running" distro="Fedora-26" arch="x86_64" family="Fedora26" variant="Workstation" system="sheep-67.lab.eng.brq.redhat.com">
  ...
    <task name="/distribution/install" role="STANDALONE" version="1.12-2" id="60511393" result="Pass" status="Completed" avg_time="1200" start_time="2017-08-28 09:03:45" finish_time="2017-08-28 09:05:04" duration="0:01:19">

Restraint is a bit terser:

  <recipe id="1" status="Completed" result="PASS" whiteboard="Server">
  ...
    <task name="/distribution/system/setup" keepchanges="" role="None" id="1" status="Completed" result="PASS">


Version-Release number of selected component (if applicable):


How reproducible:


Steps to Reproduce:
1.
2.
3.

Actual results:


Expected results:


Additional info:

Comment 1 Daniel Rodríguez 2020-07-02 11:32:05 UTC
Restraint is already including task duration in the results in job.xml,

 <task name="/tasks/pointless" keepchanges="" role="STANDALONE" id="1" status="Completed" result="PASS" start_time="2020-07-02T11:18:44+0000" end_time="2020-07-02T11:18:49+0000" duration="05">

Arch is still missing,

 <recipe id="1" status="Completed" result="PASS" checkpoint_file="checkpoint_135699.conf">