def get_error_count(project, startdate, enddate):
    """Return a count of all objectstore entries with error"""
    ptm = PerformanceTestRefDataModel(project)
    err_counts = ptm.get_object_error_counts(startdate, enddate)
    ptm.disconnect()

    return err_counts
Exemple #2
0
def get_error_count(project, startdate, enddate):
    """Return a count of all objectstore entries with error"""
    ptm = PerformanceTestRefDataModel(project)
    err_counts = ptm.get_object_error_counts(startdate, enddate)
    ptm.disconnect()

    return err_counts
def get_json_blob_by_test_run_id(project, test_run_id):
    """Based on the test_run_id passed in, return the JSON blob"""
    ptm = PerformanceTestRefDataModel(project)
    blob = ptm.get_object_json_blob_for_test_run([test_run_id])
    ptm.disconnect()

    if blob:
        return blob[0]

    return {}
def get_json_blob(project, id):
    """Based on the ID passed in, return the JSON blob"""
    ptm = PerformanceTestRefDataModel(project)
    blob = ptm.get_object_json_blob(id)
    ptm.disconnect()

    if blob:
        return blob[0]

    return {}
Exemple #5
0
def get_json_blob_by_test_run_id(project, test_run_id):
    """Based on the test_run_id passed in, return the JSON blob"""
    ptm = PerformanceTestRefDataModel(project)
    blob = ptm.get_object_json_blob_for_test_run([test_run_id])
    ptm.disconnect()

    if blob:
        return blob[0]

    return {}
Exemple #6
0
def get_json_blob(project, id):
    """Based on the ID passed in, return the JSON blob"""
    ptm = PerformanceTestRefDataModel(project)
    blob = ptm.get_object_json_blob(id)
    ptm.disconnect()

    if blob:
        return blob[0]

    return {}
def get_error_detail_count(project, startdate, enddate):
    """Return counts attempting to parse some of the bad JSON to extract details."""
    ptm = PerformanceTestRefDataModel(project)
    err_data = ptm.get_parsed_object_error_data(startdate, enddate)
    ptm.disconnect()

    counts = {}
    for item in err_data:
        tb = item["test_build"]
        counts[result_key(tb)] = counts.get(result_key(tb), 0) + 1
    return counts
Exemple #8
0
def get_error_detail_count(project, startdate, enddate):
    """Return counts attempting to parse some of the bad JSON to extract details."""
    ptm = PerformanceTestRefDataModel(project)
    err_data = ptm.get_parsed_object_error_data(startdate, enddate)
    ptm.disconnect()

    counts = {}
    for item in err_data:
        tb = item["test_build"]
        counts[result_key(tb)] = counts.get(result_key(tb), 0) + 1
    return counts
def get_db_size(project):
    """Return the size of the objectstore database on disk in MB."""
    ptm = PerformanceTestRefDataModel(project)
    size = ptm.get_db_size(source="objectstore")
    ptm.disconnect()
    return size
def get_error_list(project, startdate, enddate):
    """Return a list of all objectstore entries with errors in a date range"""
    ptm = PerformanceTestRefDataModel(project)
    err_list = ptm.get_object_error_metadata(startdate, enddate)
    ptm.disconnect()
    return err_list
Exemple #11
0
def get_db_size(project):
    """Return the size of the objectstore database on disk in MB."""
    ptm = PerformanceTestRefDataModel(project)
    size = ptm.get_db_size(source="objectstore")
    ptm.disconnect()
    return size
Exemple #12
0
def get_error_list(project, startdate, enddate):
    """Return a list of all objectstore entries with errors in a date range"""
    ptm = PerformanceTestRefDataModel(project)
    err_list = ptm.get_object_error_metadata(startdate, enddate)
    ptm.disconnect()
    return err_list