-
-
Notifications
You must be signed in to change notification settings - Fork 189
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
If conda-forge-pinning package has migrations installed, use those #1244
Conversation
instead of the ones from the feedstock if the timestamp field match and remove if the migration yaml has a timestamp and there's no corresponding one in conda-forge-pinning which indicates that the migration is over.
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.
Do we need to consider the migration number too? If that gets changed it is a new migration IIUIC.
Thanks for putting this in @isuruf. It isn't clear to me what would happen if not all of the dependencies have been rebuilt with the pin the migration. Would it fall back to using the original pin in the pinning file? |
I don't understand what you are asking here. Can you explain more? In this PR what we are doing is using the migration file in the cfp package if there's a corresponding file in the feedstocks. For example if there's 2 migrations in the cfp package, |
@isuruf given that none of the files are yet in the pinnings package, this pr will remove current migrations as of now. I guess we need to merge the change to the pinnings package first? |
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.
Alright. This all seems fine to me. I’d personally like to see some tests of the various cases we have discussed to ensure that they all work and we don’t accidentally wreak havoc.
The only case we are missing is an empty PREFIX migrations and old ones in the feedstock. Everything else is covered. |
Falling back to old behaviour where there's no |
We probably also want a test where we keep one and delete one. |
Yep the old tests cover fall back. We don’t have tests of the deletion parts. |
Added one for deletion. |
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.
LGTM!
@conda-forge/bot, can one of you also have a look? This is the last piece missing in getting a PyPy migrator. |
It would be great if some of the new functions could get some doc strings. |
@CJ-Wright, done. |
It would be great if some of the new functions could get some doc strings. |
They seem too (with the exception of tests). Were there some in particular you were looking at? |
instead of the ones from the feedstock if the
timestamp field match and remove if the migration yaml has a
timestamp and there's no corresponding one in conda-forge-pinning
which indicates that the migration is over.
Checklist
news
entry