Skip to content

增强 GitHub Action 中 GitHub API 请求健壮性 #291

Description

@Terry-Mao

需求

增强 GitHub Action 中 PR review 发布阶段的 GitHub API 请求健壮性。

建议

  • 对 DNS 或连接失败增加有限重试和指数退避。
  • 为 urlopen(..., timeout=...) 设置超时,避免网络异常时无限等待。
  • 仅在最终失败后退出,并保留已生成的 review artifact。

相关位置

  • .github/scripts/post_pr_review.py:51
  • .github/scripts/post_pr_review.py:496

Activity

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