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

feat(core/config): allow close to ignore for migration PRs #16773

Conversation

Gabriel-Ladzaretti
Copy link
Collaborator

@Gabriel-Ladzaretti Gabriel-Ladzaretti commented Jul 25, 2022

Changes

Currently a new migration PR would be created regardless of a closed one.

Now if we detect a closed migration pr, an Ignore Comment is added to the PR and we won't creating a new one.

Context

closes #16774

Documentation (please check one with an [x])

  • I have updated the documentation, or
  • No documentation update is required

How I've tested my work (please tick one)

I have verified these changes via:

  • Code inspection only, or
  • Newly added/modified unit tests, or
  • No unit tests but ran on a real repository, or
  • Both unit tests + ran on a real repository

@Gabriel-Ladzaretti
Copy link
Collaborator Author

@viceice
Copy link
Member

viceice commented Jul 26, 2022

i think a config migration PR should be immortal.

@rarkins WDYT?

@rarkins
Copy link
Collaborator

rarkins commented Jul 26, 2022

i think a config migration PR should be immortal.

@rarkins WDYT?

I think it's ok for us to have "close to ignore". Presumably that's what any user would intend if they close it.

Important though that a merged migration PR does not block a new one

@viceice
Copy link
Member

viceice commented Jul 26, 2022

but wasn't the plan to remove old migration code from renovate when all repos are migrated some time in future?

if we allow to ignore those migrations, we will break them when removing the migration code.

that's why I think the migration PR should be immortal.

@rarkins
Copy link
Collaborator

rarkins commented Jul 26, 2022

but wasn't the plan to remove old migration code from renovate when all repos are migrated some time in future?

Yes, although who knows how achievable that will be. We might just end up removing selective migrations if for example we want to reuse an old config option name, while leaving the rest.

if we allow to ignore those migrations, we will break them when removing the migration code.

that's why I think the migration PR should be immortal.

Yes, but that's their choice. It reminds me a little about people who insist on ignoring Windows updates requests forever. Windows keeps popping up requests and those people get angrier.

Maybe we just let them close it but add a comment which makes it clear that their config may break in future, in which case they'll get a config validation issue instead.

@viceice
Copy link
Member

viceice commented Jul 26, 2022

They can disable config migrations already (when it's enabled by default some time in future), that would block new PR too 🤷‍♂️

@rarkins
Copy link
Collaborator

rarkins commented Jul 26, 2022

They can disable config migrations already (when it's enabled by default some time in future), that would block new PR too 🤷‍♂️

I had thought the same, and for example same about dependency dashboard issues. But then the other day one user was practically outraged that when they closed the dashboard issue it came back again. So now I lean towards letting the user to be the boss, even if we think it's unwise or unreasonable.

One day we'll turn on migrations by default. There's definitely going to be some people who think "no thanks" and close the migration PR. The question is, do we or they gain anything by deciding to ignore that signal and reopening the PR until they either get so annoyed they uninstall, or figure out how to disable using config?

@viceice
Copy link
Member

viceice commented Jul 26, 2022

Add a description and a link to the PR body how to disable?

@Gabriel-Ladzaretti
Copy link
Collaborator Author

Add a description and a link to the PR body how to disable?

🔕 Ignore: Close this PR and you won't be reminded about this update again.

like we do for other PRs ?

@rarkins
Copy link
Collaborator

rarkins commented Jul 26, 2022

Needs to say something like "but one day your current config may no longer work"

@Gabriel-Ladzaretti
Copy link
Collaborator Author

ignore message added -

ladzaretti/feat-config-migration#5

@rarkins
Copy link
Collaborator

rarkins commented Jul 29, 2022

We have concluded that we will allow users to close to ignore

Copy link
Member

@viceice viceice left a comment

Choose a reason for hiding this comment

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

See comment

viceice
viceice previously approved these changes Aug 1, 2022
@rarkins rarkins changed the title fix(repository/config-migration): closed migration prs are being ignored fix(config-migration): closed migration prs are being ignored Aug 3, 2022
@rarkins rarkins enabled auto-merge (squash) August 3, 2022 05:07
auto-merge was automatically disabled August 3, 2022 06:56

Head branch was pushed to by a user without write access

@Gabriel-Ladzaretti
Copy link
Collaborator Author

Gabriel-Ladzaretti commented Aug 3, 2022

fixed error due to merging main.
can we try merging this again 😄?

@Gabriel-Ladzaretti
Copy link
Collaborator Author

anything else to do here 😀?

@rarkins rarkins changed the title fix(config-migration): closed migration prs are being ignored fix(config-migration): allow close to ignore for migration PRs Aug 21, 2022
@rarkins rarkins changed the title fix(config-migration): allow close to ignore for migration PRs fix(core/config): allow close to ignore for migration PRs Aug 21, 2022
@rarkins rarkins changed the title fix(core/config): allow close to ignore for migration PRs feat(core/config): allow close to ignore for migration PRs Aug 21, 2022
@rarkins rarkins merged commit 01ceaea into renovatebot:main Aug 21, 2022
@renovate-release
Copy link
Collaborator

🎉 This PR is included in version 32.169.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Sep 21, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Config migration ignores closed PR and creates a new one
4 participants