CI: Make Codex complexity classification non-fatal#14721
Closed
mszeszko-meta wants to merge 1 commit into
Closed
Conversation
✅ clang-tidy: No findings on changed linesCompleted in 0.0s. |
✅ Claude Code ReviewAuto-triggered after CI passed — reviewing commit f4ea128 SummaryClean, well-structured defensive change that makes the Codex complexity classifier non-fatal in two parallel CI job locations. The fallback-to- High-severity findings (0): Full review (click to expand)Findings🔴 HIGHNone. 🟡 MEDIUMM1. First block: early-exit on missing API key now writes file but still exits before
|
| Component | Impact | Assessment |
|---|---|---|
| "Pick thinking budget (Codex)" step (both jobs) | Reads codex-complexity-output.txt |
Already has a try/catch that defaults to complex on read failure. The PR's explicit printf 'complex\n' makes the fallback path more deterministic but was already safe. |
| Downstream Codex review step | Uses effort output from budget step |
Unaffected — receives xhigh (complex default) on classifier failure, which is the conservative choice. |
| Claude provider path | Separate if guard on inputs.provider |
Completely unaffected by this change. |
Positive Observations
- The fallback to
complex(which maps toxhighreasoning effort) is the conservative/safe default — it allocates more thinking budget rather than less. - Adding the
OPENAI_API_KEYguard to the second block fixes a pre-existing gap where the manual-trigger job would fail hard if the secret was missing. - The
set +e/set -ewindow is correctly scoped to just thecodex execcall. - Writing
codex-complexity-output.txton all failure paths (including missing API key) provides defense-in-depth even though the downstream JS already handles missing files.
ℹ️ 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
|
@mszeszko-meta has imported this pull request. If you are a Meta employee, you can view this in D104326081. |
|
@mszeszko-meta merged this pull request in 330962b. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Previously,
Classify PR complexity (Codex)ran underbash -e, so anycodex execfailure aborted the entire Codex review before the real review step could run. The classifier only selects the review budget, so on failure we now log the classifier output tail, default to thecomplexreview budget, and continue. This keeps actual Codex review failures visible through the existing review exit-code/log handling while preventing the auxiliary classifier from blocking review generation.