Fix broken github codex review (#14923)#14923
Conversation
|
@joshkang97 has exported this pull request. If you are a Meta employee, you can view the originating Diff in D111135454. |
✅ clang-tidy: No findings on changed linesCompleted in 0.0s. |
Codex Code Review - OBSOLETESuperseded by a newer AI review. Expand to see the original review.🟡 Codex Code ReviewAuto-triggered after CI passed — reviewing commit 3b5d976 ❌ Codex review failed before producing findings. ℹ️ About this responseGenerated by Codex CLI. Limitations:
Commands:
|
Claude Code Review - OBSOLETESuperseded by a newer AI review. Expand to see the original review.✅ Claude Code ReviewAuto-triggered after CI passed — reviewing commit 3b5d976 SummaryClean, correct fix. The PR replaces the broken No high-severity findings. Full review (click to expand)Findings🔴 HIGHNone. 🟡 MEDIUMNone. 🟢 LOW / NITL1. Residual
|
| Path | Before | After | Correct? |
|---|---|---|---|
| Auto review (line ~726) | codex exec review --base --title |
codex exec |
YES — prompt.txt has all metadata |
| Manual review (line ~1357) | codex exec review --base --title |
codex exec |
YES — prompt.txt has all metadata |
| Manual query (line ~1350) | codex exec (unchanged) |
codex exec (unchanged) |
YES — already correct |
| Recovery (line ~754) | codex exec (unchanged) |
codex exec (unchanged) |
YES — already correct |
| Complexity (line ~561) | codex exec (unchanged) |
codex exec (unchanged) |
YES — already correct |
Both changed paths now match the pattern used by the other codex exec invocations in the same file, ensuring consistency.
Positive Observations
- The change correctly removes env vars that are no longer referenced in the
runblock, keeping the workflow clean. - The manual path's
if/elsebranching (query vs review) now uses the samecodex execcommand for both branches, which is a simplification — though theif/elsestill exists for the output file naming and is still correct.
ℹ️ About this response
Generated by Claude Code.
Review methodology: claude_md/code_review.md
Limitations:
- Claude may miss context from files not in the diff
- Large PRs may be truncated
- Always apply human judgment to AI suggestions
Commands:
/claude-review [context]— Request a code review/claude-query <question>— Ask about the PR or codebase
Summary: Fix the GitHub Actions Codex review job by running generated review prompts through generic `codex exec` instead of the specialized `codex exec review` subcommand. The workflow already embeds PR metadata, reviewer instructions, and the diff in `/tmp/prompt.txt`, while `codex exec review --base` rejects a positional/stdin prompt. This removes the invalid `--base`/stdin combination from both automatic and manual Codex review paths while leaving `/codex-query` behavior unchanged. Differential Revision: D111135454
3b5d976 to
1edfcaf
Compare
🟡 Codex Code ReviewAuto-triggered after CI passed — reviewing commit 1edfcaf ❌ Codex review failed before producing findings. ℹ️ About this responseGenerated by Codex CLI. Limitations:
Commands:
|
✅ Claude Code ReviewAuto-triggered after CI passed — reviewing commit 1edfcaf SummaryClean, minimal CI fix that replaces the invalid No high-severity findings. Full review (click to expand)Findings🔴 HIGHNone. 🟡 MEDIUMNone. 🟢 LOW / NITL1. Consistency already achieved —
|
| Aspect | Assessment |
|---|---|
| Prompt content | /tmp/prompt.txt is still constructed with PR title, base SHA, diff, and full review instructions in earlier steps (lines 446-468, 1015-1053). No information loss. |
BASE_SHA / PR_TITLE in other steps |
Still defined and used in the prompt-construction steps — only removed from the two Codex invocation steps where they were passed as CLI args. No dangling references. |
/codex-query path |
Unchanged — the if [ "${COMMAND_TYPE}" = "query" ] branch already used codex exec and is not modified. |
| Recovery steps | Already used codex exec (lines 754, 1386). Unaffected. |
Positive Observations
- The change is correctly scoped — only the two broken invocations are modified.
- Environment variable cleanup is thorough:
BASE_SHAandPR_TITLEare removed only from steps that no longer use them. - The fix is consistent with the working
codex execpattern used elsewhere in the same workflow.
ℹ️ About this response
Generated by Claude Code.
Review methodology: claude_md/code_review.md
Limitations:
- Claude may miss context from files not in the diff
- Large PRs may be truncated
- Always apply human judgment to AI suggestions
Commands:
/claude-review [context]— Request a code review/claude-query <question>— Ask about the PR or codebase
Summary:
Fix the GitHub Actions Codex review job by running generated review prompts through generic
codex execinstead of the specializedcodex exec reviewsubcommand. The workflow already embeds PR metadata, reviewer instructions, and the diff in/tmp/prompt.txt, whilecodex exec review --baserejects a positional/stdin prompt. This removes the invalid--base/stdin combination from both automatic and manual Codex review paths while leaving/codex-querybehavior unchanged.Differential Revision: D111135454