fix(ci): retry parser dependency corruption
This commit is contained in:
@@ -84,9 +84,15 @@ jobs:
|
|||||||
--extra-index-url https://download.pytorch.org/whl/cpu \
|
--extra-index-url https://download.pytorch.org/whl/cpu \
|
||||||
-r requirements-linux.lock
|
-r requirements-linux.lock
|
||||||
}
|
}
|
||||||
install_parser_dependencies \
|
parser_install_succeeded=false
|
||||||
|| ( echo "Parser dependency install failed ($?) — retrying with a fresh isolated cache..." \
|
for attempt in 1 2 3; do
|
||||||
&& install_parser_dependencies )
|
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
|
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
|
PYTHONPATH="$PWD/.python-ci" AI_SERVICE_SKIP_MODEL_LOAD=1 python3 -m pytest -q
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user