Skip to content

[bug] Newly uploaded artifacts intermittently disappear between discovery and download #505

Backlog

Description

@neilime

What happened?

A completed upload can briefly be absent from the artifact service when download-artifact looks it up. A successful lookup also does not guarantee that the following download request can find the same ID. These paths currently fail immediately rather than retrying artifact availability.

Two public examples on November 24, 2026:

  1. An artifact is visible immediately before download, then disappears from the next listing:

    15:57:21.677Z Artifacts are available: 14937324621
    15:57:21.823Z Downloading artifacts by ID
    15:57:22.088Z Found 0 artifact(s)
    15:57:22.090Z Unable to download artifact(s): None of the provided artifact IDs were found
    
  2. The action lists the artifact, but its download lookup cannot find it: artifact 14938649669 was finalized at 16:00:55.709Z, selected for download at 16:00:56.634Z, then failed at 16:00:56.936Z with No artifacts found for ID: 14938649669.

Both uploads and downloads are in the same job and workflow run. The artifacts are not expired. Adding a separate readiness check did not prevent the first failure.

What did you expect to happen?

Brief artifact-availability failures should receive bounded retries at discovery and download time. Invalid inputs, authorization failures, extraction errors and digest mismatches should retain their existing failure behavior. Persistently missing artifacts should still fail after retries.

How can we reproduce it?

The service failure is intermittent, so this workflow may succeed on any individual run. The linked logs demonstrate the failure; deterministic tests can model an empty-then-populated listing and an ArtifactNotFoundError from download after successful discovery.

name: Artifact availability reproduction
on: workflow_dispatch
permissions:
  contents: read
jobs:
  reproduce:
    runs-on: ubuntu-latest
    steps:
      - run: printf '%s' 'artifact availability' > source.txt
      - id: upload
        uses: actions/upload-artifact@cf430e030ddbb5b0abf93d22962f4752f3646cd9 # v7.0.2
        with:
          name: availability-${{ github.run_id }}-${{ github.run_attempt }}
          path: source.txt
          if-no-files-found: error
      - uses: actions/download-artifact@9000827ccba6bdab643e8b6fd33ac0654aef8333 # v8.0.2
        with:
          artifact-ids: ${{ steps.upload.outputs.artifact-id }}
          path: downloaded
      - run: cmp source.txt downloaded/source.txt

Anything else we need to know?

I checked existing reports before filing. #63 concerns HTTP 404s from the legacy file-container download API. #491 concerns overwritten/same-named artifact selection; these examples use newly uploaded IDs without overwrites. #281 was closed after a missing job dependency was found; these failures occur between sequential steps in one job. Related Pages discovery report: actions/deploy-pages#451.

The evidence establishes inconsistent artifact visibility between requests. It does not establish which server-side change caused it.

What version of the action are you using?

actions/download-artifact@v8.0.2 with actions/upload-artifact@v7.0.2.

What are your runner environments?

GitHub-hosted Linux runners (ubuntu-latest).

Are you on GitHub Enterprise Server? If so, what version?

No, GitHub.com.

Activity

  1. tucker-pw commented on Nov 25, 2026

    @tucker-pw

    Confirming this on a different runner type, with a third variant of the failure.

    Environment

    • GitHub.com, with actions/upload-artifact@v6 and actions/download-artifact@v7.
    • Same job, sequential steps: one composite step uploads, a later step downloads by name: (no artifact-ids).
    • The artifact is about 300 MB, with compression-level: 0 and retention-days: 1.
    • We have run this pattern for nearly 2 years without issue, on both GitHub-hosted and self-hosted runners. The failure below is on a self-hosted (ephemeral, one per job) runner.

    Failure (2026-11-25, UTC)

    00:23:14.538Z Artifact <name>.zip successfully finalized. Artifact ID 14977574754
    00:23:14.538Z Artifact <name> has been successfully uploaded! Final size is 306005142 bytes.
    00:23:14.754Z Downloading single artifact
    00:23:14.914Z ##[error]Unable to download artifact(s): Artifact not found for name: <name>
    

    The download lookup fails about 0.2 s after the upload is finalized.

    Frequency: about one in three runs of this workflow has failed this way since roughly 2026-11-20. Failures and successes alternate on the same branch. The workflow and the action versions had been unchanged for about 7 months before that.

    The upload did persist: a final cleanup job in the same run deletes the artifact once the run completes, since the minimum retention is 1 day and we don't need it kept. That job found and deleted the artifact seconds after the failed download. So the artifact existed. The lookup returned not-found.

    This is the named-lookup path (Artifact not found for name). The reproduction in the issue uses artifact IDs. So the availability gap is not specific to the ID path. It also shows up on v6/v7, not only v7.0.2/v8.0.2. It also affects self-hosted runners, not only ubuntu-latest.

    PR #506 (retry with backoff) would cover this path.

  2. m1m0sin commented on Nov 25, 2026

    @m1m0sin

    I can confirm that we have been experiencing the same intermittent issue across multiple workflows running on GitHub-hosted runners in a GitHub Enterprise Cloud environment.

    These workflows were previously working reliably, and the issue started occurring without any changes to their configuration.

    Artifacts were successfully uploaded and assigned valid artifact IDs, but subsequent executions of actions/download-artifact@v8 intermittently failed with the following error:

    
    Unable to download artifact(s): No artifacts found for ID: ...
    
    

    Working workaround

    We were able to overcome this issue by combining two changes:

    1. Introducing a wait-artifact action immediately before actions/download-artifact to wait for artifact availability.
    2. Explicitly providing the github-token input to actions/download-artifact to force the use of the GitHub REST API instead of the default internal artifact service API.
    
    - name: Download artifact
      uses: actions/download-artifact@v8
      with:
        name: artifact-name
        github-token: ${{ github.token }}
    
    

    Both changes were necessary for the workaround to be effective in our environment.

    Since implementing this combination, we have not observed any further occurrences of the original download failures.

    It is worth noting that:

    • All affected workflows run on GitHub-hosted runners.
    • Artifacts are transferred between different jobs with correctly configured dependencies through needs.
    • Artifacts are successfully uploaded before the dependent jobs attempt to download them.
    • The failures occurred intermittently across multiple workflows.

    These observations suggest a potential transient artifact availability or eventual consistency issue, possibly involving differences between the internal artifact service API and the GitHub REST API. However, we cannot confirm the underlying root cause.

    While this workaround has been effective in our environment, native retry handling with exponential backoff, as proposed in #506, would be preferable to introducing additional actions and configuration across multiple workflows.

    Hopefully, these findings help with the investigation and resolution of this issue.

  3. Jiri-Stary commented on Nov 26, 2026

    @Jiri-Stary

    Confirming on GitHub.com with GitHub-hosted Linux runners (larger runners), actions/upload-artifact@v7.0.2 and actions/download-artifact@v8.0.2, since 2026-11-24. The workflows had been unchanged for weeks before that. Two observations that may help, plus one gap in #506.

    1. By name, same job, 0.9 s after the upload was finalized

    14:28:41.799Z Artifact scan-results_(586a01) successfully finalized. Artifact ID 15031473319
    14:28:42.711Z ##[error]Unable to download artifact(s): Artifact not found for name: scan-results_(586a01)
    

    2. The listing itself lags, not only the download lookup

    The same job then uploaded three more artifacts and listed them with actions/upload-artifact/merge@v7.0.2 (pattern summary-*_(586a01)). The listing returned six artifacts of the run, but none of the three that had been finalized 0.4 to 2.8 s earlier:

    14:28:46.476Z Artifact summary-goldenfrog_(586a01) successfully finalized. Artifact ID 15032522287
    14:28:47.298Z Artifact summary-checks_(586a01) successfully finalized. Artifact ID 15031718301
    14:28:48.819Z Artifact summary-reports-tools_(586a01) successfully finalized. Artifact ID 15031773133
    14:28:49.227Z Found 6 artifact(s)
    14:28:49.228Z ##[error]No artifacts found matching pattern 'summary-*_(586a01)'
    

    We also see No artifacts found for ID: ... on downloads by artifact-ids, and the same failures between jobs (a job downloading what a needs job uploaded), not only between steps of one job.

    3. Pattern downloads are not covered by #506

    #506 keeps the empty result of pattern discovery as is. When the lag hits a pattern download, it does not fail. It logs Total of 0 artifact(s) downloaded and succeeds, so the next steps silently work on nothing. In our case a reporting job that downloads pattern: scan-results_* would upload an empty report.

    Would an opt-in input be acceptable to cover it, for example fail-if-no-artifacts: true or a minimum count? It would give pattern discovery an expected count, so it could share the retries of #506. Without it, callers have to check the download directory themselves.

    Our workaround, in case it helps others: we stopped listing artifacts that the same job uploaded, and read those files from disk instead. Downloads between jobs go through a wrapper that tries up to three times, 10 and 30 seconds apart. An attempt counts only when the step succeeded and at least one file arrived.

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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions