ci/piglit: Use wget instead of ci-fairy to check a file exists
ci-fairy minio ls will try to list files in the path given, which for trace buckets is generally forbidden. We don't really need to do any listing in this case, so use wget instead to check that the reference image doesn't exist yet. Previous to this patch, trace jobs would re-upload all reference images to minio every time because they wouldn't be able to verify that the reference image was already there. Jobs would often take up to 4 minutes needlessly re-uploading these files. Signed-off-by: Tomeu Vizoso <tomeu.vizoso@collabora.com> Reviewed-by: Emma Anholt <emma@anholt.net> Reviewed-by: Alyssa Rosenzweig <alyssa.rosenzweig@collabora.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/10953>
This commit is contained in:
parent
c8e90a022e
commit
507e8907af
|
@ -149,7 +149,7 @@ replay_minio_upload_images() {
|
|||
fi
|
||||
__MINIO_PATH="$PIGLIT_REPLAY_REFERENCE_IMAGES_BASE_URL"
|
||||
__DESTINATION_FILE_PATH="${line##*-}"
|
||||
if ci-fairy minio ls "minio://${MINIO_HOST}${__MINIO_PATH}/${__DESTINATION_FILE_PATH}" 2>/dev/null; then
|
||||
if wget -q --method=HEAD "${MINIO_HOST}${__MINIO_PATH}/${__DESTINATION_FILE_PATH}" 2>/dev/null; then
|
||||
continue
|
||||
fi
|
||||
else
|
||||
|
|
Loading…
Reference in New Issue