From 3cdfd0f79eb8f6fcf76f3aa32724090ab9e08a3c Mon Sep 17 00:00:00 2001 From: host Date: Sun, 8 Nov 2026 11:13:15 +0000 Subject: [PATCH] =?UTF-8?q?fix(ci):=20runner=20=E8=A1=A5=20py3-yaml/py3-pi?= =?UTF-8?q?llow/procps?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit CI run 198 红:cloud 套件 5 失败 + 12 错误,根因全是 runner 环境缺包(本地全绿): - No module named 'yaml':test_chv_gaps / test_chv_gitea_sync 模块导入失败 + test_chv_v3_fixes GuestEnvV4Test 两例(4 错误)。 - No module named 'PIL':阶段 4 diff_shot 逐像素裁剪 走 Pillow,ComputeDiffTest 5 错误 + DiffShotTest 3 错误 + 4 失败(Counters/DiffShot/ForbiddenOps 皆为缺 PIL 后的下游失败)。 - busybox ps 不支持 --ppid:阶段 5 ExecdKillGroupTest 用 ps --ppid 找组内子 sleep,10 秒等不到而失败。 --- .gitea/workflows/ci.yaml | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/.gitea/workflows/ci.yaml b/.gitea/workflows/ci.yaml index 1aab92a..448a70a 100644 --- a/.gitea/workflows/ci.yaml +++ b/.gitea/workflows/ci.yaml @@ -5,7 +5,12 @@ jobs: runs-on: host steps: - name: install python - run: apk add --no-cache python3 py3-pip ca-certificates git curl github-cli tar 2>&1 | tail -3; python3 --version; git --version + # CHV 测试要的非标准库:py3-yaml(test_chv_gaps / + # test_chv_gitea_sync / test_chv_v3_fixes 的 import yaml)、 + # py3-pillow(阶段 4 diff_shot 逐像素裁剪走 PIL)、 + # procps(阶段 5 ExecdKillGroupTest 用 ps --ppid 找组内 + # 子进程,Alpine 自带 busybox ps 不支持 --ppid)。 + run: apk add --no-cache python3 py3-pip py3-yaml py3-pillow procps ca-certificates git curl github-cli tar 2>&1 | tail -3; python3 --version; git --version - name: clone repo run: | rm -rf src