Files
playbook/skills/gitea-fix-ci/test-prompts.json
T

28 lines
2.5 KiB
JSON
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
[
{
"id": "failing-pr-check-needs-plan-gate",
"prompt": "Gitea 上 PR #42 的 CI 红了,帮我查清原因并修好。请从当前仓库开始排查。",
"expected": "先记录本地状态、确认 remote 属于 Gitea,再基于 run/job/log 证据定位首个可操作错误;给出 Target/Failed CI/Evidence/Plan,并在明确的批准检查点暂停,批准前不改代码、不改 workflow、不泄露凭据。"
},
{
"id": "legacy-gitea-api-web-fallback",
"prompt": "这是 Gitea 1.21 的仓库,/api/v1/version 能访问,但 Actions 的 runs/jobs API 返回 404。网页上一个 run 有三个 job,第二个失败。请继续定位失败日志并给修复计划。",
"expected": "不把 version 成功误判为 Actions API 可用;切换到手动 web 回退,先从 run 页面读取 job 状态并选择失败的 job index 1,而不是盲取 index 0;提取最小日志证据,形成计划并在修改前暂停。"
},
{
"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 或缺失,但不继续寻找下游失败日志,也不把缺失误报为未知代码错误;区分已核验事实与关联推断,给出计划后等待授权。"
}
]