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
we have a workflow that runs integration tests on PRs. at the end of the test run, we gather logfiles from the tests and upload them using upload-artifact.
these integration tests sometimes have intermittent failures, which our engineers try to work around by re-running the workflow.
when the workflow is retried, the artifacts from the first attempt are no longer accessible. this hinders efforts at debugging the root cause of the intermittent test failures.
this is from using the minimal repro workflow below, which simulates a failing test with some trivial log output, then uploads those logs.
after attempt 1 - the artifact download link is visible, as expected:
I select "re-run jobs -> re-run all jobs", producing attempt 2. here, the artifact download link is also visible, as expected:
however, if I pick attempt 1 from the drop-down, the artifact download link no longer appears:
and this seems to not just be a UI issue - here are the logs from upload-artifact from attempt 1:
Run actions/upload-artifact@v4
With the provided path, there will be 1 file uploaded
Artifact name is valid!
Root directory input is valid!
Beginning upload of artifact content to blob storage
Uploaded bytes 198
Finished uploading artifact content to blob storage!
SHA256 hash of uploaded artifact zip is ded999c92c4c36cca01ed60f4b959a90b9272e40192e1644005ee438c3a2f2ca
Finalizing artifact upload
Artifact logs-9911783285-1.zip successfully finalized. Artifact ID 1696153380
Artifact logs-9911783285-1 has been successfully uploaded! Final size is 198 bytes. Artifact ID is 1696153380
Artifact download URL: https://github.com/edgedb/nebula/actions/runs/9911783285/artifacts/1696153380
the artifact download URL works before I run attempt 2, but afterwards gives me a 404 error.
the same logs from attempt 2, this artifact download link works (at least, until/unless I run attempt 3):
With the provided path, there will be 1 file uploaded
Artifact name is valid!
Root directory input is valid!
Beginning upload of artifact content to blob storage
Uploaded bytes 198
Finished uploading artifact content to blob storage!
SHA256 hash of uploaded artifact zip is d3892c77d66fadfa1cc6934cffa240ff52f14c3cb0fc7a018bb9639733655215
Finalizing artifact upload
Artifact logs-9911783285-2.zip successfully finalized. Artifact ID 1696165056
Artifact logs-9911783285-2 has been successfully uploaded! Final size is 198 bytes. Artifact ID is 1696165056
Artifact download URL: https://github.com/edgedb/nebula/actions/runs/9911783285/artifacts/1696165056
What did you expect to happen?
I'm giving a unique name to the upload-artifact step, which includes the run attempt in the name: logs-${{ github.run_id }}-${{ github.run_attempt }}
because of this, I expect subsequent run attempts to not overwrite artifacts from previous attempts.
What happened?
we have a workflow that runs integration tests on PRs. at the end of the test run, we gather logfiles from the tests and upload them using
upload-artifact
.these integration tests sometimes have intermittent failures, which our engineers try to work around by re-running the workflow.
when the workflow is retried, the artifacts from the first attempt are no longer accessible. this hinders efforts at debugging the root cause of the intermittent test failures.
this is from using the minimal repro workflow below, which simulates a failing test with some trivial log output, then uploads those logs.
after attempt 1 - the artifact download link is visible, as expected:
I select "re-run jobs -> re-run all jobs", producing attempt 2. here, the artifact download link is also visible, as expected:
however, if I pick attempt 1 from the drop-down, the artifact download link no longer appears:
and this seems to not just be a UI issue - here are the logs from
upload-artifact
from attempt 1:the artifact download URL works before I run attempt 2, but afterwards gives me a 404 error.
the same logs from attempt 2, this artifact download link works (at least, until/unless I run attempt 3):
What did you expect to happen?
I'm giving a unique
name
to theupload-artifact
step, which includes the run attempt in the name:logs-${{ github.run_id }}-${{ github.run_attempt }}
because of this, I expect subsequent run attempts to not overwrite artifacts from previous attempts.
How can we reproduce it?
Anything else we need to know?
No response
What version of the action are you using?
v4
What are your runner environments?
self-hosted, linux
Are you on GitHub Enterprise Server? If so, what version?
No response
The text was updated successfully, but these errors were encountered: