Skip to content

增加 AI PR Review 超时控制 #288

Closed

Description

@Terry-Mao

为 AI PR Review 增加超时控制,避免 review workflow 长时间运行。

Activity

  1. added
    area:workflowGitHub workflows and Python automation scripts
    enhancementNew feature or request
    repro:unknownThere is not enough information to estimate reproducibility
    triagedIssue has been reviewed and categorized
    on Oct 3, 2026
  2. github-actions commented on Oct 3, 2026

    @github-actions
    Contributor

    分诊结论

    • 类型:功能增强(enhancement)
    • 影响范围:.github/workflows/review-pr.yml(AI PR Review 工作流)
    • 可复现性:unknown —— 缺少一次“长时间运行”的实际运行链接或日志,无法判定触发条件与频率。
    • 重复 issue:未在候选列表中发现重复。

    现状分析

    review-pr.yml 的 preflight 与 review job,以及 openai/codex-action 步骤均未设置 timeout-minutes;.github/scripts/ 中也没有 AI review 流程的超时或取消逻辑。当 review 卡住或耗时异常时,工作流只能等到运行器/平台的默认上限才结束。

    建议

    在工作流层显式增加超时控制(例如 job 级 timeout-minutes,必要时对 Codex 步骤单独设置),并明确超时后的状态与行为。具体的超时数值、作用范围和超时后处理属于设计决策,建议由 spec 阶段确定。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    area:workflowGitHub workflows and Python automation scriptsenhancementNew feature or requestrepro:unknownThere is not enough information to estimate reproducibilitytriagedIssue has been reviewed and categorized

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions