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

Use mirror:true for repository syncs #3575

Merged
merged 1 commit into from
Apr 14, 2023
Merged

Use mirror:true for repository syncs #3575

merged 1 commit into from
Apr 14, 2023

Conversation

himdel
Copy link
Collaborator

@himdel himdel commented Apr 12, 2023

Issue: AAH-2286

Use { mirror: true } when calling the repository sync endpoint.

When enabled, all content that is not present in the remote repository will be removed from the local repository, otherwise sync will be add missing content.

@github-actions github-actions bot added backport-4.6 This PR should be backported to stable-4.6 (2.3) backport-4.7 This PR should be backported to stable-4.7 (2.4) labels Apr 12, 2023
@himdel himdel removed the backport-4.6 This PR should be backported to stable-4.6 (2.3) label Apr 12, 2023
@himdel
Copy link
Collaborator Author

himdel commented Apr 13, 2023

TODO(me): test this works with requirements.yaml

✔️ works,

collections:
  - name: ansible.network
  - name: arista.eos

syncs 1164 collection versions because it pulls all versions of all dependencies, but it does work

@himdel himdel merged commit 6d869ee into ansible:master Apr 14, 2023
@himdel himdel deleted the mirror branch April 14, 2023 00:19
@patchback
Copy link

patchback bot commented Apr 14, 2023

Backport to stable-4.7: 💚 backport PR created

✅ Backport PR branch: patchback/backports/stable-4.7/6d869eeeac3e3f1b75e9ee3b97f6509f6d5f19cc/pr-3575

Backported as #3594

🤖 @patchback
I'm built with octomachinery and
my source is open — https://github.com/sanitizers/patchback-github-app.

patchback bot pushed a commit that referenced this pull request Apr 14, 2023
himdel added a commit that referenced this pull request Apr 14, 2023
Issue: AAH-2286
(cherry picked from commit 6d869ee)

Co-authored-by: Martin Hradil <mhradil@redhat.com>
@github-actions github-actions bot added the backported-4.7 This PR has been backported to stable-4.7 (2.4) label Apr 14, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport-4.7 This PR should be backported to stable-4.7 (2.4) backported-4.7 This PR has been backported to stable-4.7 (2.4)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant