1
0
mirror of https://github.com/go-gitea/gitea.git synced 2024-12-16 18:29:18 +08:00
gitea/models/dbfs
Jason Song 6daf21c9b7
Fix content holes in Actions task logs file ()
Fix .

Bugfixes:
- When stopping the zombie or endless tasks, set `LogInStorage` to true
after transferring the file to storage. It was missing, it could write
to a nonexistent file in DBFS because `LogInStorage` was false.
- Always update `ActionTask.Updated` when there's a new state reported
by the runner, even if there's no change. This is to avoid the task
being judged as a zombie task.

Enhancement:
- Support `Stat()` for DBFS file.
- `WriteLogs` refuses to write if it could result in content holes.

---------

Co-authored-by: Giteabot <teabot@gitea.io>
2023-06-28 19:07:29 +02:00
..
dbfile.go Fix content holes in Actions task logs file () 2023-06-28 19:07:29 +02:00
dbfs_test.go Fix content holes in Actions task logs file () 2023-06-28 19:07:29 +02:00
dbfs.go Fix content holes in Actions task logs file () 2023-06-28 19:07:29 +02:00
main_test.go Merge setting.InitXXX into one function with options () 2023-05-04 11:55:35 +08:00