[moz] infra: CI lint ensurepip 失败 — act runner Python 环境问题 #91
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
问题描述
所有 PR 的 CI lint job 创建 Python venv 时
ensurepip失败,导致 lint 无法运行、test/frontend 被 skip、deploy 被 skip。最近 4 次 push main 的 CI 全部失败,daemon 无法通过 CD 自动重启。错误来源
日志关键片段
判断依据
src/目录,docs 文件不在 lint 范围修复完成 ✅
根因
lint job 创建
/tmp/ci-venv-lint后不清理。下次 CI 运行时python3 -m venv在已有目录上执行 upgrade,ensurepip调用失败(exit 1)。test job 已有
rm -rf /tmp/ci-venv-test,lint job 缺失同样清理。修复
PR #92 — lint Setup Python 首行加
rm -rf /tmp/ci-venv-lint(1 行改动)。CI run 410 验证通过。影响范围
修复前最近所有 CI lint job 都因此失败。修复后后续 CI 恢复正常。