add JSON output for queued and running tests
Bug #1519894 reported by
Andy Whitcroft
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Auto Package Testing |
Fix Released
|
Wishlist
|
Barry Warsaw |
Bug Description
The running.shtml has a three lots of useful data in it, queue lengths, running jobs and their output, and pending jobs.
It would be nice if this could be encoded in something more computer readable (as well) so that one could parse it to produce reports against it (think adt-ps). The queue at the bottom is already half encoded.
something like
{
'queue-depths':
'running-jobs':
'queues':
}
with the bits attached to them in order, or something would be interesting to me.
Changed in auto-package-testing: | |
status: | New → Triaged |
importance: | Undecided → Wishlist |
summary: |
- running.shtml: could we ahve a json raw dump of this data + add JSON output for queued and running tests |
Changed in auto-package-testing: | |
assignee: | nobody → Martin Pitt (pitti) |
tags: | added: proposed-migration-vsprint |
Changed in auto-package-testing: | |
status: | Triaged → In Progress |
assignee: | Martin Pitt (pitti) → Barry Warsaw (barry) |
To post a comment you must log in.
Andy, can you give more information about the format of the keys and values you'd like to see in the JSON? For example, there are a couple of options.
For queue-depth, would you rather have nested dictionaries, or flattened values? E.g. we have distroseries and architecture, which we could arrange as {'trusty': {'amd64': 4, 'i386': 3}} or we could flatten that to {'trusty-amd64': 4, 'trusty-i386': ...} It sort of depends on what kind of unpacking the client is expecting to do because it's pretty easy to shuffle things around any way you want it.
As for running-jobs, how much of the information we have on hand do you want? We could essentially mirror the entire running_tests dictionary that we have internally. It currently maps:
package -> runhash -> release -> arch -> (params, duration, logtail)
E.g. do you want the logtail, which of course can get big
In any case, I'll submit a first draft of the patch to Pitti, and then we can refine it based on your feedback.