Skip to content

Investigate first-page 404 from the workflow run jobs API for not-started runs #9124

Open

Description

@dhshah13

Observation

GitHub's workflow run jobs listing endpoint has been observed to return 404 on the first page while a run has not started, then serve the listing normally once the run starts:

  • GET /repos/{owner}/{repo}/actions/runs/{run_id}/jobs

The behaviour-test driver hit this on E2E runs whose dispatched workflow was still queued or waiting on an environment approval. Retrying the listing later succeeds.

Originally this investigation also listed GitLab's pipeline jobs endpoint, but every observed failure came from GitHub Actions; the GitLab listing was included for symmetry, not from evidence. GitLab also normally creates jobs together with the pipeline, so a page-1 404 there more likely means a missing or inaccessible pipeline. This issue now tracks the GitHub behaviour only.

What is unverified

The cause has not been established. Candidates include the API not creating a jobs listing until the run starts, permissions or indexing lag, or another server-side condition. We have not observed the request IDs or GitHub status pages needed to attribute it.

History

PR #9084 briefly shipped a sentinel (ErrJobsListingNotFoundFirstPage) reporting this response shape; it was removed in that PR's reliability-slice split and the behaviour-test tolerance work moved with it. This issue remains the root-cause tracker: capture a failing request (run ID, timestamp, response headers including any request ID) and confirm with GitHub whether the listing is expected to exist before the run starts.

Related: #8142 (driver-side hardening against transient 404s in CountHarnessDispatches callers).

Activity

  1. fullsend-ai-triage commented on Nov 5, 2026

    @fullsend-ai-triage

    🤖 Finished Triage · ✅ Success · Started 1:54 PM UTC · Completed 1:56 PM UTC

    Commit: 7aedba2 · View workflow run →

    Runtime: claude · Model: sonnet → claude-sonnet-5-5 · Effort: high · Cost: $0.19

  2. added
    needs-info
    on Nov 5, 2026
  3. fullsend-ai-triage commented on Nov 5, 2026

    @fullsend-ai-triage

    Thanks for writing this up. It is clear that the jobs listing returns a first-page 404 for runs that have not started, and that you want to know whether the forge guarantees that behavior.

    The cause can't be narrowed down without a concrete failing example. Can you attach at least one captured failing request? The most useful details are the run ID (or pipeline ID for GitLab), the timestamp, the run's status at that moment (queued, waiting on environment approval, or in progress), and any request ID in the response headers (for GitHub, X-GitHub-Request-Id). It would also help to know whether the same run URL returned 200 on a retry, and how long afterward.

    Two notes for maintainers:

    Once a captured example is available, this can be re-triaged.

  4. fullsend-ai-triage commented on Nov 5, 2026

    @fullsend-ai-triage

    🤖 Finished Triage · ✅ Success · Started 4:34 PM UTC · Completed 4:36 PM UTC

    Commit: 7d0eb20 · View workflow run →

    Runtime: claude · Model: sonnet → claude-sonnet-5-5 · Effort: high · Cost: $0.15

  5. added
    needs-info
    and removed
    needs-info
    on Nov 5, 2026
  6. fullsend-ai-triage commented on Nov 5, 2026

    @fullsend-ai-triage

    Following up on the earlier request: this issue still needs a concrete captured example before the cause can be investigated.

    Can you attach at least one failing GET /repos/{owner}/{repo}/actions/runs/{run_id}/jobs response, with the run ID, the timestamp, the run's status at that moment (queued, waiting on environment approval, or in progress), and the X-GitHub-Request-Id response header? If you also know whether a retry on the same run returned 200, and roughly how long afterward, that would help separate a "listing does not exist until the run starts" explanation from indexing lag or a permissions problem. Since the issue now tracks GitHub only, the GitLab pipeline ID mentioned in the earlier request is no longer needed.

    For maintainers: no open PR addresses this issue. Related open work is #8142 (driver-side hardening against transient 404s) and #9128 (the reliability slice split from #9084). The ErrJobsListingNotFoundFirstPage sentinel mentioned in the issue is still not on main. Once a captured example is attached, this can be re-triaged.

  7. added a commit that references this issue on Nov 6, 2026
  8. lazka commented on Nov 15, 2026

    @lazka

    drive-by-comment: I'm also hitting this and have filed it upstream: https://github.com/orgs/community/discussions/213196

    not sure if a human cares about such reports though...

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

    needs-info

    Type

    No type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions