forgejo/models/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
..
artifact.go
run.go Use the type RefName for all the needed places and fix pull mirror sync bugs (#24634) 2023-05-26 01:04:48 +00:00
run_job.go
run_job_list.go
run_list.go
runner.go Add user level action runners (#24995) 2023-05-31 09:39:54 +08:00
runner_list.go
runner_token.go
status.go
task.go Fix content holes in Actions task logs file (#25560) (#25566) 2023-06-28 23:39:23 +00:00
task_list.go
task_output.go
task_step.go
utils.go
utils_test.go