pcvs.backend.report module
- class pcvs.backend.report.Report[source]
Bases:
object
Map a Report interface, to handle request from frontends.
- classmethod dict_convert_list_to_cnt(l)[source]
Convert dict of arrays to a dict of array lengths.
Used to convert dict of per-status jobs to a summary of them.
- load_alive_sessions()[source]
Load currently active sessions as reference in PATH_SESSION.
A issue with this function, as invalid sessions are not managet yet.
- Return type:
- property session_ids: List[int]
Get the list of session ids managed by this instance.
- Returns:
a list of session ids
- Return type:
list of integers
- session_infos()[source]
Get sesion metadata for each session currently loaded into the instance.
- Returns:
the list of metadata (as dict)
- Return type:
- single_session_get_view(sid, name, subset=None, summary=False)[source]
Get a specific view from a given session.
A view consists in a per-status split of jobs depending on the purpose of the stored view. PCVS currently provide automatically: * Per status * Per tags * Per labels
If subset is provided, only the nodes matching the key will be returned. If summary is True, a job count will be returned instead of actual job ids.
- single_session_map_id(sid, jid)[source]
For a given session id, convert a job it into its relative clas:Test object.
- pcvs.backend.report.build_static_pages(buildir)[source]
From a given build directory, generate static pages.
This can be used only for already run test-suites (no real-time support) and when Flask cannot/don’t want to be used.