fix: pr-bug-scan validated finding from #6330#6378
Open
buf0-bot[bot] wants to merge 1 commit into
Open
Conversation
Added MAX_ISSUE_TIMELINE_PAGES=20 backstop to getIssueTimelineItems loop, bounding the unbounded sequential gh pagination on bot-noisy issues.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Automated fix-PR from pr-bug-scan for parent #6330.
Fixer status:
FIXED_WITH_CODE_PROOFSummary: Added MAX_ISSUE_TIMELINE_PAGES=20 backstop to getIssueTimelineItems loop, bounding the unbounded sequential gh pagination on bot-noisy issues.
Blocked proof link:
src/main/github/work-item-details.ts:291 — the pagination loop, which previously only stopped on items.length<MAX_ISSUE_TIMELINE_ITEMS (line 291, counting mapped items only) or a short page (line 316), now also stops at page<=MAX_ISSUE_TIMELINE_PAGES, so unsupported-heavy timelines can no longer walk the full timeline one gh subprocess per 100 raw events.Typecheck:
skippedProof (from validator)
code_analysisitems.length < MAX_ISSUE_TIMELINE_ITEMScounts only mapped/supported items (pushed at the inner loop), so a full page of unsupported events leaves items.length unchangedpageEvents.length < GITHUB_REST_PAGE_SIZE(a short, i.e. last, page); there is no max-page constantcode_analysisgh api repos/.../issues/Nread at fetch-launch time (state='open' when the drawer opened)Generated by
pr-bug-scan(proof-machine architecture). Human approval required before merge.