GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — fleet-paperwork: two GitHub page loops have no page bound (#6622 contract rule 2) · Issue #9150 · developing-today/code

fleet-paperwork: two GitHub page loops have no page bound (#6622 contract rule 2) #9150

New issue
Copy link
New issue
Copy link
Closed
#10911
Closed
fleet-paperwork: two GitHub page loops have no page bound (#6622 contract rule 2)#9150
#10911
Copy link
Assignees
dezren39
Labels
kind/bugSomething isn't working (prefixed form of the classic bug label)status:done

Description

@dezren39
dezren39
opened on Nov 13, 2026
Issue body actions

Gap found by the #6623 closing pagination inventory (Phase 4 of #6622)

The pagination contract (#6622, rule 2) requires every page loop to carry a page-count or accumulated-result bound whose breach is an error naming the listing. Two GitHub page loops in infra/fleet-paperwork/fleet_paperwork.py follow pages with while True and no page bound:

  • AppClient.installations() (fleet_paperwork.py:262-283): pages /app/installations?per_page=100&page=N, stopping only at a short/empty page.
  • AppClient.assert_repo_in_scope() (fleet_paperwork.py:312-339): pages /installation/repositories?per_page=100&page=N, stopping when the accumulated count reaches the response's total_count or a page is empty.

Both terminate against GitHub's real API (finite listings; a page past the end is empty/short, and the second is also bounded by the server's own total_count), so this is a contract-conformance gap, not a live hang: a fresh-full-page stream (buggy or hostile endpoint, or a proxy fault) loops unbounded, accumulating results, instead of ending in a diagnosable error naming the listing — the exact shape #6602/#6572 bounded in cold-store-reaper and github-backup.

The third page loop in the same file, the issue-search scan (fleet_paperwork.py:403), is already capped (for page in range(1, 11), the Search API's 1000-result ceiling) and conforms.

Fix shape

Add a generous named page bound to both loops (sized off the legitimate maximum: installations and per-installation repositories for the orgs the App serves), whose breach dies with an error naming the listing — mirroring MAX_QUEUE_PAGES in github-backup's drain_queue.py and MAX_PAGES in fleet-dispatch-test's fetch_all_pages. Add a test with a fake transport that always returns full pages, asserting the bound fires (the probe matrix on #6622 includes the fresh-token stream past the bound).

Filed by the #6623 closing inventory per its acceptance rule: a gap is filed as its own issue, never fixed silently inside the inventory.

Activity

  1. dezren39
    added
    kind/bugSomething isn't working (prefixed form of the classic bug label)
    on Nov 13, 2026
  2. developing-today commented on Nov 13, 2026

    @developing-today
    developing-todayBot
    on Nov 13, 2026 – with developing.today
    Contributor
    More actions

    CODE-2850

  3. github-actions
    assigned
    dezren39
    on Nov 13, 2026
  4. developing-today
    added
    status:in-review
    on Nov 17, 2026
  5. dezren39
    closed this as completedin #10911on Nov 17, 2026
  6. developing-today
    added
    status:done
    and removed
    status:in-review
    on Nov 17, 2026
  7. dezren39 commented on Nov 17, 2026

    @dezren39
    dezren39
    on Nov 17, 2026
    MemberAuthor
    More actions

    🤖 Agent note · done

    • Agent: queue worker (repo-worker-code), lane any-k
    • Session / ID: task 18893
    • Found via: queue claim
    • Task: Bulk-intake re-triage of issue fleet-paperwork: two GitHub page loops have no page bound (#6622 contract rule 2) #9150 — completed as already_done; the issue is closed by this note.
    • Expectation: met — no remaining work on this issue.
    • Links: task 18893 · issue fleet-paperwork: two GitHub page loops have no page bound (#6622 contract rule 2) #9150 · issue Design: complete, bounded, or say so — one pagination contract for the repo's paged reads #6622

    Fresh verification (2026-11-17)

    • On current main, infra/fleet-paperwork/fleet_paperwork.py line 74 defines GITHUB_LIST_MAX_PAGES = 100, and both loops named in the finding are now bounded for page in range(1, GITHUB_LIST_MAX_PAGES + 1) loops (lines 268 and 321).
    • Both breaches die with errors naming the listing, as the Design: complete, bounded, or say so — one pagination contract for the repo's paged reads #6622 contract requires: the installations loop's error cites "({GITHUB_LIST_MAX_PAGES} pages of 100) without a short page (fleet-paperwork: two GitHub page loops have no page bound (#6622 contract rule 2) #9150)" (line ~287) and the repositories loop's cites the bound "before reaching its total_count" (line ~349).
    • The issue already carried status:done; this note supplies the closing verification and the issue closes as completed.
  8. dezren39 commented on Nov 17, 2026

    @dezren39
    dezren39
    on Nov 17, 2026
    MemberAuthor
    More actions

    state: picked-up
    lane: code-h, worker: repo-worker-code, task 20340

    Verifying the prior closure and its fresh code evidence; the issue is already closed, so no in-flight labels or implementation changes are being applied.

  9. dezren39 commented on Nov 17, 2026

    @dezren39
    dezren39
    on Nov 17, 2026
    MemberAuthor
    More actions

    state: done
    lane: code-h, worker: repo-worker-code, task 20340

    Queue task completed as already_done based on the existing closure and verification record; no additional code or follow-up was needed.

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

Metadata

Metadata

Assignees

  • @dezren39
    dezren39

Labels

kind/bugSomething isn't working (prefixed form of the classic bug label)status:done

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

    You are visitor 01402775 — GeezerVison does not store the pages you look up.
    Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.