[core] Add CI check that the PR has label#849
Conversation
|
Are there any downsides if we try to enforce at least one label? Worse case scenario we can add just any label to make PR pass and document why we could use other meaningful labels, or if we need to create new ones 🤔 |
It's a bit more friction, the GitHub Action takes ~20s to run, a time you have to wait before you can merge your PR if a label is missing. As a general rule, I would personally be in favor of us feeling pain around the lack of labels before merging this. |
Don't we need to wait for like 10-20 minutes before circle CI jobs complete? 🤔 I was also thinking if we could run GH action but make it optional in order to merge PR? That way it would introduce little bit of noise to nudge us to start using labels, but would not block merging of PRs? |
e0d46df to
b1108c2
Compare
I'm fine with merging, but this resonates with me. Without a clear purpose, I'm not sure we would be investing much time in the quality of our labeling. |
|
Maybe something like a very short reminder in the PR template would work for now? |
5be3853 to
fc4b946
Compare
|
I came back today to this PR after seeing some of the regressions, which made me think that having some metrics could help us identify if we write enough tests or not, identify if we focus enough/too much on bugs. Forcing at least one label could cover: |
eaac02c to
573b3c9
Compare
573b3c9 to
c65141c
Compare
Signed-off-by: Olivier Tassinari <olivier.tassinari@gmail.com>
|
I think we should label in function of what we want to measure. We're currently labelling bugs and regressions.
If we want to effectively measure these two things, which extra labelling would be required? |
@Janpot At our scale, a few ideas of concrete problems that it could solve:
|
Yes, those labels I agree with.
I'm not sure I currently see clear lines where we can determine ownership. I was hoping for the future to do that more along the lines of CE, EE, cloud, docs. The current labels like "feature: queries" don't feel very useful to me. e.g. I change something that affects all queries, does it go in "core" or in "feature: queries"? |
We can remove these, until we see a clear pain point it solves. At this point, my main assumption is that the feature labels can help to find patterns of bugs, find duplicates, but if the volume is low enough to be able to see all the new issues, then yeah, agree, it's overkill at our size. |
|
Ok, sounds good. So in terms of which labels have to be applied, how about
to define area of ownership (We can add more labels when necessary), optionally accompanied by
to define the nature of the PR? Question: With this github action, can we define which labels to pick from? e.g. PR must have one blue label (core/docs) and one yellow label (bug/regression/..) |
This GitHub Action doesn't support it. @mnajdova wrote it to help us find cases where we forget about applying any labels. The problem we had was sometimes we forget about adding the labels altogether. It assumes that once we remember the labels, we then do it "correctly". It's not perfect, but honestly, I don't see the need to be more granular. |
Signed-off-by: Olivier Tassinari <olivier.tassinari@gmail.com>
Signed-off-by: Olivier Tassinari <olivier.tassinari@gmail.com>
Janpot
left a comment
There was a problem hiding this comment.
Ok to merge for me. Ideally it's documented somewhere which labels are expected to keep it from becoming ambiguous.
Does the labels option allow for specifying which labels are expected?
Based on https://github.com/mheap/github-action-required-labels#examples, yes, I think that it could be possible. |
c65141c to
0daeafd
Compare
This is probably too early to enforce at least one GitHub label on PRs but part of https://www.notion.so/mui-org/Retrospective-W32-33-cfd4332ad6a54f4593b453a8ec0bf91f#edf81bb00b504c8abd5b970aff98a77a. I believe that we eventually want to get there. Enforcing labels could solve:
I have copied mui/material-ui#32886