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

Create a standalone script for performing pulp repo syncs #770

Merged
merged 3 commits into from
Mar 19, 2020
Merged

Create a standalone script for performing pulp repo syncs #770

merged 3 commits into from
Mar 19, 2020

Conversation

cottsay
Copy link
Member

@cottsay cottsay commented Mar 19, 2020

Also add a DRY_RUN option to import jobs and fix a small typo in the console output.

The new import script will be called for the new sync_to_main job (future review). The one difference is that the sync_to_main will match any arch instead of the single arch like this one does.

Also add a DRY_RUN option to import jobs and fix a small typo in the
console output.
Comment on lines +103 to +105
' --distribution-source-expression "^ros-building-%s-%s-(SRPMS|%s(-debug)?)$"' % (os_name, os_code_name, arch) +
' --distribution-dest-expression "ros-testing-%s-%s-\\1"' % (os_name, os_code_name) +
' --package-name-expression "^ros-%s-.*"' % rosdistro_name,
Copy link
Member Author

@cottsay cottsay Mar 19, 2020

Choose a reason for hiding this comment

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

The arguments to sync_repo.py might make more sense after looking at this invocation.

I'm using a regular expression replacement to transform matching source distributions to a destination distribution, then matching packages within the destination are removed and matching packages in the source are added to the destination.

@cottsay
Copy link
Member Author

cottsay commented Mar 19, 2020

Example of what the console output looks like: http://35.174.155.1/job/Erel_sync-packages-to-testing_rhel_7_x86_64/46/console#console-section-6

That particular sync didn't result in any changes.

@cottsay
Copy link
Member Author

cottsay commented Mar 19, 2020

@cottsay cottsay merged commit 4ff7b50 into ros-infrastructure:master Mar 19, 2020
@cottsay cottsay deleted the pulp_sync branch March 19, 2020 21:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants