Page MenuHomePhabricator

Status update in Gerrit of current queued commit/testing request
Closed, DeclinedPublic

Description

Sometimes it can take up-to 10min for a newly committed patch set to appear in the in Jenkins job queuing or even longer being executed (happens when several core jobs being executed).

Is there a way to give a more accurate update about the current commit/testing status in Gerrit (and its unit tests) instead of manually checking [1] because I have experienced that even in [1] it can take a while until tests are actually appear.

The questions is not about being able to see results but being able to see that a testing request is being queued/worked on and not lost somewhere.

[1] https://integration.wikimedia.org/zuul/


Version: wmf-deployment
Severity: enhancement

Details

Reference
bz47527

Event Timeline

bzimport raised the priority of this task from to Medium.Nov 22 2014, 1:28 AM
bzimport set Reference to bz47527.
bzimport added a subscriber: Unknown Object (MLST).

Zuul exposes its status via https://integration.wikimedia.org/zuul/status.json which can then be used by a JavaScript to add a status somewhere in Gerrit interface.

Change https://gerrit.wikimedia.org/r/#/c/60662/ made to Wikimedia Gerrit repository let us inject Javascript in Gerrit.

So we need:

  • to write some javascript
  • enhance Zuul status.json to accept queries for a given change

Needs Zuul status.json page to be updated: bug 47609

This is still a valid enhancement request, it is still blocked by bug 47609 that we can start implementing whenever Zuul is upgraded on Wikimedia installation. Once that is done, we could provide the status of change and add some Javascript magic in Gerrit interface to show the build progress.

Pending someone to implement the relevant code in Zuul status page/Gerrit customized javascript.

Created attachment 16958
json result for /status/change/170067,1

We can now fetch the status of an individual change using:

https://integration.wikimedia.org/zuul/status/change/170067,1

See attached output for an example.

That feature has been added upstream recently and deployed on production. Was Bug 47609 - [upstream] Zuul: status.json API should be able to filter by change

Attached:

Also, since the creation of this ticket, we've built the visual dashboard:

https://integration.wikimedia.org/zuul/

Which allows one to see where it is in the queue and how long it'll take.

And in general these kind of delays usually relate to downtime. When things are up, the delay isn't worth building an infrastructure for so I'm wontfixing the request for communicating the delay back to Gerrit (or Phabricator). It'll be there when it's there.