Skip to content
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

[core] Add CI check that the PR has label #32886

Merged
merged 1 commit into from May 25, 2022

Conversation

mnajdova
Copy link
Member

@mnajdova mnajdova commented May 24, 2022

Tested in dimovi91#10, but apparently can also be tested on the PR itself :))

For the check, I've forked https://github.com/mheap/github-action-required-labels and added option for checking just minimum num of labels without needing to specify list of labels that should be applied.

@mui-bot
Copy link

mui-bot commented May 24, 2022

No bundle size changes

Generated by 🚫 dangerJS against 12c46db

@mnajdova mnajdova marked this pull request as ready for review May 24, 2022 08:50
@mnajdova mnajdova requested a review from a team May 24, 2022 10:07
Copy link
Member

@michaldudak michaldudak left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍 Seems to be working fine :)

@mnajdova mnajdova added the core Infrastructure work going on behind the scenes label May 25, 2022
@mnajdova mnajdova merged commit 5661253 into mui:master May 25, 2022
@mnajdova
Copy link
Member Author

@DanailH is this something you want in the X too? It is blocking the PR from being merged if no label is added.

@DanailH
Copy link
Member

DanailH commented May 25, 2022

@DanailH is this something you want in the X too? It is blocking the PR from being merged if no label is added.

Yes, it looks like a useful limitation. I will duplicate the logic, open a PR and add you as a reviewer ;)

@oliviertassinari
Copy link
Member

oliviertassinari commented Aug 7, 2022

@mnajdova Regarding the build duration. In https://github.com/mui/material-ui/runs/7714987097?check_suite_focus=true, it has spent 41s to build the action. By that time, I have moved to a different tab. I didn't notice in #33843 that I forgot the label.

It would be better if it was running faster. I have found mheap/github-action-required-labels#2 (comment) and in practice, it's x10 faster for him: https://github.com/Kong/docs.konghq.com/runs/7701337497?check_suite_focus=true, 4s.

As far as I have looked at it, the problem is with the release. Compare the content of https://github.com/mnajdova/github-action-required-labels/releases/tag/v2.0 with the content of https://github.com/mheap/github-action-required-labels/releases/tag/v2.1.0. In our case, we rebuild the action for each run. In his case, he has the output of the action build 😁

@mnajdova
Copy link
Member Author

mnajdova commented Aug 10, 2022

Nice catch Olivier, it was exactly as you said. I've published v2.1.0 for the action (I thought I would need to also update our yml but it seems to have picked up the updated version). I've tried in #33795, it finished in 2s :)

image

@oliviertassinari
Copy link
Member

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
core Infrastructure work going on behind the scenes
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants