Artifacts get lost, when re-running old workflows #13594

Closed
opened 2025-11-02 10:47:28 -06:00 by GiteaMirror · 1 comment
Owner

Originally created by @hakito on GitHub (Oct 14, 2024).

Description

I just tried to re-run a job that was executed 2 weeks ago. We have set ARTIFACT_RETENTION_DAYS = 7 in the actions section.

The build job actually says that artifact upload is succesful. But the next job, that tries to fetch the artifact fails:

Total number of files that will be downloaded: 540
A 500 response code has been received while attempting to download an artifact
Exponential backoff for retry #1. Waiting for 5[4](https://HIDDEN/actions/runs/860/jobs/1#jobstep-1-4)75 milliseconds before continuing the download
A 500 response code has been received while attempting to download an artifact
Exponential backoff for retry #1. Waiting for [5](https://HIDDEN/actions/runs/860/jobs/1#jobstep-1-5)482 milliseconds before continuing the download

I also tried downloading the artifact manually and get the error:

artifact not found

I also tried to delete the artifact manually in the web interface. This also returns a 200 code for the DELETE request. However the artifact does not disappear.

Here a part of the response from the artifacts GET request after the deletion attempt:

{
    "artifacts": [
        {
            "name": "Bin.Unprotected",
            "size": 80032963,
            "status": "expired"
        }
    ]
}

Gitea Version

1.22.3

Can you reproduce the bug on the Gitea demo site?

Yes

Log Gist

No response

Screenshots

No response

Git Version

No response

Operating System

No response

How are you running Gitea?

docker

Database

MySQL/MariaDB

Originally created by @hakito on GitHub (Oct 14, 2024). ### Description I just tried to re-run a job that was executed 2 weeks ago. We have set `ARTIFACT_RETENTION_DAYS = 7` in the _actions_ section. The build job actually says that artifact upload is succesful. But the next job, that tries to fetch the artifact fails: ```txt Total number of files that will be downloaded: 540 A 500 response code has been received while attempting to download an artifact Exponential backoff for retry #1. Waiting for 5[4](https://HIDDEN/actions/runs/860/jobs/1#jobstep-1-4)75 milliseconds before continuing the download A 500 response code has been received while attempting to download an artifact Exponential backoff for retry #1. Waiting for [5](https://HIDDEN/actions/runs/860/jobs/1#jobstep-1-5)482 milliseconds before continuing the download ``` I also tried downloading the artifact manually and get the error: > artifact not found I also tried to delete the artifact manually in the web interface. This also returns a 200 code for the `DELETE` request. However the artifact does not disappear. Here a part of the response from the artifacts `GET` request after the deletion attempt: ``` { "artifacts": [ { "name": "Bin.Unprotected", "size": 80032963, "status": "expired" } ] } ``` ### Gitea Version 1.22.3 ### Can you reproduce the bug on the Gitea demo site? Yes ### Log Gist _No response_ ### Screenshots _No response_ ### Git Version _No response_ ### Operating System _No response_ ### How are you running Gitea? docker ### Database MySQL/MariaDB
GiteaMirror added the topic/gitea-actionstype/bug labels 2025-11-02 10:47:28 -06:00
Author
Owner

@Zettat123 commented on GitHub (Oct 15, 2024):

We should improve the CreateArtifact function to support updating uploaded artifacts when re-running a job.

5242e520c4/models/actions/artifact.go (L57-L82)

@Zettat123 commented on GitHub (Oct 15, 2024): We should improve the `CreateArtifact` function to support updating uploaded artifacts when re-running a job. https://github.com/go-gitea/gitea/blob/5242e520c499bf72ec21a8df2dbdee825f98ed78/models/actions/artifact.go#L57-L82
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/gitea#13594