fix(cmd): return non-zero for partial operational failures - #1030
Open
Qiyuanqiii wants to merge 3 commits into
Open
Qiyuanqiii wants to merge 3 commits into
Qiyuanqiii wants to merge 3 commits into
Conversation
Contributor
|
✅ OpenCodeReview: Review complete: 0 finding(s) across 3 selected item(s). |
Qiyuanqiii
marked this pull request as ready for review
August 21, 2026 10:44
Qiyuanqiii
force-pushed
the
codex/fix-partial-failure-exit-code
branch
from
August 25, 2026 13:38
c6ea09f to
4469700
Compare
18 tasks
Contributor
|
@lizhengfeng101, would you be able to review the current head when you have a chance? We’re successfully using OpenCodeReview downstream, and we’re treating the fix for #1027 as the remaining upstream blocker before enabling a broader rollout. The current checks are green and GitHub reports the PR as mergeable. If additional changes are needed—or if you can share an approximate review timeline—we’d appreciate the guidance. We’re also happy to help with this PR in any way that would be useful. Thank you! |
15 tasks
This was referenced Sep 19, 2026
This branch has not been deployed
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.
Description
Summary
executionSuccessfulmetadata.Motivation and Scope
Issue #1027 reports that a review with one timed-out file produces a partial result but exits with status
0. That makes CI unable to distinguish complete coverage from an operationally incomplete review.The previous aggregate exit logic returned an error only for a fully failed manifest. This PR narrows the successful partial case to declared budget limits and makes other operational review-item failures visible to CI without discarding usable output from completed review items.
Implementation
reviewManifestRequiresNonZeroExitpolicy for terminal manifest evaluation.review incompletewith selected/failed item counts for operational partial failures.Compatibility and User Impact
0.0.1, allowing CI to detect incomplete coverage.Type of Change
How Has This Been Tested?
Initial Validation Environment
go1.26.5 windows/amd64cfbb62e2296d7684dc648e27fe1b906e8c960f9cInitial Automated Validation
make checktarget throughmingw32-make: license headers, English-only source check,go mod tidy, formatting, andgo vetmake testtarget throughmingw32-make: complete Go test suite with the race detectormake coveragetarget throughmingw32-make: 90.6% total statement coverage, above the required 90%git diff --checkDocumentation Completion and Main Sync
The Korean CLI reference and FAQ now describe operational partial failures, preserved review output, and budget-only partial success, matching the other four locales.
070805f86cc6ae4b987bfe733dfc14ecd5bb803ainecbf7dab0b6dfe89e7d0fef181592e698d063db1. The two retry-report E2E assertions now match upstream's four-file fixture.91b3bfa4452aaae710d6e4157f4cf4f40ed7ac69.make check,make testforcmd/opencodereviewandinternal/agentwith the race detector, and fullmake coveragepassed. Total statement coverage is 91.1%.git diff --checkpassed.Regression Coverage
The repository-requested self-review completed successfully:
Checklist
go fmt,go vet)Known Limitations
Related Issues
Closes #1027.