mirror of
https://github.com/meta-llama/llama-stack.git
synced 2025-12-03 09:53:45 +00:00
Fix CI: Clear Python bytecode cache before reinstall
The real issue was stale .pyc bytecode files in __pycache__ directories. These cached files contained the old method signatures without the authorization parameter, causing signature mismatch errors even though the source .py files were correct. Now clearing all __pycache__ directories and .pyc files before the force-reinstall to ensure Python loads fresh bytecode from the updated source files.
This commit is contained in:
parent
025c301a9a
commit
1ea57b0a17
1 changed files with 4 additions and 0 deletions
4
.github/actions/setup-runner/action.yml
vendored
4
.github/actions/setup-runner/action.yml
vendored
|
|
@ -37,6 +37,10 @@ runs:
|
||||||
echo "Exported UV environment variables for current and subsequent steps"
|
echo "Exported UV environment variables for current and subsequent steps"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
echo "Clearing Python bytecode cache to avoid stale .pyc files"
|
||||||
|
find . -type d -name "__pycache__" -exec rm -rf {} + 2>/dev/null || true
|
||||||
|
find . -name "*.pyc" -delete 2>/dev/null || true
|
||||||
|
|
||||||
echo "Updating project dependencies via uv sync"
|
echo "Updating project dependencies via uv sync"
|
||||||
uv sync --all-groups
|
uv sync --all-groups
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue