On Wed, Jul 24, 2019 at 11:30:45AM -0400, Robbie Harwood wrote:
So we don't have an easy way to do this. I have a script that monitors the
entire pipeline/workflow in production and in staging.
I have been querying datagrepper for messages about the build that I've made to
see if/when the tests are done.
You can find the code in:
https://pagure.io/fedora-ci/monitor-gating/blob/97bc5b619032cfd3218b86378...
called in:
https://pagure.io/fedora-ci/monitor-gating/blob/97bc5b619032cfd3218b86378...
This is pretty bad from a workflow perspective, especially when it's going to take 11
minutes (or 8 - I can't actually tell which from replies above) longer per-package on
top of what we have now, plus time for any tests to run.
Your scripts are helpful, but there are a number of issues: you repeatedly send requests
to datagrepper in a `while True` (is it okay with this load? What if we all start doing
it?), and you make assumptions about the number of messages that can appear in an
interval. I would want to see a proper interface for querying this (i.e., not polling
datagrepper in a loop), as well as `fedpkg` integration as you suggest.
Thanks,
--Robbie