fix(ci): retry parser dependency corruption
CI and Deploy / test (push) Failing after 8m7s
CI and Deploy / deploy (push) Has been skipped

This commit is contained in:
cesnimda
2026-09-01 15:37:02 +02:00
parent 559ad8a1b1
commit 1f7ec6e307
+9 -3
View File
@@ -84,9 +84,15 @@ jobs:
--extra-index-url https://download.pytorch.org/whl/cpu \
-r requirements-linux.lock
}
install_parser_dependencies \
|| ( echo "Parser dependency install failed ($?) — retrying with a fresh isolated cache..." \
&& install_parser_dependencies )
parser_install_succeeded=false
for attempt in 1 2 3; do
if install_parser_dependencies; then
parser_install_succeeded=true
break
fi
echo "Parser dependency install attempt $attempt failed — retrying with a fresh isolated cache..."
done
test "$parser_install_succeeded" = true
PIP_CACHE_DIR="$parser_pip_cache" python3 /tmp/pip.pyz install --upgrade --target .python-ci pytest==8.3.5 httpx2==2.12.0
PYTHONPATH="$PWD/.python-ci" AI_SERVICE_SKIP_MODEL_LOAD=1 python3 -m pytest -q