-
Notifications
You must be signed in to change notification settings - Fork 150
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Redesign status page #1718
Redesign status page #1718
Conversation
It's hard to tell based on the image - but it looks like the new page might be quite wide? Is it wider than the current page? I often check in from a phone if there's reports of slowness or similar and the current page is pretty readable without sideways scrolling for me. Not a blocker of course, scrolling isn't bad and I'm not sure optimizing for phones makes much sense anyway, but figured I'd raise it here. |
It uses a flex layout, so on mobile the timeline will be displayed below the current collection.That being said, the timeline table could be optimized for mobile more, now it requires a bit of horizontal scrolling. |
Sounds great. I think a bit of scrolling is ok but we can reassess once things merge. |
Don't think that this can close #1713, as source of difference not found, but step for simpler debugging. Maybe rolling window of bench logs/artifacts can be kept, so if anything funny happens again, we can check logs? (not related to current pr, just some thoughts) |
Good point. We have logs, but I'm not sure if the current ones are very helpful. FWIW, I think that the long duration is caused by DB, it has been behaving quite erratically recently. We could add some timings to the DB operations to check if that is indeed the issue. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The frontend triggers errors on startup for me so I can't really test, unfortunately.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I managed to look at the frontend with the patch, and we may need to iterate a bit after this lands in case the production data has surprising effects (e.g. actual lengths impacting layout and scrolling).
The PR number and sha columns should be aligned and not centered. (The date in the Run end column could also maybe be turned into a fixed width, or the alignment there will be randomly shifting as well).
I didn't look closely at the queries, or API changes. It looked fine at a quick glance. Maybe Mark or Ryan can take a look?
I didn't notice it at first but it seems the timeline reverses the queue order compared to a regular ordering by position. If that's the case, I'm not sure we gain much by mixing the future collections with the past collections in a single list, with the current collection duplicated between the two. Compared to, say, having 2 tables: the queue in ASC order, and history of recent collections in DESC order. That feels clearer to me, but I don't mind If others prefer it.
Right aligned PR and SHA (they will be almost always the same width on rust-lang/rust, but it's still better to align). The run end data was previously formatted with the local "locale", which I don't like that much, but I didn't want to change that. I'm not sure how to make it fixed width when the format is not fixed.
Yeah it's currently basically ordered by start/end time, from newest (which can be in the future) to the oldest. The interpretation is that the next PR will "fall down" into the marked row after the current collection ends. Having two tables could also be reasonable. I just wanted to avoid the previous situation where a currently running PR would basically be in a sort of a random position within the list/table. |
d2e0a43
to
57248c8
Compare
57248c8
to
35bab14
Compare
CC @Mark-Simulacrum if you could please take a look at the DB changes (and possibly comment on the new design - is a unified table with future runs and history OK, or would you prefer two separate tables?). |
Broadly happy for it to be a unified table. I think we can always edit if we don't like it, so I'm inclined to move ahead when ready. |
This PR redesigns the status page so that we can see the history of runs, to have better visibility of historical benchmark errors, and also to have a more obvious estimation of when will a given PR finish.
This patch can be used to hardcode data for testing locally:
Patch