fix(ci): 环境变量方式兼容新旧Runner pip版本 #272

Closed
xiaoxia wants to merge 1 commits from fix/pip-compatibility-all-runners into develop
Owner

问题

PR #271 引入的 --break-system-packages 命令行参数在旧Runner(Python 3.10 + pip 22.0.2)上不支持,导致所有Runner的pip install都失败。

修复

改用环境变量 PIP_BREAK_SYSTEM_PACKAGES=1

  • 新Runner (Python 3.12): 识别环境变量,解除PEP 668限制
  • 旧Runner (Python 3.10): 不识别该环境变量但自动忽略,本身也没有PEP 668限制

影响

全量CI可恢复正常运行。

## 问题 PR #271 引入的 `--break-system-packages` 命令行参数在旧Runner(Python 3.10 + pip 22.0.2)上不支持,导致所有Runner的pip install都失败。 ## 修复 改用环境变量 `PIP_BREAK_SYSTEM_PACKAGES=1`: - 新Runner (Python 3.12): 识别环境变量,解除PEP 668限制 - 旧Runner (Python 3.10): 不识别该环境变量但自动忽略,本身也没有PEP 668限制 ## 影响 全量CI可恢复正常运行。
xiaoxia added 1 commit 2026-07-13 17:08:38 +08:00
fix(ci): use PIP_BREAK_SYSTEM_PACKAGES env var for cross-version pip compatibility
CI/CD Pipeline / Frontend Lint (pull_request) Failing after 8s
CI/CD Pipeline / Unit Tests (pull_request) Failing after 1m3s
CI/CD Pipeline / Validate Code Quality And Tests (pull_request) Failing after 22m35s
CI/CD Pipeline / Build & Push Staging (Watchtower auto-deploy) (pull_request) Has been skipped
CI/CD Pipeline / Staging E2E Tests (pull_request) Has been skipped
CI/CD Pipeline / Staging API Integration Tests (pull_request) Has been skipped
CI/CD Pipeline / Build Production Runtime Images (pull_request) Has been skipped
CI/CD Pipeline / Deploy Production (pull_request) Has been skipped
CI/CD Pipeline / Production Browser E2E (pull_request) Has been skipped
CI/CD Pipeline / Integration Tests (pull_request) Failing after 50s
f83f78b3fc
xiaoxia closed this pull request 2026-07-14 08:55:49 +08:00
Some checks are pending
CI/CD Pipeline / Frontend Lint (pull_request) Failing after 8s
CI/CD Pipeline / Unit Tests (pull_request) Failing after 1m3s
CI/CD Pipeline / Validate Code Quality And Tests (pull_request) Failing after 22m35s
CI/CD Pipeline / Build & Push Staging (Watchtower auto-deploy) (pull_request) Has been skipped
CI/CD Pipeline / Staging E2E Tests (pull_request) Has been skipped
CI/CD Pipeline / Staging API Integration Tests (pull_request) Has been skipped
CI/CD Pipeline / Build Production Runtime Images (pull_request) Has been skipped
CI/CD Pipeline / Deploy Production (pull_request) Has been skipped
CI/CD Pipeline / Production Browser E2E (pull_request) Has been skipped
CI/CD Pipeline / Integration Tests (pull_request) Failing after 50s

Pull request closed

Sign in to join this conversation.