Skip to content

fix: add ~75s grace period for Codex review CI check#42

Merged
ibetitsmike merged 2 commits intomainfrom
mike/codex-review-grace-period
Mar 5, 2026
Merged

fix: add ~75s grace period for Codex review CI check#42
ibetitsmike merged 2 commits intomainfrom
mike/codex-review-grace-period

Conversation

@ibetitsmike
Copy link
Collaborator

@ibetitsmike ibetitsmike commented Mar 5, 2026

Two fixes for the Codex review CI check:

  1. Grace period — retry up to 6 times at 15s intervals (~75s) when Codex hasn't responded yet, instead of failing immediately.

  2. Bot login mismatch — GitHub GraphQL returns chatgpt-codex-connector[bot] for reaction users but chatgpt-codex-connector for comment authors. The thumbs-up check now uses startswith() so it matches both formats.

  3. Null pushedDate — when pushedDate is null, jq -r outputs the string "null" which broke the timestamp comparison. Now correctly outputs an empty string.

Changed: .github/workflows/pr.yml, scripts/check_codex_comments.sh

The Codex review step was failing immediately when Codex hadn't
responded yet. Now retries up to 6 times at 15s intervals (~75s)
before giving up, while still failing immediately if there are
actual comments to address.
GitHub GraphQL returns 'chatgpt-codex-connector[bot]' for reaction
users but 'chatgpt-codex-connector' for comment authors. Use
startswith() instead of exact match for reactions.

Also fix pushedDate null handling: jq -r turns null into the string
"null" which breaks timestamp comparison. Use // "" to get an
empty string instead.
@ibetitsmike ibetitsmike merged commit ea03fb7 into main Mar 5, 2026
7 checks passed
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