forgejo/services/actions
Giteabot 8981f6d0fc
Fix content holes in Actions task logs file (#25560) (#25566)
Backport #25560 by @wolfogre

Fix #25451.

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: Jason Song <i@wolfogre.com>
2023-06-28 23:39:23 +00:00
..
clear_tasks.go Fix content holes in Actions task logs file (#25560) (#25566) 2023-06-28 23:39:23 +00:00
commit_status.go Handle canceled workflow as a warning instead of a fail (#24282) 2023-04-23 14:41:55 -04:00
init.go Improve queue and logger context (#24924) 2023-05-26 07:31:55 +00:00
job_emitter.go Rewrite queue (#24505) 2023-05-08 19:49:59 +08:00
job_emitter_test.go
notifier.go Fix Permission in API returned repository struct (#25388) (#25441) 2023-06-22 17:01:42 +02:00
notifier_helper.go Fix Permission in API returned repository struct (#25388) (#25441) 2023-06-22 17:01:42 +02:00