Last modified: 2014-10-30 19:49:29 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T49609, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 47609 - [upstream] Zuul: status.json API should be able to filter by change
[upstream] Zuul: status.json API should be able to filter by change
Status: RESOLVED FIXED
Product: Wikimedia
Classification: Unclassified
Continuous integration (Other open bugs)
wmf-deployment
All All
: Normal enhancement (vote)
: ---
Assigned To: Antoine "hashar" Musso (WMF)
: upstream
Depends on:
Blocks: 47527
  Show dependency treegraph
 
Reported: 2013-04-24 14:01 UTC by Antoine "hashar" Musso (WMF)
Modified: 2014-10-30 19:49 UTC (History)
3 users (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments
json result for /stats/change/170067,1 (5.83 KB, application/json)
2014-10-30 16:28 UTC, Antoine "hashar" Musso (WMF)
Details

Description Antoine "hashar" Musso (WMF) 2013-04-24 14:01:12 UTC
Bug 47527 requests to report the build status directly in Gerrit. A javascript can be written to fetch the informations from the Zuul status page at https://integration.wikimedia.org/zuul/status.json

I am afraid this one is a bit too large though:

When there is nothing to report the request takes roughly 800ms and 18178 bytes.  By letting Zuul status.json accept a change filter, we could reduce the payload and most probably the download time.
Comment 1 Krinkle 2013-04-24 14:34:46 UTC
Isn't that API upstream? Or is that .json end point custom configuration that we copied from openstack (like the html status page)
Comment 2 Antoine "hashar" Musso (WMF) 2013-04-24 16:29:30 UTC
Yup it is upstream but it can be adapted to fit our needs.  I will work on a patch that let us query a specific change.
Comment 3 Antoine "hashar" Musso (WMF) 2013-05-02 12:54:30 UTC
Unassigning self, I got too many bugs right now. Will revisit later on.
Comment 4 Antoine "hashar" Musso (WMF) 2014-10-16 08:15:45 UTC
Upstream has landed a change that would let one query a specific change https://review.openstack.org/#/c/124390/

> The supported urls are:
> - /status: return a complex data structure that represents the entire
>   queue / pipeline structure of the system
> - /status.json (backwards compatibility): same as /status
> - /status/change/X,Y: return status just for gerrit change X,Y


Gotta upgrade our Zuul version.
Comment 5 Antoine "hashar" Musso (WMF) 2014-10-30 15:58:16 UTC
I am now upgrading Zuul which bring the upstream change. We will most probably need to adjust the zuul_proxy Apache configuration file on gallium (via puppet).
Comment 6 Gerrit Notification Bot 2014-10-30 16:21:17 UTC
Change 170070 had a related patch set uploaded by Hashar:
contint: Zuul status learned to query a single change

https://gerrit.wikimedia.org/r/170070
Comment 7 Antoine "hashar" Musso (WMF) 2014-10-30 16:28:42 UTC
Created attachment 16957 [details]
json result for /stats/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.
Comment 8 Antoine "hashar" Musso (WMF) 2014-10-30 16:29:30 UTC
This has been deployed in production.

Will let us implement: Bug 47527 - Status update in Gerrit of current queued commit/testing request
Comment 9 Gerrit Notification Bot 2014-10-30 19:49:29 UTC
Change 170070 merged by Dzahn:
contint: Zuul status learned to query a single change

https://gerrit.wikimedia.org/r/170070

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links