Skip to content

pr-queue review flags: no test for the repeated-cursor guard #65

Closed

Description

@scuttletoby

Found in review of #61 (security (review flags) lens): #61 (comment).

What: the review-flags query in fork-ci/actions/pr-queue/pr_queue.py (around line 128) stops when GitHub returns the same page cursor twice. No test fails if that guard is removed.

Effect: none for safety (it still fails closed), but without the guard a repeated cursor loops up to the 50-page cap instead of stopping at once.

Fix: add a test in pr_queue.test.py where the fake returns the same endCursor with hasNextPage: true; it must stop after the second page and fail closed.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bug

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions