From 166c37bbbe0ddbd699f2d669b617563de6d35c72 Mon Sep 17 00:00:00 2001 From: Omar Abdelwahab Date: Wed, 12 Nov 2025 15:56:26 -0800 Subject: [PATCH] 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. --- .github/actions/setup-runner/action.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/actions/setup-runner/action.yml b/.github/actions/setup-runner/action.yml index d7d15c392..737a59a01 100644 --- a/.github/actions/setup-runner/action.yml +++ b/.github/actions/setup-runner/action.yml @@ -56,7 +56,9 @@ runs: fi 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" uv pip install --force-reinstall --no-deps -e .