Skip to content

fix(ci): show review coverage in PR and MR summaries - #2107

Open
Qiyuanqiii wants to merge 4 commits into
alibaba:mainfrom
Qiyuanqiii:Qiyuanqiii/issue-2103-coverage
Open

Qiyuanqiii wants to merge 4 commits into
alibaba:mainfrom
Qiyuanqiii:Qiyuanqiii/issue-2103-coverage

Conversation

@Qiyuanqiii

@Qiyuanqiii Qiyuanqiii commented Nov 26, 2026 •

Copy link
Copy Markdown
Contributor

Description

A partial review could leave a PR or MR showing only how many findings were posted. With zero findings it could look like an all-clear. GitHub and GitLab now put the recorded outcome and coverage at the top of the summary. The same heading appears while inline comments are being posted.

Review coverage

A review with seven completed files, one reused result and two unfinished files is shown as Partial review: 8 of 10 selected files covered. If both unfinished files reached the budget, the next line reads Not reviewed: 2 files (budget exhausted). A run that fails before selecting files shows its recorded failure class and diagnostic below the heading, even with no warnings or findings. Review info lists the commit range and per-file results, with unfinished files and their recorded reasons first. Reused results are identified individually. Waived files stay in the selected count, and excluded files stay outside it. When coverage is missing, the summary says so.

Both publishers give the summary and findings priority over the optional file table. On GitLab, the zero-finding note, initial posting note and final note each account for their own body and sticky markers before adding rows. A shortened table ends at a row boundary and includes an omission notice. GitLab Notes API

Compatibility

  • Findings continue to use their existing inline and summary routes. A checkpoint-narrowed GitHub review shows Incremental review only above the findings. Full commit SHAs and file results appear under Review info.
  • Each GitHub Action invocation writes its own report. If OCR exits non-zero with a usable report, publication is attempted before the action returns the original exit code. A budget-only partial review that exits zero still passes.
  • Incomplete reviews cannot advance the checkpoint. The action input description, example and localized CI guides describe the publication order.

Type of Change

  • Bug fix
  • Documentation update
  • CI / Build / Tooling
  • Breaking change

Validation

Check Result Revision
GitLab publisher unit tests All 159 passed, including failure before file selection and mixed unfinished-file causes 64b63db4
Large MR note regression With 12,000 selected files, the zero-finding note was 999,906 characters. With one summary finding, the initial note was 999,905 and the final note was 999,961. All retained the unfinished file and its reason. 8ca0699e
make check, diff and LF checks Passed 64b63db4
Pre-commit OCR review Both publishers reviewed. Added a type check for the GitLab failure-message fallback after one low-severity finding 64b63db4
npm run test:github-actions Passed, including visible checkpoint scope and the action contract for zero and non-zero OCR exits 64b63db4

The same zero-finding fixture produced a 1,705,035-character note on f7244738, above GitLab’s 1,000,000-character limit.

Verified on self-hosted GitLab CE 19.6.2 at 64b63db. The MR summary reported 2 of 3 selected files covered, identified international/quote.go as skipped because the token budget was exhausted, and confirmed that all 5 findings were posted inline.

image

Limitations

The size handling applies to the optional coverage table. A note whose findings and warnings alone exceed the platform limit still requires separate handling. GitLab publication was tested against the recording publisher used by the unit suite.

Checklist

  • Added regression coverage for zero findings and for the initial and final notes with a finding.
  • Contributor reviewed revision 8ca0699e before requesting maintainer review.

AI/LLM Disclosure

OpenAI Codex (GPT-6.2 Astra) assisted with implementation, tests and this description. The pre-commit reviews used OpenCodeReview with the DeepSeek model reported as deepseek-flash.

Closes #2103.
follow-up #1489

@github-actions

github-actions Bot commented Nov 26, 2026 •

Copy link
Copy Markdown
Contributor

🔍 OpenCodeReview found 2 issue(s) in this PR.

  • ✅ Successfully posted inline: 2 comment(s)

@Qiyuanqiii
Qiyuanqiii marked this pull request as ready for review November 26, 2026 09:49

This branch has not been deployed

No deployments
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.

fix(ci): show incomplete review coverage in GitHub PR and GitLab MR summaries

2 participants