-
-
Notifications
You must be signed in to change notification settings - Fork 32.3k
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
[docs-infra] Fail CI on Vale error #40944
Conversation
Netlify deploy previewhttps://deploy-preview-40944--material-ui.netlify.app/ Bundle size report |
This conflicts with #40403 The issue is that the action that display comment in the PR fails if it has more than 50 comments to do. Usually it's not an issue, but as soon as you move files, you can easily reach it |
dd46cff
to
509d09e
Compare
12e02d6
to
c35328b
Compare
@alexfauquette Arf you are right, in that PR the problem is: I added a comment in the GitHub Action to link the related GitHub issue errata-ai/vale-action#89. We effectively can't use the GitHub Action to report the status of the CI, only to leave annotations. I have tried to use the other reporter https://github.com/reviewdog/reviewdog?tab=readme-ov-file#reporter-github-pullrequest-review-comment--reportergithub-pr-review but the UX of this is a huge mess (why @mui-bot is involved here). The solution is to use CircleCI to lint the files. I did this. I also went through the codebase (meaning MUI X, Base UI, Toolpad, Material UI) to fix all the errors. We should be good now 😌. Benchmark: Extra notes:
|
07d18ea
to
f292213
Compare
6baabfa
to
59bcc03
Compare
Now that we start to report errors, I think that we can fail the CI with https://github.com/errata-ai/vale-action?tab=readme-ov-file#fail_on_error-default-false. I have seen enough regressions:
I think GitLab is a good example to follow https://docs.gitlab.com/ee/development/documentation/testing/vale.html#result-types