Repository navigation
fix(sandbox): bound logs and repair persistent storage cleanup - #4182
Merged
Merged
Conversation
yannickmonney
force-pushed
the
fix/sandbox-disk-growth
branch
from
October 3, 2026 22:28
167f985 to
94332bc
Compare
Contributor
Author
|
Post-merge independent review of #4182 at
MEDIUM: a failed fresh create can discard a preserved workspace that lives under a moved session root. Verified from source.
LOW
INFO
Verified correct
Routing: the MEDIUM and LOWs go to the manager as follow-ups. Root decides whether the MEDIUM's precondition, an old session root still visible to the spawner, exists in any deployment. |
This was referenced Oct 4, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Sandbox storage could keep growing after cache expiry, session cleanup, and long-running nested containers. This change repairs three independent causes:
10mwith one retained file, and send Docker/redsocks diagnostics through the outer container logger instead of unbounded files.Includes regression tests, operator documentation, and the automated coverage register. No database or public API changes.
Validation:
--timeout 15000on the local host).Rollout: new nested containers receive the log defaults; existing nested logging configurations and old log files are unchanged. Mirror entries whose expiry already failed are not rescheduled by registry v2; existing stopped-cache retention and disk-pressure cleanup reclaim those historical cache volumes. Active workspaces and package caches retain their existing policies.
CI at
94332bcfb79df91265006b0f63091a1f9eeb6838: all five workflows passed (Build, Checks, E2E, SAST, Commitlint), with 53 successful checks, 12 expected skips, and no pending or failed jobs. Both affected suites freshly executed on Bun 1.4.2: 876 sandbox tests passed; 305 runtime tests passed, 2 skipped. All 18 Playwright suites passed with no retry diagnostics. Image validation, smoke testing, and all four image scans completed successfully.Trivy's aggregate code-scanning comparison is neutral because seven scan configurations on main are absent from this scoped PR run. All four requested image analyses uploaded successfully; existing image vulnerability alerts predate this PR. Scan workflows and suppressions are unchanged.
Local verification also passed formatting, conflict-marker, link and manual-reference checks, affected-workspace lint/typecheck, and 163 applicable security rules across the five changed production files with zero findings. The host's older Bun 1.3.10 encountered baseline timeouts in an earlier broad repository run; CI freshly passed the affected sandbox/runtime suites on the repository's Bun 1.4.2 pin.