Alternatives for polling the API
Hi, I would like osc to have command or plugin to behave similar to Fedora's koji build command. It is waiting until the running build of the server is finished (with any result) for all architectures. This is not very complicated and looks like something that I can implement on my own at holidays. However, there is a design issue I would like to discuss before. Is there a better way to track the build status except polling /build/<project>/_result every few seconds or so? I found rabbit.opensuse.org server, but I am not sure if it is considered as a part of API and guaranteed to be here. Also AMQP support can be easily missed for the private OBS instances (like mine one).
On Donnerstag, 4. November 2021, 16:43:54 CET Matwey Kornilov wrote:
Hi,
I would like osc to have command or plugin to behave similar to Fedora's koji build command. It is waiting until the running build of the server is finished (with any result) for all architectures. This is not very complicated and looks like something that I can implement on my own at holidays.
However, there is a design issue I would like to discuss before. Is there a better way to track the build status except polling /build/<project>/_result every few seconds or so?
the most simple way is to use osc
osc r --watch ....
it will hang until the builds reach a final state.
You can also check which ajax api it is using as always by using
osc -d r ....
--
Adrian Schroeter
чт, 4 нояб. 2021 г. в 18:46, Adrian Schröter
On Donnerstag, 4. November 2021, 16:43:54 CET Matwey Kornilov wrote:
Hi,
I would like osc to have command or plugin to behave similar to Fedora's koji build command. It is waiting until the running build of the server is finished (with any result) for all architectures. This is not very complicated and looks like something that I can implement on my own at holidays.
However, there is a design issue I would like to discuss before. Is there a better way to track the build status except polling /build/<project>/_result every few seconds or so?
the most simple way is to use osc
osc r --watch ....
it will hang until the builds reach a final state.
Thanks, Adrian! You made my day :-)
You can also check which ajax api it is using as always by using
osc -d r ....
--
Adrian Schroeter
Build Infrastructure Project Manager SUSE Software Solutions Germany GmbH, Maxfeldstr. 5, 90409 Nürnberg, Germany (HRB 36809, AG Nürnberg) Geschäftsführer: Ivo Totev
-- With best regards, Matwey V. Kornilov
participants (3)
-
Adrian Schröter
-
Matwey Kornilov
-
Matwey V. Kornilov