-
-
Notifications
You must be signed in to change notification settings - Fork 6.2k
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
runcould include multiplejobs, so you need to delete multiple rows ofActionRunJob. - When a
jobhas been picked up by a runner to execute, there will be atask, however, ajobcould be rerun many times, so you need to delete multiple rows ofActionTask. - Every
taskcould include- multiple
steps, soActionTaskStep - multiple
outputs, soActionTaskOutput
- multiple
- The log of the
taskis stored as a file (in DBFS or storage), so you need to detele it according toActionTask.LogFilenameorActionTask.LogInStorage. - In addition, there may be some
artifactsuploaded to therun, so you need to delete multiple rows ofActionArtifact.- The files of
artifactsare stored in storage, so you need to remove them.
- The files of
- Finally, update
NumActionRunsandNumClosedActionRunsofRepository.
wxiaoguang, Zettat123, yp05327, wenerme, playlogo and 32 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.