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
pr_review.py Counts a Back-Reference to an Unread Thread as a Finding With No Thread #2621
scripts/pr_review.py's unthreaded_entries counts every distinct thread id the head round's open sections link, across every link of every entry, and adds each id no fetched thread carries to the FINDINGS WITH NO THREAD count. An entry whose own title anchor is a thread on the pull request, and which also carries a back-reference to an id no fetched thread carries, therefore adds one to the block although that entry has a thread.
Constructed shape, where #discussion_r4000000001 is a thread on the pull request and #discussion_r4000000009 is not among the threads read (for example a thread past the hundred reviewThreads reads):
<detailsopen>
<summary><strong>1 open finding</strong></summary>
-[Finding 1](#discussion_r4000000001) New, see [earlier](#discussion_r4000000009)
</details>
The block prints a shortfall of 1 for a round whose one finding has its thread.
This is the same per-link reading the open-findings comparison used before it was changed to count entries (the fix for #2569). carried_open_threads already reads an entry by its first link, its title's own anchor, so that per-entry reading exists to apply here. The error only overstates, which is the direction the script picks deliberately, so it hides nothing.
Done when
unthreaded_entries counts an entry by its own title anchor rather than by every link it carries, or the decision to keep the per-link overstatement is recorded in its docstring.
Activity
Count Linked Entries, Not Links, Against the Open-Findings Total in p…
Count an Unthreaded Entry by Its Title Anchor in pr_review.py (#2641)
Promote the Title-Anchor Unthreaded Entry Count to Main (#2642)