fix(ci): Prevent Python from caching old code during uv sync

The signature mismatch error persists because 'uv sync' installs and potentially imports
the llama-stack package, caching provider modules in memory BEFORE we do the editable
install with fresh source code.

This fix adds the --no-install-project flag to 'uv sync', which:
1. Installs all dependencies but skips installing the project itself
2. Prevents Python from importing and caching provider modules
3. Ensures the subsequent 'uv pip install -e .' loads fresh source code

This should finally resolve the persistent signature mismatch errors in CI where
the protocol has 'authorization' parameter but provider implementations appear not to.
This commit is contained in:
Omar Abdelwahab 2025-11-12 15:56:26 -08:00
parent 761a2a0ce3
commit 166c37bbbe

View file

@ -56,7 +56,9 @@ runs:
fi fi
echo "Syncing dependencies with uv (will create fresh venv)" echo "Syncing dependencies with uv (will create fresh venv)"
uv sync --all-groups # Use --no-install-project to avoid installing llama-stack yet (we'll do it later with -e)
# This prevents Python from importing old code during sync
uv sync --all-groups --no-install-project
echo "Force reinstalling llama-stack from source to ensure latest changes" echo "Force reinstalling llama-stack from source to ensure latest changes"
uv pip install --force-reinstall --no-deps -e . uv pip install --force-reinstall --no-deps -e .