diff options
author | Tibor Frank <tifrank@cisco.com> | 2024-06-24 08:49:16 +0000 |
---|---|---|
committer | Tibor Frank <tifrank@cisco.com> | 2024-06-24 08:50:52 +0000 |
commit | f6672b034cdadfa82082ba34bd135ed4bef96446 (patch) | |
tree | a764a9202eeada1404e3af6307663b251eaa5b55 /csit.infra.dash/app/cdash/utils | |
parent | 8bc433ed5ffef4d187a80c36825b021aff9daec7 (diff) |
C-Dash: fix in test job statistics
Change-Id: I290b3d01f578a2809cf3b89fe91faa51b6dc2522
Signed-off-by: Tibor Frank <tifrank@cisco.com>
(cherry picked from commit c997873d51c8a51984bdf7da027ee8041bab8e2c)
Diffstat (limited to 'csit.infra.dash/app/cdash/utils')
-rw-r--r-- | csit.infra.dash/app/cdash/utils/constants.py | 3 | ||||
-rw-r--r-- | csit.infra.dash/app/cdash/utils/utils.py | 3 |
2 files changed, 2 insertions, 4 deletions
diff --git a/csit.infra.dash/app/cdash/utils/constants.py b/csit.infra.dash/app/cdash/utils/constants.py index bafa7b7f42..7cdfe76ee7 100644 --- a/csit.infra.dash/app/cdash/utils/constants.py +++ b/csit.infra.dash/app/cdash/utils/constants.py @@ -490,9 +490,6 @@ class Constants: # Layout of plot.ly graphs. STATS_GRAPH_LAYOUT_FILE = "cdash/stats/layout.yaml" - # The default job displayed when the page is loaded first time. - STATS_DEFAULT_JOB = "csit-vpp-perf-mrr-daily-master-2n-icx" - # Default name of downloaded file with selected data. STATS_DOWNLOAD_FILE_NAME = "stats.csv" diff --git a/csit.infra.dash/app/cdash/utils/utils.py b/csit.infra.dash/app/cdash/utils/utils.py index e203dfbccd..27ecd1f763 100644 --- a/csit.infra.dash/app/cdash/utils/utils.py +++ b/csit.infra.dash/app/cdash/utils/utils.py @@ -286,12 +286,13 @@ def set_job_params(df: pd.DataFrame, job: str) -> dict: """ l_job = job.split("-") + idx = -3 if "-x-" in job else -2 return { "job": job, "dut": l_job[1], "ttype": l_job[3], "cadence": l_job[4], - "tbed": "-".join(l_job[-2:]), + "tbed": "-".join(l_job[idx:]), "duts": generate_options(get_duts(df)), "ttypes": generate_options(get_ttypes(df, l_job[1])), "cadences": generate_options(get_cadences(df, l_job[1], l_job[3])), |