Skip to content

Debian group repository is not updated on Debian package upload

Everyone can contribute. Help move this issue forward while earning points, leveling up and collecting rewards.

(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 when container_type == :project, or
  • from Packages::Debian::ProcessChangesService and Packages::Debian::ProcessPackageFileService

In both case, create/update/delete endpoints for project distributions should also be handled.

Edited by 🤖 GitLab Bot 🤖