Template
1
0
Fork 0
mirror of https://codeberg.org/forgejo/forgejo synced 2024-11-25 19:26:09 +01:00
forgejo/modules/actions
Jason Song 6daf21c9b7
Fix content holes in Actions task logs file (#25560)
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: Giteabot <teabot@gitea.io>
2023-06-28 19:07:29 +02:00
..
github.go Support pull_request_target event (#25229) 2023-06-26 14:33:18 +08:00
github_test.go Support pull_request_target event (#25229) 2023-06-26 14:33:18 +08:00
log.go Fix content holes in Actions task logs file (#25560) 2023-06-28 19:07:29 +02: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 Support pull_request_target event (#25229) 2023-06-26 14:33:18 +08:00
workflows_test.go Support pull_request_target event (#25229) 2023-06-26 14:33:18 +08:00