The Config.load_authentication() method in packit relies on ogr's get_service_class_or_none method, which is expected to return the appropriate Service class instance based on a given hostname. Right now, src.fedoraproject.org is mapped to PagureService. However, once the migration of dist-git takes place, this hostname should instead correspond to ForgejoService.
I asked the team working on the migration and they said they plan to migrate all repos at once, so the migration shouldn't be gradual per-repo (as is the case with Fedora Forge). This is still worth verifying before the migration takes place in case there is a change of plans so that we can coordintate with their team to make sure Packit's transition to Forgejo dist-git support is smooth.
Whether Packit supports Pagure or Forgejo as dist-git relies on SERVICE_MAPPING, which is hardcoded, meaning we would need to release ogr with these changes at the same time that the switch of dist-git takes place, which would be difficult to coordinate and there would be a delay. It would be ideal to figure out a way we can make this transition smooth on Packit's side.
TODO:
The
Config.load_authentication()method inpackitrelies onogr'sget_service_class_or_nonemethod, which is expected to return the appropriate Service class instance based on a given hostname. Right now,src.fedoraproject.orgis mapped toPagureService. However, once the migration of dist-git takes place, this hostname should instead correspond toForgejoService.I asked the team working on the migration and they said they plan to migrate all repos at once, so the migration shouldn't be gradual per-repo (as is the case with Fedora Forge). This is still worth verifying before the migration takes place in case there is a change of plans so that we can coordintate with their team to make sure Packit's transition to Forgejo dist-git support is smooth.
Whether Packit supports Pagure or Forgejo as dist-git relies on
SERVICE_MAPPING, which is hardcoded, meaning we would need to release ogr with these changes at the same time that the switch of dist-git takes place, which would be difficult to coordinate and there would be a delay. It would be ideal to figure out a way we can make this transition smooth on Packit's side.TODO:
SERVICE_MAPPINGto map the appropriate hostnames toForgejoServicePagureServicetoForgejoServicesmooth