Skip to content

Check Suppressed Summaries for a Vetted-but-Unread Section in pr_review.py #3193

Closed

Description

@ptr727

The shape

unrecognized_in checks that every vetted summary some reader should reach actually lands in a block, but only for PREVIOUSLY_MISSED_SUMMARIES against previously_missed_blocks. The vetted suppressed spellings, Suppressed comments (N) and Comments suppressed due to low confidence (N), get no such check against suppressed_blocks.

So a layout where suppressed_blocks misses a vetted suppressed summary reports shapes=ok while suppressed= comes out short. #3180 was one such layout. Alternating sections in one wrapper left a second <summary>Suppressed comments (2)</summary> unread, under shapes=ok. That path is fixed, but the next layout that misses a suppressed section will be silent the same way.

Expected

The vetted-but-unread comparison covers the suppressed summaries and suppressed_blocks as it covers the previously missed ones. A test pins it: a body where the suppressed reader misses a vetted suppressed summary reports it, for example by constructing a body and stubbing the reader to drop one block.

Found by the local strict review on the #3180 fix.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugscript

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions