Module: Mesa
Branch: main
Commit: 82cfed975869a283d73fce5a771af890485486ae
URL:    
http://cgit.freedesktop.org/mesa/mesa/commit/?id=82cfed975869a283d73fce5a771af890485486ae

Author: David Heidelberg <[email protected]>
Date:   Sun Oct  8 22:01:50 2023 +0200

ci/traces: upload only missing trace images

Right now, S3 always returns something, so we need to check
the content-type .

Acked-by: Emma Anholt <[email protected]>
Signed-off-by: David Heidelberg <[email protected]>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/25606>

---

 .gitlab-ci/piglit/piglit-traces.sh | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/.gitlab-ci/piglit/piglit-traces.sh 
b/.gitlab-ci/piglit/piglit-traces.sh
index 8f4ec1a1fa7..2fac0d9cca4 100755
--- a/.gitlab-ci/piglit/piglit-traces.sh
+++ b/.gitlab-ci/piglit/piglit-traces.sh
@@ -133,7 +133,7 @@ replay_minio_upload_images() {
             fi
             __S3_PATH="$PIGLIT_REPLAY_REFERENCE_IMAGES_BASE"
             __DESTINATION_FILE_PATH="${line##*-}"
-            if curl -L -s -X HEAD 
"https://${__S3_PATH}/${__DESTINATION_FILE_PATH}"; 2>/dev/null; then
+            if curl -L -s -I "https://${__S3_PATH}/${__DESTINATION_FILE_PATH}"; 
| grep -q "content-type: application/octet-stream" 2>/dev/null; then
                 continue
             fi
         else

Reply via email to