-
-
Notifications
You must be signed in to change notification settings - Fork 17
Read disposable performance from JSON #38
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
6aacfd1
to
5bd00f3
Compare
utils/lib/openqa_api.py
Outdated
for key, value in data.items(): | ||
name = value["name"] | ||
mean = value["mean"] | ||
key = name + "(mean:" + mean + ")" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
TypeError: can only concatenate str (not "float") to str
utils/lib/openqa_api.py
Outdated
name = value["name"] | ||
mean = value["mean"] | ||
key = name + "(mean:" + mean + ")" | ||
result[key] = float(value) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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