-
-
Notifications
You must be signed in to change notification settings - Fork 5.9k
Open
Labels
topic/gitea-actionsrelated to the actions of Gitearelated to the actions of Giteatype/featureCompletely new functionality. Can only be merged if feature freeze is not active.Completely new functionality. Can only be merged if feature freeze is not active.type/proposalThe new feature has not been accepted yet but needs to be discussed first.The new feature has not been accepted yet but needs to be discussed first.
Description
Feature Description
Jobs that have been done for too long no longer need to retain data/log, so it is necessary to regularly clean them up.
- Log file: Delete Actions logs older than 1 year by default #31735
- Outputs.
- Artifacts: Artifacts retention and auto clean up #26131
- Old raws in job/run/task tables
- And more?
Details
#26275 (comment) : Some logic which could help:
- What you want delete is a
run
, so you need to delete a row ofActionRun
. - A
run
could include multiplejobs
, so you need to delete multiple rows ofActionRunJob
. - When a
job
has been picked up by a runner to execute, there will be atask
, however, ajob
could be rerun many times, so you need to delete multiple rows ofActionTask
. - Every
task
could include- multiple
steps
, soActionTaskStep
- multiple
outputs
, soActionTaskOutput
- multiple
- The log of the
task
is stored as a file (in DBFS or storage), so you need to detele it according toActionTask.LogFilename
orActionTask.LogInStorage
. - In addition, there may be some
artifacts
uploaded to therun
, so you need to delete multiple rows ofActionArtifact
.- The files of
artifacts
are stored in storage, so you need to remove them.
- The files of
- Finally, update
NumActionRuns
andNumClosedActionRuns
ofRepository
.
wxiaoguang, Zettat123, yp05327, wenerme, playlogo and 30 more
Metadata
Metadata
Assignees
Labels
topic/gitea-actionsrelated to the actions of Gitearelated to the actions of Giteatype/featureCompletely new functionality. Can only be merged if feature freeze is not active.Completely new functionality. Can only be merged if feature freeze is not active.type/proposalThe new feature has not been accepted yet but needs to be discussed first.The new feature has not been accepted yet but needs to be discussed first.