From 1ea6374489e2cb4c7e776b8110f99f8d1d5ff766 Mon Sep 17 00:00:00 2001 From: Jeremy Stanley Date: Tue, 8 Nov 2022 15:41:47 +0000 Subject: [PATCH] Skip existing remote artifacts during PyPI upload In order to be able to safely re-enqueue tags which previously failed release jobs after successfully uploading at least some artifacts to PyPI, instruct twine to treat "file already exists" responses as benign and ignore them, proceeding to upload any others which aren't yet there. Depends-On: https://review.opendev.org/864004 Change-Id: Iab38df6386ce5219a52787fda5e64a8faab23a06 --- playbooks/publish/pypi.yaml | 1 + 1 file changed, 1 insertion(+) diff --git a/playbooks/publish/pypi.yaml b/playbooks/publish/pypi.yaml index 2632ffa923..6f60445bb6 100644 --- a/playbooks/publish/pypi.yaml +++ b/playbooks/publish/pypi.yaml @@ -4,4 +4,5 @@ when: zuul_success | bool - role: upload-pypi pypi_path: "{{ zuul.executor.work_root }}/artifacts" + pypi_twine_skip_existing: true when: zuul_success | bool