You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Investigate first-page 404 from the workflow run jobs API for not-started runs #9124
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).
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:
The write-up mentions forge.ErrJobsListingNotFoundFirstPage and driver logic that distinguishes first-page from later-page 404s. Neither is on main at the current commit. The merged test(#8123): retry transient 404 in playback dispatch check #8124 only adds a forge.IsNotFound retry in the playback step. If this work lives on an unmerged branch, it would help to link it.
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.
Activity
fullsend-ai-triage commentedon Nov 5, 2026
🤖 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
fullsend-ai-triage commentedon Nov 5, 2026
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:
forge.ErrJobsListingNotFoundFirstPageand driver logic that distinguishes first-page from later-page 404s. Neither is onmainat the current commit. The merged test(#8123): retry transient 404 in playback dispatch check #8124 only adds aforge.IsNotFoundretry in the playback step. If this work lives on an unmerged branch, it would help to link it.Once a captured example is available, this can be re-triaged.
refactor(forge): name the first-page jobs 404 for its response shape
fullsend-ai-triage commentedon Nov 5, 2026
🤖 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
fullsend-ai-triage commentedon Nov 5, 2026
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}/jobsresponse, with the run ID, the timestamp, the run's status at that moment (queued, waiting on environment approval, or in progress), and theX-GitHub-Request-Idresponse 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
ErrJobsListingNotFoundFirstPagesentinel mentioned in the issue is still not onmain. Once a captured example is attached, this can be re-triaged.ci(#9128): harden behaviour-test dispatch and jobs-listing reads
lazka commentedon Nov 15, 2026
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...