Repository navigation
Conversation
|
Warning Review limit reachedOnly developers with an assigned seat can use this organization's usage-based review budget, and seats here are assigned manually. Ask an admin to assign a seat, or change the review continuation mode in Billing. Next included review available in 16 minutes. View limit details
No actionable comments were generated in the recent review. ℹ️ Recent review info
Walkthrough
Merge Risk:
|
|
Note Written by thanks @Zheruel. the separate cleanup process correctly keeps recursive deletion outside request deadlines and the server filesystem pool. updated the existing branch to
verification through blacksmith:
unverified this run: signed-in native google generation, native antigravity installation, packaged electron/standalone, windows/macOS, and client UI. no native provider/account is available on this linux VM. this is a server lifecycle change; no UI code changed. all seven reported check contexts are green and gitcafe reports mergeable. full github CI has not run: CI and the other fork workflows report |
Problem
Keep completed Antigravity titles and validated installs successful when deleting their temporary files is slow.
Recursive removal currently runs in the server’s shared filesystem pool and inside generation/validation deadlines. It can stall unrelated file reads and turn successful work into a timeout and retry (#23877). Startup uses the same recursive removal.
Change
One cleanup subprocess deletes sequentially with
fs.rmSync. Scope release hands off owned directories after the provider process closes. Pending directories survive restart, live siblings are excluded, and failed deletion retries periodically. Old runtime roots are moved into the queue. Cleanup retains the provider’s Node selection and environment so standalone installs and version-manager shims work too.Scope and approval
This is a focused fix of the existing resource-lifetime defect in #23877: cleanup must not discard a completed result or monopolize request-serving filesystem workers. The driver, install validator and startup sweep are three paths into that same defect. It is submitted under the focused obvious-bug exception in
CONTRIBUTING.md; no maintainer implementation approval is claimed.Verification
The deadline regressions fail against the base production modules with simulated four-minute title cleanup and two-minute validation cleanup. With this change, both operations return while cleanup is held.
vp run check:changedand all 101 focused local tests pass, covering backpressure, live siblings, scheduled retry, shutdown/restart recovery, provider-only Node paths and environment-dependent runtimes.windows-2025, Node26.12.1, 58 tests pass and one existing platform skip. Google’s pinned Antigravity1.3.0activates with 9,291 extraction entries still awaiting cleanup. Parent async file reads respond while cleanup is held. Releasing cleanup empties the queue; the longest retained path is 227 characters.Electron 44.9.3, Node24.22.0, macOS arm64), with a disposable home and Google’s real1.3.0runtime. Fresh installation, existing-release validation, cancellation during native validation, and unauthenticated title generation all finish while cleanup is held. The title reports sign-in required, not timeout. Validator processes exit, the active release is preserved, parent reads respond, and all four cleanup jobs finish with no pending directories or parent recursive unpack deletion.26.12.1single-executable applications containing the current cleanup service. VerifiedisSea() === true, separate external-Node cleanup, responsive parent reads while its child is held, and an empty queue after release. A second probe with Node available only through a provider-specificPATHand requiring that provider’sHOMEclears eight old directories and admits new work.Standalone runtime transcript
Remaining gaps: successful signed-in Google title generation needs an account/API key, neither available here. The reporter’s Windows 11 desktop/ESET environment remains untested; its endpoint protection cause and deletion rate are unconfirmed. The standalone checks exercise the cleanup service in real SEA binaries, rather than a complete packaged CLI. Full upstream test CI is not reported on this PR yet; current GitHub checks cover metadata and review.
Important
Eight pending completed directories stop additional extractions until cleanup catches up. Already-live sessions can still finish, so this bounds new work rather than imposing an absolute disk quota.
Fixes #23877.
Written with GPT-6.1 Sol in the Codex harness, running in T3 Code.