Replies: 3 comments 2 replies
-
Or the same 20 entries in CSV in barchart rendered in markdown. 98.1 ████████████████████ test\Repository\Program.py And scripts that made it. python scons-tests-csv2md.py > log.md
cat log.md | head -n 20 | wl-copy tuples = []
with open('log.csv') as log:
for line in log:
time, cmd = line.split(',')
sec = float(time)
test = cmd.split(maxsplit=1)[1]
tuples.append((sec, test))
tuples.sort()
tuples.reverse()
maxv = max(tuples)[0]
barw = 20
char = '█' # '░'
url = 'https://github.com/SCons/scons/blob/master/'
md = True
for s, t in tuples:
bar = char*int((s*barw)/maxv)
link = 'https://github.com/SCons/scons/blob/master/' + t.strip().replace("\\", "/")
mdlink = '[' + t.strip() + '](' + link + ')'
text = mdlink if md else t.strip()
print(f'{s} {bar} {text}') |
Beta Was this translation helpful? Give feedback.
-
Seems useful. We aren't having too many appveyor timeout problems these days - usually sometime external is going on - but the Windows tests are still too slow, no question. The run that includes code coverage checks normally take in the range of 45 minutes. |
Beta Was this translation helpful? Give feedback.
-
On WIndows, instantiating the SCons construction environment is expensive, thus lots of |
Beta Was this translation helpful? Give feedback.
-
I've made the script to get the slowest tests from AppVeyor log, because the check fails to complete within 1 hour limit.
It can be used from Linux command line to get a sorted CSV, which I attach here.
log.csv
And here is the first 20 entries from it.
Beta Was this translation helpful? Give feedback.
All reactions