Pagure Dist Git Interactions With Toddlers
Toddlers are used to run various small tasks in Fedora Infrastructure. Keeping things synced and automating various tasks that were done manually in the past. As that it has plenty of interactions with Dist Git.
Possible Interactions
The following are a set of documented interactions possible between Pagure Dist Git and Toddlers.
Git module
Some of the toddlers are doing cloning and various interactions with git, all of those interactions are in git module
Pagure module
This module contains method interacting with pagure or dist-git
Few methods are specific only for dist-git:
set_monitoring_statusis_project_orphanedassign_maintainer_to_project
clean_retired_packages toddler
/_dg/orphanAPI endpoint called inorphan_packagemethod/_dg/bzoverridesAPI endpoint called inorphan_packagemethod/<namespace>/<name>/git/modifyaclsAPI endpoint called inremove_accessmethod/<namespace>/<name>/watchers/updateAPI endpoint called inremove_accessmethod
distgit_bugzilla_sync toddler
/extras/pagure_poc.jsoncalled in_get_pagure_projects/extras/pagure_bz.jsoncalled in_get_pagure_projects
flag_ci_pr toddler
/api/0/<namespace>/<repo>/c/<commit_hash>/flagcalled inprocessmethod
flag_commit_build toddler
/api/0/<namespace>/<repo>/c/<commit_hash>/flagcalled inprocessmethod
packagers_without_bugzilla toddler
/extras/pagure_bz.jsoncalled inget_user_and_groups_dist_gitmethod
pdc_retired_packages toddler
/<namespace>/<repo>/raw/<branch>/f/dead.packagecalled in_is_retired_in_dist_gitmethod
pdc_unretire_packages toddler
/<namespace>/<package_name>.gitcalled inprocess_ticketmethodgit clonecalled inprocess_tickettoddler
Changes proposed
In order to switch out Pagure Dist Git for an alternative that provides a relatively compatible API pattern, the following changes must be made in the places mentioned below.
Necessary
The configuration needs to be changed for dist-git to point to new URL
The new dist-git solution needs to provide the API calls needed by toddlers
Unnecessary
Split pagure module to dist-git and pagure module. This change will help us differentiate between those two in the future