From 1f7ec6e307489aa4969fa16aadc5627d935099e3 Mon Sep 17 00:00:00 2001 From: cesnimda Date: Tue, 1 Sep 2026 15:37:02 +0200 Subject: [PATCH] fix(ci): retry parser dependency corruption --- .gitea/workflows/ci-deploy.yml | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/.gitea/workflows/ci-deploy.yml b/.gitea/workflows/ci-deploy.yml index 3c2d8bb..345f745 100644 --- a/.gitea/workflows/ci-deploy.yml +++ b/.gitea/workflows/ci-deploy.yml @@ -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