[Buildbot-devel] Obtain build times from the json API
ian.h.bell at gmail.com
Tue Nov 25 15:47:41 UTC 2014
Right, I think I have that all sorted, the only bit that I can't figure out
is how to programmatically download the JSON data from the server. Since
there isn't a .json url to be downloaded, I can't do something like
json_file = wget.download('www.coolprop.dreamhosters.com:8010/json/builders
It just sits there and doesn't do anything.
You've been very helpful so far, and I am very appreciative. Any ideas?
On Mon, Nov 24, 2014 at 11:40 PM, Vasily <vasslitvinov at pisem.net> wrote:
> Have a look at <host:port>/json/help ;-)
> 25 нояб. 2014 г. 2:41 пользователь "Ian Bell" <ian.h.bell at gmail.com>
>> Very nice, yes that does seem to work, now just to get a list of slaves
>> from json.
>> On Mon, Nov 24, 2014 at 3:02 PM, Vasily <vasslitvinov at pisem.net> wrote:
>>> Hi Ian,
>>> What Buildbot version your master is running?
>>> At ours 0.8.7p1 the query like
>>> returns JSON object for the latest completed build which contains a
>>> section named "times" - those are start and finish time in Unix notation if
>>> I'm not mistaken.
>>> 2014-11-24 22:13 GMT+03:00 Ian Bell <ian.h.bell at gmail.com>:
>>>> I have quite a few builds in my buildbot config, and I know some are
>>>> slower than others, and I want to see what can be done to improve the build
>>>> latency. So I was hoping to be able to obtain the last build duration
>>>> through the JSON api, but I haven't been able to figure out how to do
>>>> that.. Am I missing something obvious, or is this just not possible?
>>>> Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server
>>>> from Actuate! Instantly Supercharge Your Business Reports and Dashboards
>>>> with Interactivity, Sharing, Native Excel Exports, App Integration &
>>>> Get technology previously reserved for billion-dollar corporations, FREE
>>>> Buildbot-devel mailing list
>>>> Buildbot-devel at lists.sourceforge.net
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the devel