-
-
Notifications
You must be signed in to change notification settings - Fork 306
Add status passing/failing/unknown/... in migration table #2668
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
base: main
Are you sure you want to change the base?
Add status passing/failing/unknown/... in migration table #2668
Conversation
✅ Deploy Preview for conda-forge-previews ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
|
Direct link to changed page in deployment: https://deploy-preview-2668--conda-forge-previews.netlify.app/status/migration/?name=python314t |
beckermr
left a comment
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 mergeable stage field in how the bot uses it basically tracks if the PR has conflicts or not. To make this work like you want, we'd need to pull the ci status of the actually pr checks.
beckermr
left a comment
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.
This is great thank you!
For the curious, see the docs here: https://docs.github.com/en/graphql/reference/enums#mergestatestatus on the mergeable state field values.
|
Ah, thanks, I might add a link in the header to this Page later, but don't let that delay mergin this. |
|
Yeah actually looking at this now we should be accounting for the other possible values for this field. Also it'd be nice to mark things in draft as draft with a gray box. Those prs are not meant to be merged even if they are green. |
|
This now handle all the cases, and has a legend at the bottom for each (mostly so we can see how it looks like), and the title= attribute on hover with the description if you don't want to scroll |
|
Hmmmm. This PR (conda-forge/lsstdesc.coord-feedstock#29) is draft but not showing up as such. Is the bot metadata behind maybe or is there a bug? |
|
Also I think we need to rename some of the states to something more intuitive. "dirty" really means "merge conflict" and "clean" really means "success". Maybe @jaimergp or others have opinions on more user-friendly names? |
if a bug, it's likely a bug in cf-script, not here; this is pure-UI. |
(I would suggest we bikeshed and the name/emoji/CSS/animation in a separate PR?) |
|
I don't consider deciding on names bikeshedding since this is a UX enhancement and understanding the names easily versus having to look at a legend is part of the user UX. With the right names, we can probably remove the legend all together. |
It looks like Draft used to be a merged state, but now the merge state is separate, it could be draft but CI failing, or draft with CI passing. It make sens to not remove an enum variant. |
|
Ok, bikeshedding is maybe too string. I have other PR to cf_script to add updated_at column, I can also send one that does: + if pr_json["PR"].get("draft", False):
+ node_metadata["pr_status"] = "draft"
+ else:
node_metadata["pr_status"] = pr_json["PR"].get("mergeable_state", "")If you wish, or add |
|
I think we can come up with names that are succinct yet clear, and the badges still show the description on hover. No need for the legend (which is all the way in the bottom, so I didn't see it).
|
|
Also, I'd split the sorting logic to a different PR, because we already have some sorting logic in other sections of the website, and maybe it can be unified. |
|
If renaming and my understanding is correct, I would suggest So |
We do not require a linear commit history on conda-forge, so it is not strictly true that this needs a rebase. This should be marked as green / passing. |
|
Updated to hide the legend when not viewing the table, and make a status -> (text, color) mapping for easy tweak. |
Add title and legend (legend mostly to see how all badges look)
f2d6762 to
b1f7075
Compare

This adds a CI status column to https://conda-forge.org/status/migration/?name=python314t, (the value is already present in the data and the graph), and I mostly care about failing ones to help fixing them.
While at it, makes the column sortable because it's nice.
