Short pipelines failures if GitLab artifacts expire
- bot invocation for
[rhel/rhel7.7]
: redhat/centos-stream/tests/kernel/kernel-tests!2054 (comment 1333668916) - original pipeline: https://gitlab.com/redhat/red-hat-ci-tools/kernel/cki-internal-pipelines/cki-internal-contributors/-/pipelines/770958702
- retriggered short pipeline: https://gitlab.com/redhat/red-hat-ci-tools/kernel/cki-internal-pipelines/cki-internal-contributors/-/pipelines/822049661
- the retriggered pipeline uses artifact urls from GitLab, which expired one week ago:
ARTIFACT_PIPELINE_ID = 770958702 ARTIFACT_URL_ppc64 = https://gitlab.com/api/v4/projects/20615920/jobs/3734165312/artifacts ARTIFACT_URL_ppc64le = https://gitlab.com/api/v4/projects/20615920/jobs/3734165307/artifacts ARTIFACT_URL_s390x = https://gitlab.com/api/v4/projects/20615920/jobs/3734165316/artifacts ARTIFACT_URL_x86_64 = https://gitlab.com/api/v4/projects/20615920/jobs/3734165297/artifacts ARTIFACT_URL_x86_64_debug = https://gitlab.com/api/v4/projects/20615920/jobs/3734165303/artifacts
- the curl fails 404, and the nice error message is never hit: https://gitlab.com/redhat/red-hat-ci-tools/kernel/cki-internal-pipelines/cki-internal-contributors/-/jobs/4026298355#L67
- relevant bot code: https://gitlab.com/cki-project/cki-lib/-/blob/main/cki_lib/cki_pipeline.py#L121
- relevant pipeline code: https://gitlab.com/cki-project/pipeline-definition/-/blob/main/pipeline/stages/setup.yml#L23
There seem to be various things broken here.
AC:
- don't try to download artifacts from GitLab if artifacts_mode is S3, as everything should be on S3 anyway
- the curl failing should be in the same if condition as the unzip