Skip to content

fix(github): bound the GitHub session read at 60 seconds #4626

Closed

Description

@dan-petty

Problem or Motivation

The GitHub session reads with a 3,600 s bound: DEFAULT_HTTP_TIMEOUT_SECONDS (src/devops_cli/config/defaults.py:358) goes through src/devops_cli/github/session_transport.py:196 and src/devops_cli/http/client.py:116. That bound is equal to the 3,600 s unit deadline of #4573, so the unit deadline can stop the pod before the read fails. GitHub itself ends a REST request after 10 s (GitHub REST troubleshooting page, API version 2026-03-10).

The owner rule of 2026-11-11 says that each inner timeout is shorter than the call around it.

Proposed Solution & Architectural Design

  • Add a new default constant for the read bound of the gidgethub session: 60 s. Only that session uses it. Downloads keep their bound.
  • Add a test of the timeout chain: Valkey command 2 s < GitHub read 60 s < reference step 120 s < unit deadline 3,600 s.

Target Subsystem

SDLC, Git & PR Governance (src/devops_cli/github/, src/devops_cli/config/defaults.py).

Existing Tool Considered

The httpx timeout of the existing client. No new tool. Cost: about 30,000 tokens and 1 hour to build.

Acceptance Criteria

  • A test reads the session client and finds a read bound of 60 s.
  • A test with a silent loopback server and a short override gets the read timeout error (no wall-clock bound).
  • A test shows that the download timeout does not change.
  • The chain test fails when an inner bound is not shorter than its outer bound.

Dependencies

None. Part of the project brain plan #4624.

Source: #4624

Activity

  1. added
    source/agent
    on Nov 11, 2026
  2. added
    type/bug
    scope/github
    status/new
    value/medium
    effort/low
    on Nov 11, 2026
  3. dan-petty commented on Nov 11, 2026

    @dan-petty
    OwnerAuthor

    Intake placed this item to the backlog: intake puts every new item in the backlog. A person plans the milestones.

    • Type: type/bug. The fix prefix of the title gives the type.
    • Scope: scope/github. The (github) scope of the title gives the scope.
    • Priority: P2-Medium. A hung read can block a pod for one hour, but GitHub itself ends requests at 10 seconds, so the practical impact is bounded.
    • Value: Medium. Prevents a single hung read from consuming the full unit deadline and stalling the pod.
    • Effort: Low. The body states about 1 hour and 30,000 tokens: one new constant plus three or four tests.
    • Related: fix(github): the session retries a read that loses its connection #3506, which asks for a different change. Both target GitHub session reads, but #3506 adds a retry for lost connections while this candidate bounds the read timeout to 60 seconds.
  4. added
    priority/p2-medium
    owner/agent
    on Nov 11, 2026
  5. removed
    status/new
    owner/agent
    on Nov 11, 2026
  6. devops-cli-service commented on Nov 11, 2026

    @devops-cli-service
    Contributor

    Live since 2026-11-11 17:36 UTC

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    effort/lowpriority/p2-mediumscope/githubsource/agenttype/bugvalue/medium

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions