Skip to content

unit-test job can fail with "Unable to download artifact(s): Artifact not found for name: compile-cache-{PRNUM}" #3297

@trentm

Description

@trentm

I have a unit-test job can failing with

Unable to download artifact(s): Artifact not found for name: compile-cache-${PRNUM}

For example https://github.com/open-telemetry/opentelemetry-js-contrib/actions/runs/20117049153/job/57946234366?pr=3288 is failing for me:

- unit-test (22)
  - Download Build Artifacts

Run actions/download-artifact@v5
  with:
    name: compile-cache-1928
    path: .nx
    merge-multiple: false
    repository: open-telemetry/opentelemetry-js-contrib
    run-id: 20117049153
...

Downloading single artifact
Error: Unable to download artifact(s): Artifact not found for name: compile-cache-1928
        Please ensure that your artifact is not expired and the artifact was uploaded using a compatible version of toolkit/upload-artifact.
        For more information, visit the GitHub Artifacts FAQ: https://github.com/actions/toolkit/blob/main/packages/artifact/docs/faq.md

This is for PR #3288
I had been getting a number of flaky test failures, so the workflow run above was the third run of "Re-run failed jobs".

My guess is that the compile-cache-1928 artifact from the "compile" job of this workflow has now timed out / gone stale (the original run was 2d ago), so now it is impossible to get a step re-run to work.

This is not a critical bug. If my guess is correct, this is only something that will happen when re-running jobs on a workflow run from over 2d earlier.

My guess is that doing a full re-run of all jobs will workaround the issue.

/cc @david-luna

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions