-
Notifications
You must be signed in to change notification settings - Fork 284
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鈥檒l occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fixes #37383 - Add OSTree Include/Exclude Refs options #10980
Fixes #37383 - Add OSTree Include/Exclude Refs options #10980
Conversation
06c7369
to
091a824
Compare
The VCR failures are related. We will need to re-record those. I can check if a re-record makes the tests green and if any updates are needed there. One question: Can we default the new remote options to null instead of [] and avoid the data migration on older remotes? |
Thanks for your review @sjha4 ! Hmm I tried switching the default to
I'm also very happy for your help with the VCR failures, I think I once did such one for the Ansible modules, but has been a while 馃檪 |
Btw! Also found out that the changing the properties in the UI and them not getting promoted to pulp thing is a non-issue, the next time a sync gets triggered, it's definitely in the pulp remote config 馃憤馃徎 |
In my testing, I removed the migration and am able to sync older ostree repos as well as update the repo on the UI and sync it with refs etc. Only one VCR failure: katello/test/services/katello/pulp3/repository_integration_test.rb |
091a824
to
6caa241
Compare
@sjha4 Okay if you say it should work without the migration then I will of course remove it 馃檪 (removed the migration) |
55dd5e7
to
fbefa46
Compare
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.
APJ 馃憤馃徏
What are the changes introduced in this pull request?
Since Pulp OSTree plugin version 2.0.0 it's possible to use
include_refs
andexclude_refs
parameters,these are especially handy when you want to clone Fedora OSTree (Atomic Desktop) variants.
This PR adds theses 2
generic_remote_option
parameters.Considerations taken when implementing this change?
It was also necessary to do a db migration for already existing repos,
due to my very limited knowledge how to do that, my migration might look a bit bare minimum,
I would be very happy about a suggestion how to do that in a better way if there is one 馃檪
I also noticed that pulp takes the values on creation, but somehow in my test environment it only updated in the Katello db but not in pulp, couldn't find any errors or other code parts which would indicate that to happen. (will put in more time to find what's going on, but maybe it's already apparent to you what it is)I saw that there is the possibility that OSTree repos get added by a subscription, these shouldn't have anything in the
generic_remote_options
column so the migration should also be fine there.What are the testing steps for this pull request?
Looks like this when set up: