🐛 fix(gitea-fix-ci): trace workflow_run CI chains

This commit is contained in:
csh
2026-08-20 15:56:40 +08:00
parent 5a8d95ebcf
commit 77ab8211b1
6 changed files with 429 additions and 194 deletions
+10
View File
@@ -13,5 +13,15 @@
"id": "cancelled-infrastructure-not-code-bug",
"prompt": "Gitea Actions 页面仍是红色:run 的 status 是 completedconclusion 是 cancelled,日志最后显示 runner lost heartbeat。请修复这个 CI。",
"expected": "以 conclusion 而非 status 判断结果,将其分类为取消或基础设施问题;建议重跑并排查 runner/队列,不编造代码原因、不修改源码;最终明确区分本地验证与尚待远端复检的状态。"
},
{
"id": "workflow-run-chain-checks-failure",
"prompt": "Gitea 上 PR #42 的 Prepare 已成功,但 Checks 红了。仓库的 checks.yml 由 workflow_run 触发。请定位正确日志并给出修复计划。",
"expected": "先读取 workflow 触发关系并按 PR head SHA 定位 Prepare;不使用 PR 分支或 PR SHA 过滤 workflow_run 下游 run,而是按 checks.yml、event=workflow_run、status=all 和上游完成时间定位候选,再用日志中的实际 ref/SHA 或 PR run URL 核验关联;读取失败 job 日志后形成计划并在修改前暂停。"
},
{
"id": "prepare-gate-failure-skips-downstream",
"prompt": "Gitea 上 PR #43 没看到 ChecksPrepare 是 failure;下游 workflow 由 workflow_run 触发且 job 有 success 门禁。请查清楚。",
"expected": "把问题分类为上游门禁未通过,读取 Prepare 的失败 job 日志;检查下游是否为 skipped 或缺失,但不继续寻找下游失败日志,也不把缺失误报为未知代码错误;区分已核验事实与关联推断,给出计划后等待授权。"
}
]