You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
gitlab_ci post_review.py posts a check-mark "Looks good to me" on a failed review #1998
examples/gitlab_ci/post_review.py renders a hardcoded ✅ / "Looks good to me" summary on the zero-comment path. A failed review has zero comments, so a completely failed review posts an all-clear note onto the merge request — the exact durable record a reviewer would trust.
Version / environment
examples/gitlab_ci/post_review.py from upstream tag v1.13.5
GitLab CI node:20-bookworm job
Steps to reproduce
Run the GitLab CI example on an MR where ocr review returns "status": "failed" with zero comments (e.g. every subtask hits --timeout).
The posting script takes the if not comments: branch and upserts a summary note whose body is ✅ **OpenCodeReview**: <result.message> (or the default "No comments generated. Looks good to me." when message is empty).
Actual behavior
The MR summary note reads as an all-clear even though the review failed. On an allow_failure: true job the pipeline also reports "passed with warnings", so the note is the only thing a human reads — and it says the code looks good.
Expected behavior
On a failed review, the summary should say so plainly (e.g. "review did not complete (status=failed): …") instead of the success glyph and the LGTM default. The zero-comment success message should only be used when the review actually completed.
(Related: #1882 fixed the same "No issues found on a failed review" display in the VS Code extension; this is the same class in the GitLab CI posting script.)
Disclosure
This report was produced with AI/LLM assistance (an agent ran the integration and observed the note on a real MR), and the behavior was read off the vendored script and the posted note, not assumed.
Activity