1
0
mirror of https://github.com/go-gitea/gitea.git synced 2024-12-04 14:46:57 -05:00
gitea/models/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
..
artifact.go Implement actions artifacts (#22738) 2023-05-19 21:37:57 +08:00
run_job_list.go
run_job.go
run_list.go Add actor and status dropdowns to run list (#25118) 2023-06-21 04:25:14 +00:00
run.go Support pull_request_target event (#25229) 2023-06-26 14:33:18 +08:00
runner_list.go
runner_token.go
runner.go Support changing labels of Actions runner without re-registration (#24806) 2023-06-13 22:28:31 +08:00
status.go Require approval to run actions for fork pull request (#22803) 2023-02-24 15:58:49 +08:00
task_list.go
task_output.go Support upload outputs and use needs context on Actions (#24230) 2023-04-22 16:12:41 -04:00
task_step.go
task.go Fix content holes in Actions task logs file (#25560) 2023-06-28 19:07:29 +02:00
utils_test.go
utils.go
variable.go Support configuration variables on Gitea Actions (#24724) 2023-06-20 22:54:15 +00:00