Repository navigation
Conversation
…01..05) Signed-off-by: fleeto <dustise@live.com>
This branch has not been deployed
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.
Summary
Adds the follow-up architectural plan and task-card decomposition (
WSM-01..WSM-05) indocs/development/plan/plan-20261122-workspace-crate-split.mdto eliminate the remaining single-processrustcmemory ceiling (9.845 GiBcgroupmax anon/9.640 GiBRssAnon) and reduce full-suite test artifact disk growth after PR #1066.Evidence Grounding
--jobs 1,CPUQuota=400%,MemoryHigh=14G,MemoryMax=18G):liblibra.rlib:6.592 GiB RssAnon(Hybrid) /6.448 GiB(debug=0)libra --lib --test:9.640 GiB RssAnon(Hybrid) /9.313 GiB(debug=0)#[cfg(test)]delta is+2.87–3.05 GiB RssAnon, whileline-tables-onlyaccounts for only0.14–0.33 GiB.src/test lines, 97 tests) are strict black-box tests without privateuse super::*/#[cfg(test)]fault-hook coupling; migrating them changedcgroup max anonby only-0.032 GiB(9.845 -> 9.813 GiB) while adding a190 MiBbinary.rustcpeak without leaking private APIs requires a Cargo Workspace split where production domains move together with their private unit tests.crate::Dependency Matrix (src/760,764 lines):internal/db_model: 7,377 lines, only 1 back-edge tocommand/vcs(cleanest foundation crate).gui: 7,396 lines, 14 outgoing refs, 0 incoming refs (cleanest leaf crate, isolates the heavygpui/wgpu/ely-*dependency tree).internal/ai: 307,634 lines (40.4% ofsrc/, 51.4% of inline unit tests) — primary target to cut the monolithicrustcpeak.Proposed Task Cards (DAG:
WSM-01 -> WSM-02 -> {WSM-03, WSM-04} -> WSM-05)WSM-01: Read-only audit of cross-domain back-edges, SCC boundaries, andtests/compat/*src/path hardcodings.WSM-02: Cargo Workspace skeleton,crates/libra-db-modelextraction, and workspace-aware upgrade oftests/compat/*guards.WSM-03: Extractcrates/libra-guito isolate thegpui/wgpu/ely-*dependency graph.WSM-04: Decouple back-edges and extractcrates/libra-ai(keeping all 2,329 private unit tests and#[cfg(test)]hooks intact inside the crate with zero public API widening).WSM-05: Selective domain aggregation of heavy integration test binaries (agent_bridge_*,agent_mcp_*,operation_*excluding*_span_testand feature-gated targets) + full-suite resource regression gate.