Skip to content

GitHub Release 瞬时失败的幂等重试与发布后对账 #893

Description

@sonofmagic

背景

weapp-tailwindcss 的 Release 在 npm 发布成功后,GitHub Release 创建请求遇到 502;现有恢复入口只能修复已存在的 Release,无法安全补建缺失元数据。当前 @icebreakers/monorepo@5.5.0 通过临时 pnpm patch 验证了所需行为。

需求

  • GitHub API 网络错误、429、5xx 支持最多四次有界指数退避,并遵守 Retry-After / rate limit reset。
  • POST 响应不确定时先按 tag 对账,避免重复创建。
  • 增加已发布 npm 版本、git tag、目标提交与 Release 元数据对账及 dry-run 恢复入口。
  • 权限、校验等永久错误立即失败,不重试整个 npm 发布流程。

关联:Related to #887

验收:覆盖 502 后成功、响应丢失但已创建、429、重试耗尽、永久错误及缺失 Release 恢复测试。

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

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions