feat: add yaml-driven gc cleanup scopes (#988)

Co-authored-by: Codex <codex@noreply.local>
This commit is contained in:
Lyon
2026-06-26 14:46:31 +08:00
committed by GitHub
parent 49de49a470
commit e51a2e8edf
5 changed files with 960 additions and 113 deletions
+103
View File
@@ -12,3 +12,106 @@ github:
initialDelayMs: 1000
maxDelayMs: 16000
factor: 2
gc:
targetUsePercent: null
fileLogs:
enabled: true
keepDays: 7
maxBytes: 50MiB
tailBytes: 20MiB
dockerLogs:
enabled: true
maxBytes: 50MiB
journal:
enabled: true
targetBytes: 512MiB
buildCache:
enabled: true
until: 24h
all: false
tmp:
enabled: true
minAgeHours: 24
includeStale: false
browserCache:
enabled: false
toolCaches:
enabled: false
vscode:
staleServers:
enabled: false
keepServers: 2
staleExtensions:
enabled: false
keepVersions: 1
cachedVsix:
enabled: false
keepDays: 7
baiduStaging:
enabled: false
keepDays: 10
stateArtifacts:
enabled: false
keepDays: 14
fileRoots:
e2e: .state/e2e
validation: .state/validation
jobs: .state/jobs
codex-queue-output-archive: .state/codex-queue/output-archive
dirRoots:
deploy-exports: .state/deploy/exports
deploy-resolve: .state/deploy/resolve
stateStaleScratch:
enabled: false
keepHours: 24
fileRoots:
playwright-cli-screenshots: .state/playwright-cli/screenshots
playwright-cli-sessions: .state/playwright-cli/sessions
perf: .state/perf
tmp: .state/tmp
web-observe: .state/web-observe
dirRoots:
hwlab-cd: .state/hwlab-cd
codex-queue-stats-verify: .state/codex-queue-stats-verify
codex-queue-perf: .state/codex-queue-perf
tmp: .state/tmp
codexSessions:
enabled: false
keepHours: 72
root: /root/.codex/sessions
mergedWorktrees:
enabled: false
keepHours: 24
mainRoot: /root/unidesk
root: /root/unidesk/.worktree
baseRef: origin/master
scanBudgetMs: 20000
cherryCheckTimeoutMs: 1000
estimateSizeInPlan: false
vpnDiagnosticLogs:
enabled: false
keepHours: 24
databaseSummary:
enabled: true
output:
limit: 50
resultLimit: 50
full: false
policyTimer:
journald:
systemMaxUse: 512MiB
runtimeMaxUse: 128MiB
maxRetentionSec: 7day
daily:
buildCacheUntil: 24h
vpnDiagnosticLogs:
enabled: true
keepHours: 24
stateArtifacts:
enabled: true
keepDays: 14
vscodeCachedVsix:
enabled: true
keepDays: 7
limit: 5000
resultLimit: 25