feat(workspace): add multi-package workspace builds with shared lock and CAS
VoidBuildSystem CI / build-and-test-gcc16 (push) Failing after 4s

- SDK: Workspace/workspace() declaration plus Project::workspace_dependency()
- Frontend: workspace.cpp discovery/evaluation alongside build.cpp
- Main: per-member builds sharing the root vbs.lock and build/.vbs CAS, --member and --changed-since selection
- Cross-member native linking; member builds do not steal the root compile_commands.json alias
- Path-dependency snapshots exclude generated editor metadata
- Verified in Docker GCC 16: 8/8 CTest suites; 3-member workspace fixture with unified lockfile
This commit is contained in:
faumaray committed 2026-12-03 13:07:09 +03:00
1 parent 09c0a91d1d
commit 2970fbe25c
12 files changed
+515 -19

No files matched your search

+17
View File
@@ -156,6 +156,23 @@ docker run --rm --user "$(id -u):$(id -g)" -e HOME=/tmp -v "$PWD":/src -w /src \
Warm no-op is **374 ms for 5,001 files** (all 5,002 actions cached, zero executed), meeting
the sub-second D2 acceptance gate.
## Track E2 Workspaces in Docker (2026-12-03)
`FullV1Tests.workspace_members_shared_build_and_member_selection` builds a 3-member
workspace (`packages/lib` shared library, `packages/app` executable, `packages/tests` test)
declared by a root `workspace.cpp`:
- `vbs test` builds and runs all members with one root `vbs.lock` and one shared
`build/.vbs` CAS; `packages/app` links `packages/lib` through
`workspace_dependency("lib").target("libcore")`; the app binary runs successfully.
- No member directory receives its own `vbs.lock`, and member builds do not overwrite the
project-root `compile_commands.json` alias.
- `vbs build --member app` builds only the selected member (plus its workspace dependency).
- `vbs build --changed-since HEAD` after a committed edit selects only the owning member.
Full suite after the change: **8 / 8 CTest suites passed** in 800.22 s (`vbs_v1_tests`
170.33 s, `vbs_registry_tests` 36.82 s, `vbs_selfhost_tests` 568.05 s).
## Limits and Unrun Checks
1. **HTTPS git fetch**: the host shell is proxy-restricted, but the Docker container could clone `https://git.faumaray.com/Void/VoidLibrary.git`; the pinned commit `3e254055e081a104f08df68dde39711bc7813518` was fetched directly for the verification above. A separate configure against the local `/home/faumaray/Projects/Library` checkout via `VBS_VOID_SOURCE_DIR` also succeeded (development-only override, checkout unmodified).