Bug: Update atn_langpack.py to continue executing if language pack upload results in error "Version already exists"
Status: RESOLVED
Priority: --
Resolution: FIXED
Created: 2024-08-21 17:57:10+00:00
Resolved: 2024-08-26 14:58:36+00:00

Push of 128.1.1esr had a task failure for push-langpacks-shippable-l10n-linux64-shippable-11/opt due to:

[task 2024-08-21T16:36:50.418Z] executing ['/builds/worker/venv/bin/python', '/builds/worker/bin/atn_langpack.py']
[task 2024-08-21T16:36:50.745Z] /builds/worker/venv/lib/python3.11/site-packages/urllib3/connectionpool.py:1095: InsecureRequestWarning: Unverified HTTPS request is being made to host 'addons.thunderbird.net'. Adding certificate verification is strongly advised. See: https://urllib3.readthedocs.io/en/latest/advanced-usage.html#tls-warnings
[task 2024-08-21T16:36:50.745Z]   warnings.warn(
[task 2024-08-21T16:36:51.394Z] Failed rm/builds/worker/venv/lib/python3.11/site-packages/urllib3/connectionpool.py:1095: InsecureRequestWarning: Unverified HTTPS request is being made to host 'addons.thunderbird.net'. Adding certificate verification is strongly advised. See: https://urllib3.readthedocs.io/en/latest/advanced-usage.html#tls-warnings
[task 2024-08-21T16:36:51.394Z]   warnings.warn(
[task 2024-08-21T16:36:52.027Z] Failed ro/builds/worker/venv/lib/python3.11/site-packages/urllib3/connectionpool.py:1095: InsecureRequestWarning: Unverified HTTPS request is being made to host 'addons.thunderbird.net'. Adding certificate verification is strongly advised. See: https://urllib3.readthedocs.io/en/latest/advanced-usage.html#tls-warnings
[task 2024-08-21T16:36:52.027Z]   warnings.warn(
[task 2024-08-21T16:36:52.781Z] Failed ru/builds/worker/venv/lib/python3.11/site-packages/urllib3/connectionpool.py:1095: InsecureRequestWarning: Unverified HTTPS request is being made to host 'addons.thunderbird.net'. Adding certificate verification is strongly advised. See: https://urllib3.readthedocs.io/en/latest/advanced-usage.html#tls-warnings
[task 2024-08-21T16:36:52.781Z]   warnings.warn(
[task 2024-08-21T16:36:53.442Z] Failed sk/builds/worker/venv/lib/python3.11/site-packages/urllib3/connectionpool.py:1095: InsecureRequestWarning: Unverified HTTPS request is being made to host 'addons.thunderbird.net'. Adding certificate verification is strongly advised. See: https://urllib3.readthedocs.io/en/latest/advanced-usage.html#tls-warnings
[task 2024-08-21T16:36:53.442Z]   warnings.warn(
[task 2024-08-21T16:36:54.022Z] Failed sl[]
[task 2024-08-21T16:36:54.022Z] [('rm',
[task 2024-08-21T16:36:54.022Z]   {'error': 'Version already exists. Latest version is: '
[task 2024-08-21T16:36:54.022Z]             '128.1.20240820.161839.'}),
[task 2024-08-21T16:36:54.022Z]  ('ro',
[task 2024-08-21T16:36:54.022Z]   {'error': 'Version already exists. Latest version is: '
[task 2024-08-21T16:36:54.022Z]             '128.1.20240820.161839.'}),
[task 2024-08-21T16:36:54.022Z]  ('ru',
[task 2024-08-21T16:36:54.022Z]   {'error': 'Version already exists. Latest version is: '
[task 2024-08-21T16:36:54.022Z]             '128.1.20240820.161839.'}),
[task 2024-08-21T16:36:54.022Z]  ('sk',
[task 2024-08-21T16:36:54.022Z]   {'error': 'Version already exists. Latest version is: '
[task 2024-08-21T16:36:54.022Z]             '128.1.20240820.161839.'}),
[task 2024-08-21T16:36:54.022Z]  ('sl',
[task 2024-08-21T16:36:54.022Z]   {'error': 'Version already exists. Latest version is: '
[task 2024-08-21T16:36:54.022Z]             '128.1.20240820.161839.'})]

Chatting with Rob, he mentioned the first time the job ran it must have uploaded everything but then something happened to the worker so it ran again. Since the errors all say that the version exists, the script should have logged the error and continued executing, allowing a successful exit value.