CIResults.metrics module

class CIResults.metrics.Bin(upper_limit, label)

Bases: object

class CIResults.metrics.BugCommentCountTrend(*args, **kwargs)

Bases: ItemCountTrend

class CIResults.metrics.ColouredObjectPieChartData(objects)

Bases: PieChartData

class CIResults.metrics.ItemCountTrend(items, fields=[], periodizer=None)

Bases: object

class CIResults.metrics.LineChartData(results, x_labels, line_label_colors={})

Bases: object

label_to_color(label)
stats()
class CIResults.metrics.MetricPassRatePerRunconfig(user_query)

Bases: object

filtering_model

alias of TestResult

class CIResults.metrics.MetricPassRatePerTest(user_query)

Bases: object

class AggregatedTestResults(test)

Bases: object

add_discarded_result(result_id, duration, issues=None)
add_result(result_id, status, duration, issues=None)
issue_occurence_rate(issue)
status_occurence_rate(status)
class PassRateStatistics(passrate, runrate, discarded_rate, notrun_rate)

Bases: tuple

filtering_model

alias of TestResult

class CIResults.metrics.MetricRuntimeHistory(user_query, average_per_machine=False)

Bases: object

filtering_model

alias of TestsuiteRun

class CIResults.metrics.OpenCloseCountTrend(*args, **kwargs)

Bases: ItemCountTrend

class CIResults.metrics.Period(start, end, label_format='%Y-%m-%d %H:%M:%S')

Bases: object

class CIResults.metrics.PeriodCommentItem(period, label, dev_comments, user_comments, accounts)

Bases: tuple

class CIResults.metrics.PeriodOpenItem(period, label, active, new, closed)

Bases: tuple

class CIResults.metrics.Periodizer(period_offset=relativedelta(days=+1, weekday=MO(+1), hour=0, minute=0, second=0, microsecond=0), period=relativedelta(days=+7), period_count=30, end_date=datetime.datetime(2024, 12, 19, 9, 25, 30, 18046, tzinfo=datetime.timezone.utc), description='last 30 weeks', label_format='WW-%Y-%W')

Bases: object

classmethod from_json(json_string)
class CIResults.metrics.PieChartData(results, colors={})

Bases: object

label_to_color(label)
stats()
class CIResults.metrics.Rate(count, total)

Bases: object

class CIResults.metrics.Statistics(unit, samples=None)

Bases: object

add(sample)
class CIResults.metrics.TimeBinizer(items, bins=[<CIResults.metrics.Bin object>, <CIResults.metrics.Bin object>, <CIResults.metrics.Bin object>, <CIResults.metrics.Bin object>, <CIResults.metrics.Bin object>, <CIResults.metrics.Bin object>, <CIResults.metrics.Bin object>, <CIResults.metrics.Bin object>])

Bases: object

CIResults.metrics.bugs_followed_since()
CIResults.metrics.metrics_bugs_over_time(user_query, periodizer=None)
CIResults.metrics.metrics_bugs_ttr(user_query, date=datetime.datetime(2024, 12, 19, 9, 25, 30, 18452, tzinfo=datetime.timezone.utc), period=datetime.timedelta(days=30))
CIResults.metrics.metrics_comments_over_time(user_query, periodizer=None)
CIResults.metrics.metrics_failure_filing_delay(date=datetime.datetime(2024, 12, 19, 9, 25, 30, 18449, tzinfo=datetime.timezone.utc), period=datetime.timedelta(days=30))
CIResults.metrics.metrics_issues_over_time(user_query, periodizer=None)
CIResults.metrics.metrics_issues_ttr(date=datetime.datetime(2024, 12, 19, 9, 25, 30, 18444, tzinfo=datetime.timezone.utc), period=datetime.timedelta(days=30))
CIResults.metrics.metrics_knownfailure_issues_stats(failures)
CIResults.metrics.metrics_knownfailure_machines_stats(failures)
CIResults.metrics.metrics_knownfailure_statuses_stats(failures)
CIResults.metrics.metrics_knownfailure_tests_stats(failures)
CIResults.metrics.metrics_open_bugs_age(user_query, date=datetime.datetime(2024, 12, 19, 9, 25, 30, 18454, tzinfo=datetime.timezone.utc))
CIResults.metrics.metrics_open_issues_age(date=datetime.datetime(2024, 12, 19, 9, 25, 30, 18447, tzinfo=datetime.timezone.utc))
CIResults.metrics.metrics_testresult_issues_stats(failures)
CIResults.metrics.metrics_testresult_machines_stats(results)
CIResults.metrics.metrics_testresult_statuses_stats(results)
CIResults.metrics.metrics_testresult_tests_stats(results)