forked from release-engineering/pubtools-pulp
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add --all-repos argument to deletion task [RHELDST-13644]
There are ocassions where we would like to remove a package from all repos its associated with. This can be tedious as every repo has to be listed out. This change adds a convenient --all-repos argument to address this issue.
- Loading branch information
1 parent
ef4cbcf
commit b4d39d7
Showing
4 changed files
with
259 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
22 changes: 22 additions & 0 deletions
22
tests/logs/delete/test_delete_packages/test_delete_rpms_with_all_repos.jsonl
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
{"event": {"type": "delete-files-start"}} | ||
{"event": {"type": "get-files-start"}} | ||
{"event": {"type": "get-files-end"}} | ||
{"event": {"type": "unassociate-files-start"}} | ||
{"event": {"type": "unassociate-files-end"}} | ||
{"event": {"type": "record-push-items-start"}} | ||
{"event": {"type": "record-push-items-end"}} | ||
{"event": {"type": "delete-files-end"}} | ||
{"event": {"type": "delete-rpms-start"}} | ||
{"event": {"type": "get-rpms-start"}} | ||
{"event": {"type": "get-rpms-end"}} | ||
{"event": {"type": "unassociate-rpms-start"}} | ||
{"event": {"type": "unassociate-rpms-end"}} | ||
{"event": {"type": "record-push-items-start"}} | ||
{"event": {"type": "record-push-items-end"}} | ||
{"event": {"type": "delete-rpms-end"}} | ||
{"event": {"type": "publish-start"}} | ||
{"event": {"type": "publish-end"}} | ||
{"event": {"type": "set-cdn_published-start"}} | ||
{"event": {"type": "set-cdn_published-end"}} | ||
{"event": {"type": "flush-ud-cache-start"}} | ||
{"event": {"type": "flush-ud-cache-end"}} |
38 changes: 38 additions & 0 deletions
38
tests/logs/delete/test_delete_packages/test_delete_rpms_with_all_repos.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
[ INFO] Delete files: started | ||
[ INFO] Get files: started | ||
[ WARNING] Requested unit(s) don't exist as file: bash-1.23-1.test8_x86_64.rpm, dash-2.25-1.test8_x86_64.rpm | ||
[ INFO] 0 unit(s) found for deletion | ||
[ INFO] Get files: finished | ||
[ WARNING] No units to remove from all-rpm-content-xp | ||
[ INFO] Unassociate files: started | ||
[ WARNING] Nothing mapped for removal | ||
[ INFO] Unassociate files: finished | ||
[ INFO] Record push items: started | ||
[ INFO] Record push items: finished | ||
[ INFO] Delete files: finished | ||
[ INFO] Delete RPMs: started | ||
[ INFO] Get RPMs: started | ||
[ INFO] 2 unit(s) found for deletion | ||
[ INFO] Get RPMs: finished | ||
[ WARNING] dash-2.25-1.test8_x86_64.rpm is not present in all-rpm-content-xp | ||
[ WARNING] dash-2.25-1.test8_x86_64.rpm is not present in other-yumrepo | ||
[ INFO] Deleting bash-1.23-1.test8_x86_64.rpm from all-rpm-content-xp, other-yumrepo, some-yumrepo | ||
[ INFO] Deleting dash-2.25-1.test8_x86_64.rpm from some-yumrepo | ||
[ INFO] Unassociate RPMs: started | ||
[ INFO] all-rpm-content-xp: removed 1 rpm(s), tasks: e3e70682-c209-4cac-629f-6fbed82c07cd | ||
[ INFO] other-yumrepo: removed 1 rpm(s), tasks: 82e2e662-f728-b4fa-4248-5e3a0a5d2f34 | ||
[ INFO] some-yumrepo: removed 2 rpm(s), tasks: d4713d60-c8a7-0639-eb11-67b367a9c378 | ||
[ INFO] Unassociate RPMs: finished | ||
[ INFO] Record push items: started | ||
[ INFO] Record push items: finished | ||
[ INFO] Delete RPMs: finished | ||
[ INFO] Publish: started | ||
[ INFO] Publishing all-rpm-content-xp | ||
[ INFO] Publishing other-yumrepo | ||
[ INFO] Publishing some-yumrepo | ||
[ INFO] Publish: finished | ||
[ INFO] Set cdn_published: started | ||
[ INFO] Set cdn_published: finished | ||
[ INFO] Flush UD cache: started | ||
[ INFO] UD cache flush is not enabled. | ||
[ INFO] Flush UD cache: finished |