-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
[code-infra] Set renovate to automerge devDependencies #13463
[code-infra] Set renovate to automerge devDependencies #13463
Conversation
Deploy preview: https://deploy-preview-13463--material-ui-x.netlify.app/ |
Checked pending PRs.
If I understand the behavior of this change correctly, I would be wary of introducing it. 🙈 |
For the testing libs, does it even matter? We would have two different ones, we can just remove them when we want. For react, why we can't merge it if the pipelines are passing? The website also seems correctly rendered. It is also possible to ignore react changes though |
But without seeing those PRs, we might not ever even notice these discrepancies and possible improvements/simplifications that could be done. 🤔
It's WIP: #12295 (comment) |
If chai/RTL are going to be used directly I would expect them to be in the package.json. Else, we can just remove them. DevDeps do get out of sync a lot and that is normal, I would rather use a tool for that, than waiting for the upgrade tool to open a PR and rely on someone verifying that the dep is still used. I saw it was blocked by the main repo PR, but why? Would it break development? Would it break for our users? |
If the CI is green, then probably just out of optimization reasons—so as not to introduce duplicate dependency major versions if they are not necessary. I would still like to have the option for the following flow: a dependency PR is red, we start looking into it, but we want extra confirmation before allowing it to be merged even if the CI is green (the React bump PR case). I would love input from @mui/code-infra on this question. 🙈 |
I generally don't like arbitrary exceptions on CI. Green is good, red is bad. If green is bad we have to fix so it doesn't happen again. React is a peer dependency and a dev dependency. The only people affected would be us. I don't see what would be the issue in merging all those PRs you mentioned. I would expect renovate to completely hands off all PRs where someone has added a commit (though i didnt find docs on the automerge page), so if the pipeline goes red and we add a commit, it should work as you expect. |
You could add a negative review (request changes) to the PR. Renovate won't merge such PRs automatically. |
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.
Sorry, I forgot about this PR. 🙈
I think we can try experimenting with automerging dev deps excluding major bumps. 👍
I would love to have the option to automerge only when the diff has equal amounts of additions and removals. 🤔 😆
Co-authored-by: Lukas Tyla <[email protected]> Signed-off-by: Jose C Quintas Jr <[email protected]>
😆
Don't think it is currently possible. Though having different versions should mostly be ok in dev deps. |
…vate-to-automerge-devdeps
Currently only set for
devDependencies
we can increase the automerge coverage to regular deps and the package lock refresh once we are confident in it.Renovate
to bypass Protect base branches (bypass "Admin" role) only in Pull Requests