Commit 7a09eecd authored by Tomas Krizek's avatar Tomas Krizek

Merge branch 'contrib-no-dnsviz-reports' into 'master'

contrib/job_manager: don't create empty dnsviz files

See merge request !49
parents 813ed392 9a7daeb4
Pipeline #44681 passed with stage
in 1 minute and 25 seconds
......@@ -4,6 +4,7 @@ set -e
# Find Python scripts
FILES=$(find . \
-path './ci' -prune -o \
-path './.git' -prune -o \
-name '*.py' -print)
python3 -m mypy --ignore-missing-imports ${FILES}
......@@ -5,6 +5,7 @@ set -e
FILES=$(find . \
-type d -exec test -e '{}/__init__.py' \; -print -prune -o \
-path './ci' -prune -o \
-path './.git' -prune -o \
-name '*.py' -print)
python3 -m pylint -j 0 --rcfile pylintrc ${FILES}
......@@ -10,9 +10,9 @@ touch ${JOBNAME}_histogram.png
if [ -f "stats.json" ]; then
touch ${JOBNAME}_report.noref.json
touch ${JOBNAME}_report.noref.txt
touch ${JOBNAME}_dnsviz.json.gz
touch ${JOBNAME}_report.noref.dnsviz.json
touch ${JOBNAME}_report.noref.dnsviz.txt
# touch ${JOBNAME}_dnsviz.json.gz
# touch ${JOBNAME}_report.noref.dnsviz.json
# touch ${JOBNAME}_report.noref.dnsviz.txt
fi
mkdir logs
tar -czf ${JOBNAME}_logs.tar.gz -T /dev/null # empty tar by default
......
......@@ -43,9 +43,10 @@ def condor_submit(txn, priority: int) -> int:
output_files.extend([
'j$(Cluster).$(Process)_report.noref.json',
'j$(Cluster).$(Process)_report.noref.txt',
'j$(Cluster).$(Process)_dnsviz.json.gz',
'j$(Cluster).$(Process)_report.noref.dnsviz.json',
'j$(Cluster).$(Process)_report.noref.dnsviz.txt'])
# 'j$(Cluster).$(Process)_dnsviz.json.gz',
# 'j$(Cluster).$(Process)_report.noref.dnsviz.json',
# 'j$(Cluster).$(Process)_report.noref.dnsviz.txt',
])
elif 'run_resperf.sh' in input_files:
executable = 'run_resperf.sh'
output_files = [
......
......@@ -264,8 +264,8 @@ def print_fields_overview(
headers.extend(['Change', 'Change (%)'])
print('== Target Disagreements')
print(tabulate(
sorted(rows, key=lambda data: data[1], reverse=True),
print(tabulate( # type: ignore
sorted(rows, key=lambda data: data[1], reverse=True), # type: ignore
headers,
tablefmt='simple',
floatfmt=('s', 'd', '.2f', 's', '+.2f')))
......@@ -295,8 +295,8 @@ def print_field_mismatch_stats(
headers.extend(['Change', 'Change (%)'])
print('== Field "{}" mismatch statistics'.format(field))
print(tabulate(
sorted(rows, key=lambda data: data[2], reverse=True),
print(tabulate( # type: ignore
sorted(rows, key=lambda data: data[2], reverse=True), # type: ignore
headers,
tablefmt='simple',
floatfmt=('s', 's', 'd', '.2f', 's', '+.2f')))
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment