diff options
author | Jason Song <i@wolfogre.com> | 2023-06-29 01:07:29 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-06-28 19:07:29 +0200 |
commit | 6daf21c9b722e31ea5e3b1ec48caa69327580abd (patch) | |
tree | d689df26a38ed3a6124d475613c4f899127aa7bf /modules/setting/oauth2.go | |
parent | b6693a2c9a6010463950bbd89a2bfee88bde5e5f (diff) | |
download | gitea-6daf21c9b722e31ea5e3b1ec48caa69327580abd.tar.gz gitea-6daf21c9b722e31ea5e3b1ec48caa69327580abd.zip |
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>
Diffstat (limited to 'modules/setting/oauth2.go')
0 files changed, 0 insertions, 0 deletions