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

Added --optimize and --sync-policy options to rpm repo sync. #540

Merged
merged 1 commit into from
Aug 11, 2022

Conversation

ggainey
Copy link
Contributor

@ggainey ggainey commented Aug 3, 2022

fixes #462.

Co-authored by: Grant Gainey ggainey@redhat.com

"--mirror/--no-mirror",
default=None,
help="""
DEPRECATED: If True, sync_policy will default to 'mirror_complete' instead
Copy link
Member

Choose a reason for hiding this comment

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

I don't know. Is "deprecated" the proper term for the cli? Should we explain, that this is only for certain old versions of the plugin? How about needs_plugin with an upper bound?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

It's deprecated with the same wording in the pulp_rpm REST API : https://github.com/pulp/pulp_rpm/blob/main/pulp_rpm/app/serializers/repository.py#L298

It's been deprecated since pulp_rpm/3.16.0. I don't want to put a max=3.16 for RPM on it, because people are using it now, and would suddenly break. We could put a max=3.17 on it, which would make it stop working when pulp_rpm/3.18 is released Really Soon Now (and I don't know if pulp_rpm is going to be able to actually remove the option any time soon)

Copy link
Member

Choose a reason for hiding this comment

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

OK, as long as the option is there, we should support it. 👍

pulpcore/cli/rpm/repository.py Outdated Show resolved Hide resolved
pulpcore/cli/rpm/repository.py Outdated Show resolved Hide resolved
tests/scripts/pulp_rpm/test_rpm_sync_publish.sh Outdated Show resolved Hide resolved
@ggainey ggainey force-pushed the 462_opt_syncpolicy branch from 99ee12d to c7a58ce Compare August 10, 2022 13:32
fixes pulp#462.

Co-authored by: Grant Gainey <ggainey@redhat.com>
@ggainey ggainey force-pushed the 462_opt_syncpolicy branch from c7a58ce to f6d294b Compare August 10, 2022 14:21
@ggainey ggainey requested a review from mdellweg August 10, 2022 14:56
@ggainey ggainey merged commit 5f68d10 into pulp:main Aug 11, 2022
@mdellweg mdellweg added this to the 0.16.0 milestone Aug 17, 2022
@ggainey ggainey deleted the 462_opt_syncpolicy branch June 18, 2024 12:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

RPM sync ought to provide sync_policy option, mark mirror as deprecated
2 participants