forgejo/services
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
..
actions Fix content holes in Actions task logs file (#25560) (#25566) 2023-06-28 23:39:23 +00:00
agit
asymkey
attachment
auth Change default email domain for LDAP users (#25425) (#25434) 2023-06-22 10:53:15 +00:00
automerge
context
convert Fix Permission in API returned repository struct (#25388) (#25441) 2023-06-22 17:01:42 +02:00
cron
externalaccount
forms
gitdiff
issue
lfs Move some regexp out of functions (#25430) (#25445) 2023-06-22 16:01:54 +00:00
mailer
markup
migrations
mirror
org
packages
pull
release
repository Add Adopt repository event and handler (#25497) (#25518) 2023-06-26 20:09:07 +00:00
task
user
webhook Fix Permission in API returned repository struct (#25388) (#25441) 2023-06-22 17:01:42 +02:00
wiki