Improve tempest subunit log stream conversion to json

Registered by Rohan

Right now, Rally converts the tempest subunit stream to xml using subunit2junitxml and then a custom parser which converts this xml to json which is eventually stored in raw format in the DB.

Adopt subunit2html.py from openstack-infra (https://github.com/openstack-infra/config/blob/master/modules/openstack_project/files/slave_scripts/subunit2html.py) to provide a json output by consuming the raw subunit stream from tempest.

Tasks
- Remove subunit2xml dependency and code from rally
- Allow sub-arguments to be passed to while invoking tempest (so that we can run specific tests in tempest etc).

- Convert raw subunit stream from tempest tests to json and store only json in DB, similar to subunit2html (https://github.com/openstack-infra/config/blob/master/modules/openstack_project/files/slave_scripts/subunit2html.py))

- Create json2html for drawing HTML from the JSON data in DB as required for the user via CLI or RESTAPI

Blueprint information

Status:
Complete
Approver:
Boris Pavlovic
Priority:
Medium
Drafter:
Rohan
Direction:
Approved
Assignee:
Rohan
Definition:
Approved
Series goal:
None
Implementation:
Implemented
Milestone target:
None
Started by
Boris Pavlovic
Completed by
Boris Pavlovic

Related branches

Sprints

Whiteboard

Gerrit topic: https://review.openstack.org/#q,topic:bp/tempest-subunit-to-json,n,z

Addressed by: https://review.openstack.org/100481
    Changes tempest subunit log handling

Addressed by: https://review.openstack.org/100861
    Adds python-subunit dependency to requirements

Addressed by: https://review.openstack.org/101917
    Adds html result generator for tempest runs

(?)

Work Items

This blueprint contains Public information 
Everyone can see this information.

Subscribers

No subscribers.