Repository navigation
Read disposable performance from JSON - #38
Conversation
6aacfd1 to
5bd00f3
Compare
| for key, value in data.items(): | ||
| name = value["name"] | ||
| mean = value["mean"] | ||
| key = name + "(mean:" + mean + ")" |
There was a problem hiding this comment.
TypeError: can only concatenate str (not "float") to str
| name = value["name"] | ||
| mean = value["mean"] | ||
| key = name + "(mean:" + mean + ")" | ||
| result[key] = float(value) |
There was a problem hiding this comment.
and here value is a dict - float() doesn't work on it
|
And finally, existing past jobs have the old format and the script loads those too for comparison - dropping old format support breaks that. |
|
BTW, you can run the script yourself, it uses public API (except actually posting the comment, but with |
Yes, I never actually run this as I didn't knew, I should have asked for help/instructions. Is the command known to take long (more than 5 min)? I am using verbose and there are network connections for the first minute and then it hangs. Maybe there is something happening but not being logged. |
5bd00f3 to
70a78a3
Compare
|
It does take a while with the |
|
I didn't get a report from the public API yet (15 minutes hanging) but did commit on a best effort. |
|
|
After making all those API calls, it should finish relatively quickly... |
| value = data[1] | ||
| data_dict = dict(v.split("=", maxsplit=1) for v in data[2:]) | ||
| key = name + "(avg:" + data_dict["average"] + ")" | ||
| result[key] = float(total) |
There was a problem hiding this comment.
total is not set in this scope... value?
4feb3e6 to
b37303b
Compare
|
| - btrfs-progs | ||
| - python3-nose2 | ||
| - python3-objgraph | ||
| - python3-deepmerge |
There was a problem hiding this comment.
Wrap this in {% if grains['osrelease'] >= '4.3' %} (or just != '4.2') - the package is not available in F37 (R4.2 dom0).
b37303b to
d849d0a
Compare
For: QubesOS/qubes-issues#1512
Requires: QubesOS/qubes-core-admin#719