homu icon indicating copy to clipboard operation
homu copied to clipboard

Consider showing the Travis status in the homu queue

Open Ms2ger opened this issue 9 years ago • 10 comments
trafficstars

Ms2ger avatar Feb 05 '16 09:02 Ms2ger

As someone who hasn't worked on homu before, (and I may be asking for a general code overview that exists elsewhere, if so please point me to it) what's involved in fixing this? That is,

  • Where should this be shown? A new column on pages like https://buildbot2.rust-lang.org/homu/queue/rust ? Where is the code for that page?
  • Where should the request to the github status API happen?
  • Do the results get stored in a database somewhere or are they requested on demand?

Basically, could someone (@frewsxcv perhaps?) write up what the requirements of this are, exactly, and what the high-level steps of working on this are?

carols10cents avatar Apr 06 '17 20:04 carols10cents

The queue template is in https://github.com/servo/homu/blob/master/homu/html/queue.html and is served from https://github.com/servo/homu/blob/master/homu/server.py#L808

Don't know the answers to the rest of your questions. For one thing I'm not sure which status we want to report. The Travis status of the original pr?

Eh2406 avatar Apr 06 '17 21:04 Eh2406

Storing the results in a db is a bunch of work. Doable, but work.

Having them get fetched via JS should not be hard. May hit rate limits.

Manishearth avatar Apr 07 '17 01:04 Manishearth

Yeah, I think the easiest route here is doing clientside requests to the GitHub status API, or maybe even the Travis API. I'm not really familiar with either of their APIs, so not sure how feasible it really is.

frewsxcv avatar Apr 07 '17 01:04 frewsxcv

@frewsxcv what exactly would you like shown where?

carols10cents avatar Apr 07 '17 13:04 carols10cents

I'm envisioning another column added to the table that indicates if CI is passing or not. Ideally the colors would be start so one could easily see at a glance which PRs are problematic.

frewsxcv avatar Apr 07 '17 14:04 frewsxcv

the colors would be start

?

carols10cents avatar Apr 07 '17 14:04 carols10cents

s/start/stark/

I NEED MORE ☕️☕️☕️☕️☕️☕️☕️

frewsxcv avatar Apr 07 '17 14:04 frewsxcv

I personally was envisioning a small colored dot that you can hover over to get individual sub-CI statuses. Same thing you see on github, basically.

Manishearth avatar Apr 07 '17 16:04 Manishearth

@kennytm made this very cool alternative homu dashboard which shows travis status, among other things ✨

https://github.com/kennytm/borsholder

frewsxcv avatar Apr 09 '18 22:04 frewsxcv