forgejo/release-notes/8.0.0/fix
Rowan Bohde 4afbfd3946
fix: allow actions artifacts storage migration to complete succesfully (#31251)
Change the copy to use `ActionsArtifact.StoragePath` instead of the
`ArtifactPath`. Skip artifacts that are expired, and don't error if the
file to copy does not exist.

---

When trying to migrate actions artifact storage from local to MinIO, we
encountered errors that prevented the process from completing
successfully:

* The migration tries to copy the files using the per-run
`ArtifactPath`, instead of the unique `StoragePath`.
* Artifacts that have been marked expired and had their files deleted
would throw an error
* Artifacts that are pending, but don't have a file uploaded yet will
throw an error.

This PR addresses these cases, and allow the process to complete
successfully.

(cherry picked from commit 8de8972baf5d82ff7b58ed77d78e8e1869e64eb5)
2024-06-09 16:02:31 +02:00
..
3363.md fix(Dockerfile.rootless): revert to default path for app.ini 2024-04-26 21:30:10 +02:00
3430.md
3442.md
3729.md [skip ci] docs(release-notes): 7.0.3 2024-05-22 12:34:50 +02:00
3864.md add release-notes 2024-05-22 12:59:41 +02:00
3904.md fix(services): set SendNotificationEmailOnNewUser 2024-05-25 16:27:44 +02:00
3917.md [skip ci] docs(release): week 2024-22 cherry pick 2024-06-03 08:24:21 +02:00
3922.md Update module github.com/alecthomas/chroma/v2 to v2.14.0 (take 2) 2024-05-30 22:52:26 +02:00
3935.md migrations: Map non-existant external users to Ghost 2024-05-28 12:40:11 +02:00
3976.md fix(hook): repo admins are wrongly denied the right to force merge 2024-06-02 21:16:46 +02:00
4026.md test(oauth): coverage for the redirection of a denied grant 2024-06-05 12:51:44 +02:00
4085.md fix: allow actions artifacts storage migration to complete succesfully (#31251) 2024-06-09 16:02:31 +02:00