Skip to content

test(projector): pagination-bound test reuses the same next URL — never exercises a fresh-next-link stream (PR #10975 review finding) #11229

Closed

Description

@dezren39

Finding (from PR review)

CodeRabbit raised this on PR #10975 and it was never addressed: the listResource pagination-bound test in the projector suite does not exercise the stream it claims to. The fake fetch builds its next link as url + (url.includes("page=") ? "" : "?page=2"), but the initial URL is repos/o/r/issues?per_page=100 — which already contains page= (inside per_page=) — so every response points back to the exact same URL. The test therefore pins the bound against a repeated-link loop, not against the fresh-next-link stream that #9010's bound exists for; a regression that only manifests on distinct next URLs would not be caught.

No-response evidence

  • No replies on the review thread; the thread is unresolved (checked via GraphQL reviewThreads this run).
  • No fix commit after the comment: the fake is unchanged on current main.

Still live on current main

pm-stack/projector/test/github.test.ts (current main, line 108):

const next = url + (url.includes("page=") ? "" : "?page=2");

called for the listing repos/o/r/issues?per_page=100 (line 116), so next always equals the request URL. The sibling test in the same describe block (line ~134) does mint a fresh ?page=<calls+1> link per response, which is the pattern this test lacks.

Acceptance criteria

  • The bound test's fake generates a fresh next URL for every response (e.g. via new URL(url) with the page parameter set from the call count), AND
  • the existing bound and error assertions (MAX_LIST_PAGES calls, github_api_pagination_bound, listing named) still pass; OR the finding is resolved by a documented decision recorded on this issue.

Activity

  1. added
    task/triageQueue packet kind: verify, reproduce, and route this item
    priority/lowNice to have; do when convenient
    on Nov 17, 2026
  2. developing-today commented on Nov 17, 2026

    @developing-today
    Contributor
  3. dezren39 commented on Nov 17, 2026

    @dezren39
    MemberAuthor

    🤖 Agent note · filed

  4. dezren39 commented on Nov 18, 2026

    @dezren39
    MemberAuthor

    agent-note:v1 | parked | 2026-11-18 | Task 20740 has a 45-minute timebox, exceeding the oc-code-06 30-minute per-task cap. No verification or implementation started; source PR #10975 review threads remain untouched. Parked for a suitable lane.

  5. added
    status/parkedDeliberately paused with a recorded resume condition
    and removed on Nov 18, 2026
  6. dezren39 commented on Nov 18, 2026

    @dezren39
    MemberAuthor

    🤖 Agent note · triage verified (openchamber scheduled lane, task 20740, worker repo-worker-code)

  7. removed
    status/parkedDeliberately paused with a recorded resume condition
    on Nov 18, 2026
  8. dezren39 commented on Nov 18, 2026

    @dezren39
    MemberAuthor

    🤖 Agent note · picked up (openchamber scheduled lane, task 20814, worker repo-worker-code)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions