Skip to content

Conversation

@ootakazuhiko
Copy link
Collaborator

429/secondary rate limitでghが失敗→異常停止する事象が再発したため、耐性を追加しました。\n\n- scripts/ci/lib/gh-exec.mjs: デフォルトリトライを強化(attempts 8 / maxDelay 60s)、exceeded retry limit 文言もretry対象に追加、必要時のみAE_GH_RETRY_DEBUG=1で待機ログ出力\n- scripts/trace/post-envelope-comment.mjs: GitHubコメント投稿をexecGh経由に変更(stdin pipe + stdout/stderr inherit)\n\n備考:\n- primary rate_limitが残っていてもsecondaryで429になるため、指数バックオフで吸収します。

Copilot AI review requested due to automatic review settings February 11, 2026 09:47
@github-actions
Copy link
Contributor

❓ Code Generation Drift Detection

Status:
Regeneration needed: No


Automated by AE-Framework Codegen

@github-actions
Copy link
Contributor

Quality Summary

  • Adapters:

  • Formal: n/a

  • Replay: n/a

  • Trace IDs:

@github-actions
Copy link
Contributor

github-actions bot commented Feb 11, 2026

Progress Summary

  • Missing: metrics, quality, traceability, phaseState

@github-actions
Copy link
Contributor

github-actions bot commented Feb 11, 2026

Generate Artifacts Preview

Generated at: 2026-02-11T09:52:25.925Z

  • tests/api/generated: clean
  • artifacts/codex: clean
  • artifacts/spec: clean

@github-actions
Copy link
Contributor

@artifacts/quality/comment-body.txt

@github-actions
Copy link
Contributor

github-actions bot commented Feb 11, 2026

KvOnce Trace Validation

  • OTLP: ✅ Success (Issues: 0)
  • NDJSON: ✅ Success (Issues: 0)

Copy link

@chatgpt-codex-connector chatgpt-codex-connector bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 779070a716

ℹ️ About Codex in GitHub

Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".

Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR enhances the resilience of CI scripts against GitHub API rate limiting (HTTP 429 errors) by strengthening the retry logic and migrating a script to use the centralized retry mechanism.

Changes:

  • Increased default retry attempts from 6 to 8 and max delay from 30s to 60s in gh-exec.mjs
  • Added "exceeded retry limit" as a retryable error pattern to handle GitHub CLI's internal retry failures
  • Added opt-in debug logging via AE_GH_RETRY_DEBUG=1 environment variable
  • Migrated post-envelope-comment.mjs from direct spawnSync to execGh wrapper for automatic retry support

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.

File Description
scripts/ci/lib/gh-exec.mjs Enhanced retry configuration (8 attempts, 60s max delay), added "exceeded retry limit" pattern to retry logic, added debug logging support
scripts/trace/post-envelope-comment.mjs Migrated GitHub comment posting from spawnSync to execGh wrapper for retry support, updated error handling

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@github-actions
Copy link
Contributor

❓ Code Generation Drift Detection

Status:
Regeneration needed: No


Automated by AE-Framework Codegen

@github-actions
Copy link
Contributor

@artifacts/quality/comment-body.txt

@ootakazuhiko ootakazuhiko merged commit 5d7fe83 into main Feb 11, 2026
58 of 60 checks passed
@ootakazuhiko ootakazuhiko deleted the fix/gh-retry-trace-comment branch February 11, 2026 09:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant