Change-Id: I407e3cdeb25547d46fafed702ee608f6c0e03091
Signed-off-by: Tibor Frank <tifrank@cisco.com>
# Generate the chart:
period_name = "Daily" if period == 1 else \
"Weekly" if period < 20 else "Monthly"
# Generate the chart:
period_name = "Daily" if period == 1 else \
"Weekly" if period < 20 else "Monthly"
- chart["layout"]["title"] = chart["title"].format(period=period_name)
+ # chart["layout"]["title"] = chart["title"].format(period=period_name)
_generate_chart(traces,
chart["layout"],
file_name="{0}-{1}-{2}{3}".format(
_generate_chart(traces,
chart["layout"],
file_name="{0}-{1}-{2}{3}".format(
# Separator used in file names
SEPARATOR = "__"
# Separator used in file names
SEPARATOR = "__"
-REGEX_RELEASE = re.compile(r'(\D*)(\d{4})(\D*)')
+REGEX_RELEASE = re.compile(r'(\D*)(\d{4}|master)(\D*)')
def download_data_files(spec):
def download_data_files(spec):
try:
response = get(url, stream=True)
code = response.status_code
try:
response = get(url, stream=True)
code = response.status_code
+ # temporary workaround, remove when output.log.xml is not needed
+ if code != codes["OK"] and \
+ spec.input["file-name"].endswith(".gz"):
+ url = '.'.join(url.split('.')[:-1]) + ".log.gz"
+ response = get(url, stream=True)
+ code = response.status_code
+
if code != codes["OK"]:
logging.warning(
"Jenkins: {0}: {1}.".format(code, responses[code]))
if code != codes["OK"]:
logging.warning(
"Jenkins: {0}: {1}.".format(code, responses[code]))
logging.info("{0}: {1}".format(code, responses[code]))
elif spec.input["file-name"].endswith(".gz"):
logging.info("{0}: {1}".format(code, responses[code]))
elif spec.input["file-name"].endswith(".gz"):
- rename(new_name, new_name[:-7])
- with open(new_name[:-7], 'r') as xml_file:
+ rename(new_name, new_name[:-3])
+ with open(new_name[:-3], 'r') as xml_file:
with gzip.open(new_name, 'wb') as gz_file:
gz_file.write(xml_file.read())
with gzip.open(new_name, 'wb') as gz_file:
gz_file.write(xml_file.read())
- new_name = new_name[:-7]
+ new_name = new_name[:-3]
status = "downloaded"
logging.info("{0}: {1}".format(code, responses[code]))
status = "downloaded"
logging.info("{0}: {1}".format(code, responses[code]))
-
type: "input" # Ignored in debug mode
general:
-
type: "input" # Ignored in debug mode
general:
- file-name: "output.xml.log.gz"
+ file-name: "output.xml.gz"
file-format: ".gz"
download-path: "{job}/{build}/archives/{filename}"
extract: "output.xml"
file-format: ".gz"
download-path: "{job}/{build}/archives/{filename}"
extract: "output.xml"
| | ... | ${max_rate}pps | ${framesize} | ${traffic_profile}
*** Test Cases ***
| | ... | ${max_rate}pps | ${framesize} | ${traffic_profile}
*** Test Cases ***
-| tc01-64B-1t1c-eth-l2bdscale1mmaclrn-ndrdisc
+| tc01-64B-1t1c-eth-l2bdscale1mmaclrn-mrr
| | [Documentation]
| | ... | [Cfg] DUT runs L2BD switching config with with\
| | ... | 1 thread, 1 phy core, 1 receive queue per NIC port.
| | [Documentation]
| | ... | [Cfg] DUT runs L2BD switching config with with\
| | ... | 1 thread, 1 phy core, 1 receive queue per NIC port.
| | [Template] | Check RR for L2BD eth-l2bdscale
| | framesize=${64} | wt=1 | rxq=1
| | [Template] | Check RR for L2BD eth-l2bdscale
| | framesize=${64} | wt=1 | rxq=1
-| tc02-1518B-1t1c-eth-l2bdscale1mmaclrn-ndrdisc
+| tc02-1518B-1t1c-eth-l2bdscale1mmaclrn-mrr
| | [Documentation]
| | ... | [Cfg] DUT runs L2BD switching config with with\
| | ... | 1 thread, 1 phy core, 1 receive queue per NIC port.
| | [Documentation]
| | ... | [Cfg] DUT runs L2BD switching config with with\
| | ... | 1 thread, 1 phy core, 1 receive queue per NIC port.
| | [Template] | Check RR for L2BD eth-l2bdscale
| | framesize=${1518} | wt=1 | rxq=1
| | [Template] | Check RR for L2BD eth-l2bdscale
| | framesize=${1518} | wt=1 | rxq=1
-| tc03-9000B-1t1c-eth-l2bdscale1mmaclrn-ndrdisc
+| tc03-9000B-1t1c-eth-l2bdscale1mmaclrn-mrr
| | [Documentation]
| | ... | [Cfg] DUT runs L2BD switching config with with\
| | ... | 1 thread, 1 phy core, 1 receive queue per NIC port.
| | [Documentation]
| | ... | [Cfg] DUT runs L2BD switching config with with\
| | ... | 1 thread, 1 phy core, 1 receive queue per NIC port.
| | [Template] | Check RR for L2BD eth-l2bdscale
| | framesize=${9000} | wt=1 | rxq=1
| | [Template] | Check RR for L2BD eth-l2bdscale
| | framesize=${9000} | wt=1 | rxq=1
-| tc04-IMIX-1t1c-eth-l2bdscale1mmaclrn-ndrdisc
+| tc04-IMIX-1t1c-eth-l2bdscale1mmaclrn-mrr
| | [Documentation]
| | ... | [Cfg] DUT runs L2BD switching config with with\
| | ... | 1 thread, 1 phy core, 1 receive queue per NIC port.
| | [Documentation]
| | ... | [Cfg] DUT runs L2BD switching config with with\
| | ... | 1 thread, 1 phy core, 1 receive queue per NIC port.
| | [Template] | Check RR for L2BD eth-l2bdscale
| | framesize=IMIX_v4_1 | wt=1 | rxq=1
| | [Template] | Check RR for L2BD eth-l2bdscale
| | framesize=IMIX_v4_1 | wt=1 | rxq=1
-| tc05-64B-2t2c-eth-l2bdscale1mmaclrn-ndrdisc
+| tc05-64B-2t2c-eth-l2bdscale1mmaclrn-mrr
| | [Documentation]
| | ... | [Cfg] DUT runs L2BD switching config with with\
| | ... | 2 threads, 2 phy cores, 1 receive queue per NIC port.
| | [Documentation]
| | ... | [Cfg] DUT runs L2BD switching config with with\
| | ... | 2 threads, 2 phy cores, 1 receive queue per NIC port.
| | [Template] | Check RR for L2BD eth-l2bdscale
| | framesize=${64} | wt=2 | rxq=1
| | [Template] | Check RR for L2BD eth-l2bdscale
| | framesize=${64} | wt=2 | rxq=1
-| tc06-1518B-2t2c-eth-l2bdscale1mmaclrn-ndrdisc
+| tc06-1518B-2t2c-eth-l2bdscale1mmaclrn-mrr
| | [Documentation]
| | ... | [Cfg] DUT runs L2BD switching config with with\
| | ... | 2 threads, 2 phy cores, 1 receive queue per NIC port.
| | [Documentation]
| | ... | [Cfg] DUT runs L2BD switching config with with\
| | ... | 2 threads, 2 phy cores, 1 receive queue per NIC port.
| | [Template] | Check RR for L2BD eth-l2bdscale
| | framesize=${1518} | wt=2 | rxq=1
| | [Template] | Check RR for L2BD eth-l2bdscale
| | framesize=${1518} | wt=2 | rxq=1
-| tc07-9000B-2t2c-eth-l2bdscale1mmaclrn-ndrdisc
+| tc07-9000B-2t2c-eth-l2bdscale1mmaclrn-mrr
| | [Documentation]
| | ... | [Cfg] DUT runs L2BD switching config with with\
| | ... | 2 threads, 2 phy cores, 1 receive queue per NIC port.
| | [Documentation]
| | ... | [Cfg] DUT runs L2BD switching config with with\
| | ... | 2 threads, 2 phy cores, 1 receive queue per NIC port.
| | [Template] | Check RR for L2BD eth-l2bdscale
| | framesize=${9000} | wt=2 | rxq=1
| | [Template] | Check RR for L2BD eth-l2bdscale
| | framesize=${9000} | wt=2 | rxq=1
-| tc08-9000B-2t2c-eth-l2bdscale1mmaclrn-ndrdisc
+| tc08-9000B-2t2c-eth-l2bdscale1mmaclrn-mrr
| | [Documentation]
| | ... | [Cfg] DUT runs L2BD switching config with with\
| | ... | 2 threads, 2 phy cores, 1 receive queue per NIC port.
| | [Documentation]
| | ... | [Cfg] DUT runs L2BD switching config with with\
| | ... | 2 threads, 2 phy cores, 1 receive queue per NIC port.
| | [Template] | Check RR for L2BD eth-l2bdscale
| | framesize=IMIX_v4_1 | wt=2 | rxq=1
| | [Template] | Check RR for L2BD eth-l2bdscale
| | framesize=IMIX_v4_1 | wt=2 | rxq=1
-| tc09-64B-4t4c-eth-l2bdscale1mmaclrn-ndrdisc
+| tc09-64B-4t4c-eth-l2bdscale1mmaclrn-mrr
| | [Documentation]
| | ... | [Cfg] DUT runs L2BD switching config with with\
| | ... | 4 threads, 4 phy cores, 2 receive queues per NIC port.
| | [Documentation]
| | ... | [Cfg] DUT runs L2BD switching config with with\
| | ... | 4 threads, 4 phy cores, 2 receive queues per NIC port.
| | [Template] | Check RR for L2BD eth-l2bdscale
| | framesize=${64} | wt=4 | rxq=2
| | [Template] | Check RR for L2BD eth-l2bdscale
| | framesize=${64} | wt=4 | rxq=2
-| tc10-1518B-4t4c-eth-l2bdscale1mmaclrn-ndrdisc
+| tc10-1518B-4t4c-eth-l2bdscale1mmaclrn-mrr
| | [Documentation]
| | ... | [Cfg] DUT runs L2BD switching config with with\
| | ... | 4 threads, 4 phy cores, 2 receive queues per NIC port.
| | [Documentation]
| | ... | [Cfg] DUT runs L2BD switching config with with\
| | ... | 4 threads, 4 phy cores, 2 receive queues per NIC port.
| | [Template] | Check RR for L2BD eth-l2bdscale
| | framesize=${1518} | wt=4 | rxq=2
| | [Template] | Check RR for L2BD eth-l2bdscale
| | framesize=${1518} | wt=4 | rxq=2
-| tc11-9000B-4t4c-eth-l2bdscale1mmaclrn-ndrdisc
+| tc11-9000B-4t4c-eth-l2bdscale1mmaclrn-mrr
| | [Documentation]
| | ... | [Cfg] DUT runs L2BD switching config with with\
| | ... | 4 threads, 4 phy cores, 2 receive queues per NIC port.
| | [Documentation]
| | ... | [Cfg] DUT runs L2BD switching config with with\
| | ... | 4 threads, 4 phy cores, 2 receive queues per NIC port.
| | [Template] | Check RR for L2BD eth-l2bdscale
| | framesize=${9000} | wt=4 | rxq=2
| | [Template] | Check RR for L2BD eth-l2bdscale
| | framesize=${9000} | wt=4 | rxq=2
-| tc12-IMIX-4t4c-eth-l2bdscale1mmaclrn-ndrdisc
+| tc12-IMIX-4t4c-eth-l2bdscale1mmaclrn-mrr
| | [Documentation]
| | ... | [Cfg] DUT runs L2BD switching config with with\
| | ... | 4 threads, 4 phy cores, 2 receive queues per NIC port.
| | [Documentation]
| | ... | [Cfg] DUT runs L2BD switching config with with\
| | ... | 4 threads, 4 phy cores, 2 receive queues per NIC port.