Skip to content

ci(e2e): retry transient GitHub reads in native PR gate observer #7207

Closed

Description

@apurvvkumaria

Summary

The native E2E / PR Gate required-check observer can terminate an otherwise valid PR with a bare fetch failed after a single transient GitHub API read.

Evidence

PR: #7015
Exact PR head: e0100d4448c5537a53d8157df831cd67bf9e3e9d
Exact base: 3c4ea5a1e3c37ae6688399b823258e1c31790fd2

In job 88213056487, the observer successfully checked out the trusted base and waited for coordination. Its polling process later exited with only:

fetch failed
Process completed with exit code 1

The failure came from the observer's GitHub-read path, not from a product assertion or E2E result. The lack of bounded retry and operation context leaves the required check terminally failed and makes the failure difficult to diagnose.

Expected behavior

Transient GitHub read failures should receive a small bounded retry with backoff. Every retry must retain the exact PR/head/base identity and the observer must continue to fail closed if identity or trusted coordination state changes.

Acceptance criteria

  • Retry only transient GitHub transport and retryable HTTP failures.
  • Use a strict attempt limit and bounded exponential backoff with jitter.
  • Do not retry authorization, schema, identity, evidence, or terminal coordination failures.
  • Revalidate PR number, head SHA, base SHA, trusted app/workflow identity, and selected coordination check after each retry.
  • Emit a sanitized operation name, attempt number, and HTTP/error class without response bodies, tokens, headers, or environment values.
  • Preserve the original error as the final cause when retries are exhausted.
  • Add deterministic tests for a transient failure followed by success, retry exhaustion, non-retryable responses, and identity change during retry.
  • Cross-link the behavior with the E2E runner reliability work in ci(e2e): improve reliability and observability of long-running runners #7140.

Activity

  1. added
    area: ci
    area: e2e
    on Jul 19, 2026
  2. kagura-chen commented on Jul 20, 2026

    @kagura-chen
    Contributor

    I'd like to work on this. The fix scope seems clear: add a bounded retry with exponential backoff + jitter to the observer's GitHub-read path in tools/e2e/pr-e2e-required.mts, targeting only transient transport/HTTP failures (network errors, 5xx, 429) while preserving fail-closed behavior for identity/authorization/schema errors.

  3. added a commit that references this issue on Jul 20, 2026
    9945d34
  4. added a commit that references this issue on Jul 26, 2026
    bce40a3
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

area: ciarea: e2e

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions