Debian group repository is not updated on Debian package upload
(This is a follow-up of #393306 (closed)).
Now that background job for Debian group repository has been fixed, there is still no repo update when a package is uploaded.
This is because both Packages::Debian::ProcessChangesService
and Packages::Debian::ProcessPackageFileService
only call ::Packages::Debian::GenerateDistributionWorker.perform_async(:project, package.debian_distribution.id)
.
As a workaround, it is possible to update all affected group distributions. For example with:
$ curl --request PUT --header "PRIVATE-TOKEN: ${PRIVATE_TOKEN}"\
-d "codename=${CODENAME}" \
"https://${SERVER}/api/v4/groups/${GROUP}/-/debian_distributions/${CODENAME}" \
One way to fix this would be to call ::Packages::Debian::GenerateDistributionWorker.perform_async(:group, group_distribution.id)
for each parent distribution, either:
- from
Packages::Debian::GenerateDistributionWorker
whencontainer_type == :project
, or - from
Packages::Debian::ProcessChangesService
andPackages::Debian::ProcessPackageFileService
In both case, create/update/delete endpoints for project distributions should also be handled.