Repository navigation
fix(pr-review): re-read the whole diff after a fix instead of holding confidence at 8 forever #2019
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -513,7 +513,16 @@ export const buildReviewCompletion = ( | |
| const saved = [...ledger.findings(), ...childFiled] | ||
| const unreviewed = | ||
| normalized.report.verdict === "not_applicable" ? [] : (coverage?.unread() ?? []) | ||
| const report = withSavedFindings(normalized.report, saved, unreviewed) | ||
| const merged = withSavedFindings(normalized.report, saved, unreviewed) | ||
| // A close-out files what a stopped pass saved, and not_applicable owes no reads, so | ||
| // neither counts as a whole-diff read. | ||
| const report = | ||
| coverage?.wholeDiff() === true && | ||
| !partial && | ||
| unreviewed.length === 0 && | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Do not count incomplete file diffs as read.
|
||
| normalized.report.verdict !== "not_applicable" | ||
| ? new PrReviewReport({ ...merged, wholeDiff: true }) | ||
| : merged | ||
| const childPosted = childFiled.filter((child) => | ||
| report.findings.some( | ||
| (finding) => | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Script executed:
Repository: MapleTechLabs/maple
Length of output: 4841
Script executed:
Repository: MapleTechLabs/maple
Length of output: 41863
Ignore truncated file listings when setting
wholeDiff.pr_changed_fileslists at most 500 files, and the listing is cut before reviewable files beyond that point are shown.makeReviewCoverage.wholeDiff()returns true whenever any listing arrived. On a pull request with more than 500 changed files, a review can read every listed reviewable file and still be stampedwholeDiff: true. The confidence cap is then lifted without the unlisted files being read.Make
wholeDiff()return false when the listing reports fewer files than the total. Track that truncation inobserveforpr_changed_files, and keep the cap in place until a listing covers every changed file. Confirm the exact truncation wording in the renderer before matching it.