Skip to content

OpenVINO™ is an open source toolkit for optimizing and deploying AI inference

Pin samples test data files and rerun jobs on downloading error (#33971)

Andrey Babushkin7ea100303a17
diff --git a/.github/scripts/workflow_rerun/errors_to_look_for.json b/.github/scripts/workflow_rerun/errors_to_look_for.json
index 1166906b9ad..efca5af8e95 100644
--- a/.github/scripts/workflow_rerun/errors_to_look_for.json
+++ b/.github/scripts/workflow_rerun/errors_to_look_for.json
@@ -158,5 +158,9 @@
{
"error_text": "CERT_TRUST_REVOCATION_STATUS_UNKNOWN",
"ticket": 177273
+ },
+ {
+ "error_text": "urllib3.exceptions.IncompleteRead",
+ "ticket": 173184
}
]
\ No newline at end of file
diff --git a/tests/samples_tests/smoke_tests/common/samples_common_test_class.py b/tests/samples_tests/smoke_tests/common/samples_common_test_class.py
index c250b2d4f3b..744c26e664c 100644
--- a/tests/samples_tests/smoke_tests/common/samples_common_test_class.py
+++ b/tests/samples_tests/smoke_tests/common/samples_common_test_class.py
@@ -58,11 +58,11 @@ def download(test_data_dir, file_path):
with lock_path.open('bx'):
if not file_path.exists():
if test_data_dir / 'bvlcalexnet-12.onnx' == file_path:
- response = requests.get("https://github.com/onnx/models/raw/main/validated/vision/classification/alexnet/model/bvlcalexnet-12.onnx?download=")
+ response = requests.get("https://media.githubusercontent.com/media/onnx/models/4c46cd00fbdb7cd30b6c1c17ab54f2e1f4f7b177/validated/vision/classification/alexnet/model/bvlcalexnet-12.onnx?download=true")
with file_path.open('wb') as nfnet:
nfnet.write(response.content)
elif test_data_dir / 'efficientnet-lite4-11-qdq.onnx' == file_path:
- response = requests.get("https://github.com/onnx/models/raw/main/validated/vision/classification/efficientnet-lite4/model/efficientnet-lite4-11-qdq.onnx?download=")
+ response = requests.get("https://media.githubusercontent.com/media/onnx/models/4c46cd00fbdb7cd30b6c1c17ab54f2e1f4f7b177/validated/vision/classification/efficientnet-lite4/model/efficientnet-lite4-11-qdq.onnx?download=true")
with file_path.open('wb') as nfnet:
nfnet.write(response.content)
else: