debian-forge-composer/internal/upload
Ondřej Budai bd7f0741b2 upload/koji: always upload in the overwriting mode
We sometimes see the following error in the logs:
Fault(1000): upload path exists: /mnt/koji/work/osbuild-cg/osbuild-composer-koji-082e1c88/Fedora-IoT-38.raw.xz.

I think this happens when we retry the upload call of the first chunk due to
random network issues. The solution is to always upload in the overwriting
mode, which ignores the already existing file.
See https://pagure.io/koji/blob/175ecb5e8f3d45a1d244b227eb889321e5dd0a29/f/kojihub/kojihub.py#_15522

This is safe because:
1) We use UUIDs in the filename, which means that there should never be a real
   conflict.
2) The overwriting mode is actually the default mode in koji, see
   https://pagure.io/koji/blob/175ecb5e8f3d45a1d244b227eb889321e5dd0a29/f/koji/__init__.py#_3342

Signed-off-by: Ondřej Budai <ondrej@budai.cz>
2023-05-18 09:25:22 +02:00
..
azure upload/azure: skip uploading empty pages 2023-04-04 09:09:43 +02:00
koji upload/koji: always upload in the overwriting mode 2023-05-18 09:25:22 +02:00
oci Add support for OCI upload provider 2022-01-28 15:16:47 +01:00
vmware worker/osbuild: stop handling VMDK stream-optimized conversion 2022-07-01 18:55:01 +01:00