fix(ci): clear leftover .venv before Python 3.14 venv create (BUG-677)
Independent Staging Quality Gate / validate (push) Successful in 12m2s
Independent Staging Quality Gate / publish (push) Successful in 2m8s

Staging gate run 2594 died in Install dependencies with FileExistsError on a reused hostexecutor .venv. Remove the leftover directory and create the venv with --clear so Python 3.14 mkdir does not abort the job.
This commit is contained in:
jesse-ux
2026-09-14 09:49:25 +08:00
parent 69ffa07d6b
commit d021bca5e1
3 changed files with 27 additions and 2 deletions
+4 -1
View File
@@ -235,7 +235,10 @@ jobs:
NPM_CONFIG_REGISTRY: https://registry.npmmirror.com
run: |
set -euo pipefail
python3 -m venv .venv
# Hostexecutor may keep a gitignored .venv/; Python 3.14 mkdir then
# raises FileExistsError. Clear first instead of reusing leftovers.
rm -rf -- .venv
python3 -m venv --clear .venv
export PATH="$PWD/.venv/bin:$PATH"
python -m pip install --upgrade pip
python -m pip install \