forgejo/modules/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
..
github.go Support triggering workflows by wiki related events (#24119) 2023-04-17 13:49:47 -04:00
github_test.go Improve workflow event triggers (#23613) 2023-03-23 12:04:15 +08:00
log.go Fix content holes in Actions task logs file (#25560) (#25566) 2023-06-28 23:39:23 +00:00
task_state.go Implement actions (#21937) 2023-01-31 09:45:19 +08:00
task_state_test.go Implement actions (#21937) 2023-01-31 09:45:19 +08:00
workflows.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
workflows_test.go Support triggering workflows by wiki related events (#24119) 2023-04-17 13:49:47 -04:00