[moz] infra: CI lint job 全部 step 失败(checkout + Setup Python + flake8) #114
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 #113 的 CI lint job 中 3 个 step 全部标记为 failure(checkout + Setup Python + flake8),但 runner 自身无报错日志。本地跑 flake8 无错误。
错误来源
b921b094ca日志关键片段
Gitea 1.26.2 日志 API 返回 500 Internal Server Error,无法通过 API 获取 CI job 详细日志。
runner 日志无报错(sanguo-act-runner 正常接收和执行 task)。
判断依据
需要调查
排查结论
根因:act_runner capacity=1 竞态 + Gitea Actions dispatch 超时
证据链:
sanguo-act-runner-error.log中只有正常的task received+Running jobinfo 级别输出,无任何 error/fail触发条件:
Runner 配置
capacity=1。当 Gitea 在 runner 仍在处理前一个 pipeline 时(20:57 → 21:33 的 36 分钟间隔说明 runner 在处理密集任务),新 job dispatch 可能在 Gitea 侧超时或状态不同步,导致所有 step 被标记为 failure。已执行的修复
建议后续优化(不阻塞当前流程)