Code Review
/
csit.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
C-Dash: Pre-load the data from parquets
[csit.git]
/
csit.infra.dash
/
app
/
cdash
/
utils
/
constants.py
diff --git
a/csit.infra.dash/app/cdash/utils/constants.py
b/csit.infra.dash/app/cdash/utils/constants.py
index
6e973b8
..
cca68a5
100644
(file)
--- a/
csit.infra.dash/app/cdash/utils/constants.py
+++ b/
csit.infra.dash/app/cdash/utils/constants.py
@@
-1,4
+1,4
@@
-# Copyright (c) 202
2
Cisco and/or its affiliates.
+# Copyright (c) 202
3
Cisco and/or its affiliates.
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at:
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at:
@@
-39,14
+39,11
@@
class Constants:
BRAND = "CSIT-Dash"
# The application description.
BRAND = "CSIT-Dash"
# The application description.
- DESCRIPTION =
'Performance Dashboard "CSIT-Dash"'
+ DESCRIPTION =
"Performance Dashboard"
# External stylesheets.
EXTERNAL_STYLESHEETS = ["/static/dist/css/bootstrap.css", ]
# External stylesheets.
EXTERNAL_STYLESHEETS = ["/static/dist/css/bootstrap.css", ]
- # Top level template for all pages.
- TEMPLATE = "d-flex h-100 text-center text-white bg-dark"
-
# Path and name of the file specifying the HTML layout of the dash
# application.
MAIN_HTML_LAYOUT_FILE = "base_layout.jinja2"
# Path and name of the file specifying the HTML layout of the dash
# application.
MAIN_HTML_LAYOUT_FILE = "base_layout.jinja2"
@@
-66,7
+63,7
@@
class Constants:
# Maximal value of TIME_PERIOD for data read from the parquets in days.
# Do not change without a good reason.
# Maximal value of TIME_PERIOD for data read from the parquets in days.
# Do not change without a good reason.
- MAX_TIME_PERIOD = 1
8
0
+ MAX_TIME_PERIOD = 1
3
0
# It defines the time period for data read from the parquets in days from
# now back to the past.
# It defines the time period for data read from the parquets in days from
# now back to the past.
@@
-74,14
+71,12
@@
class Constants:
# TIME_PERIOD = MAX_TIME_PERIOD - is the default value
TIME_PERIOD = MAX_TIME_PERIOD # [days]
# TIME_PERIOD = MAX_TIME_PERIOD - is the default value
TIME_PERIOD = MAX_TIME_PERIOD # [days]
- # List of releases used for iterative data processing.
- # The releases MUST be in the order from the current (newest) to the last
- # (oldest).
- RELEASES = ["csit2210", "csit2206", "csit2202", ]
-
############################################################################
# General, application wide, layout affecting constants.
############################################################################
# General, application wide, layout affecting constants.
+ # Add a time delay (in ms) to the spinner being shown
+ SPINNER_DELAY = 500
+
# If True, clear all inputs in control panel when button "ADD SELECTED" is
# pressed.
CLEAR_ALL_INPUTS = False
# If True, clear all inputs in control panel when button "ADD SELECTED" is
# pressed.
CLEAR_ALL_INPUTS = False
@@
-101,7
+96,7
@@
class Constants:
}
]
}
]
- # Checklist "All" is enable, visible and unchecked.
+ # Checklist "All" is enable
d
, visible and unchecked.
CL_ALL_ENABLED = [
{
"label": "All",
CL_ALL_ENABLED = [
{
"label": "All",
@@
-114,7
+109,7
@@
class Constants:
PLACEHOLDER = html.Nobr("")
# List of drivers used in CSIT.
PLACEHOLDER = html.Nobr("")
# List of drivers used in CSIT.
- DRIVERS = ("avf", "af-xdp", "rdma", "dpdk")
+ DRIVERS = ("avf", "af-xdp", "rdma", "dpdk"
, "mlx5"
)
# Labels for input elements (dropdowns, ...).
LABELS = {
# Labels for input elements (dropdowns, ...).
LABELS = {
@@
-158,7
+153,8
@@
class Constants:
"3n-dnv": 2.000,
"3n-icx": 2.600,
"3n-skx": 2.500,
"3n-dnv": 2.000,
"3n-icx": 2.600,
"3n-skx": 2.500,
- "3n-tsh": 2.200
+ "3n-tsh": 2.200,
+ "3n-snr": 2.200
}
############################################################################
}
############################################################################
@@
-253,7
+249,7
@@
class Constants:
# News.
# The title.
# News.
# The title.
- NEWS_TITLE = "
CI TEST FAILURE AND ANOMALY STATISTICS
"
+ NEWS_TITLE = "
Failures and Anomalies
"
# The pathname prefix for the application.
NEWS_ROUTES_PATHNAME_PREFIX = "/news/"
# The pathname prefix for the application.
NEWS_ROUTES_PATHNAME_PREFIX = "/news/"
@@
-270,7
+266,7
@@
class Constants:
# Report.
# The title.
# Report.
# The title.
- REPORT_TITLE = "P
ER RELEASE PERFORMANCE RESULTS
"
+ REPORT_TITLE = "P
er Release Performance
"
# The pathname prefix for the application.
REPORT_ROUTES_PATHNAME_PREFIX = "/report/"
# The pathname prefix for the application.
REPORT_ROUTES_PATHNAME_PREFIX = "/report/"
@@
-285,7
+281,7
@@
class Constants:
# Statistics.
# The title.
# Statistics.
# The title.
- STATS_TITLE = "
CI JOB EXECUTION STATISTICS
"
+ STATS_TITLE = "
Test Job Statistics
"
# The pathname prefix for the application.
STATS_ROUTES_PATHNAME_PREFIX = "/stats/"
# The pathname prefix for the application.
STATS_ROUTES_PATHNAME_PREFIX = "/stats/"
@@
-303,7
+299,7
@@
class Constants:
# Trending.
# The title.
# Trending.
# The title.
- TREND_TITLE = "P
ERFORMANCE TRENDING (DAILY, WEEKLY)
"
+ TREND_TITLE = "P
erformance Trending
"
# The pathname prefix for the application.
TREND_ROUTES_PATHNAME_PREFIX = "/trending/"
# The pathname prefix for the application.
TREND_ROUTES_PATHNAME_PREFIX = "/trending/"