Stop retrying permanent GitHub API failures in retry.sh

オープン 初心者向け
#113 コメント 1 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

@muspi-merol-review がすでに取り組んでいます。

2026年11月16日 から。

  • #116 @muspi-merol-review による — オープン

評価

難易度
2/5
見積もり時間
1〜3時間
初心者へのやさしさ
76/100
issue の種類
バグ
明瞭さ
明確に書かれている
活発さ
活発
技術スタック
github, github-actions, typescript
領域
ci-cd, tooling

調査の方向性

まず scripts/retry.sh と scripts/resolve-thread.sh を確認し、GitHub CLI の失敗をどのように処理するか、またリトライスクリプトが DELETE 404 のケースをどのように認識するかを調べます。ネットワークエラー、429、5xx が引き続きリトライ可能であること、恒久的な応答では速やかに失敗すること、空の PR_NUMBER ではクエリを発行せずに明確なエラーが出ることを確認します。

索引モデルが issue の本文から書いたものです。

説明

scripts/retry.sh retries every failure 8 times with exponential backoff (91 s of sleeps) and only treats a DELETE 404 as terminal. Permanent responses therefore burn the whole ladder:

  • gh: Resource not accessible by integration (HTTP 403) — the App deliberately lacks workflows permission (#99), so committing a workflow change can never succeed. Seen in 11 runs, e.g. 43089011412; the step often gets SIGTERM (exit 143) before the retries finish.
  • gh: Variable $pr of type Int! was provided invalid value — scripts/resolve-thread.sh runs with an empty $PR_NUMBER on push runs, so every attempt builds the same invalid query. Seen in 43405825862.

Retry only network errors, 429 and 5xx; fail fast on 400/401/403/404/422, keeping the DELETE-404 idempotency case. Also have resolve-thread.sh reject an empty PR_NUMBER with a clear message instead of issuing the query.

主要言語
TypeScript
スター
0
フォーク
0
平均マージ
1時間 39分
マージ済み PR(30日)
84

環境構築

このプロジェクトには開発コンテナ、Dockerfile、コントリビューションガイドがありません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

promplate/code-review のほかの issue

promplate/code-review の issue をすべて見る

似ている issue

TypeScript の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。