mirror of
https://github.com/meta-llama/llama-stack.git
synced 2025-12-03 09:53:45 +00:00
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:
parent
761a2a0ce3
commit
166c37bbbe
1 changed files with 3 additions and 1 deletions
4
.github/actions/setup-runner/action.yml
vendored
4
.github/actions/setup-runner/action.yml
vendored
|
|
@ -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 .
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue