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

+7 -2
View File
@@ -2,7 +2,7 @@
Updated: 2026-12-03
Branch: main
Stage: VERIFIED — Plans 01–19 + Plan 20 Slices 1–2C + Track A + Track B (B1–B3) + Track E1 + `vbs ide` & `build.cpp` CompDB integration + Track D1/D2 (Docker GCC 16) complete
Stage: VERIFIED — Plans 01–19 + Plan 20 Slices 1–2C + Track A + Track B (B1–B3) + Track E1 + `vbs ide` & `build.cpp` CompDB integration + Track D1/D2 + Track E2 (Docker GCC 16) complete
## Completed delivery waves
@@ -59,9 +59,14 @@ Stage: VERIFIED — Plans 01–19 + Plan 20 Slices 1–2C + Track A + Track B (B
- **D2**: Snapshot capture revalidation now hashes on a bounded `Void::Concurrency::ThreadPool` for trees of 32+ files.
- **Docker verification**: built and tested in `voidlibrary-dev` (GCC 16.0.1, pinned VoidLibrary `3e25405`) with `8/8` CTest suites passing. D1 acceptance verified end-to-end: a cold `vbs build` populates the remote CAS, and a second clean build directory reports `0 executed` with the binary running. D2 benchmark on 5,001 files: `warm_noop_ms=374` (5,002 cached, 0 executed), meeting the sub-second gate. Also fixed the self-host recipe source list for `RemoteCache.cpp` and accepted GCC 16's `-lgcc_s_asneeded` system link flag.
- **Wave 12 (Track E2 Multi-Package Workspaces)**:
- Added the workspace SDK (`Void::Build::Workspace`, `workspace(Workspace&)`, `Project::workspace_dependency()`), `workspace.cpp` descriptor discovery/evaluation in `Config::Frontend`, and workspace orchestration in `src/Main.cpp`: each member builds with its own `build.cpp`/profiles while sharing the root `vbs.lock` and `build/.vbs` CAS.
- Cross-member linking resolves `workspace_dependency("lib").target("core")` to the member's native path provider through `VBS_WORKSPACE_MEMBER_<name>`; `--member <pkg>` and `--changed-since <ref>` select affected members. Member builds do not steal the project-root `compile_commands.json` alias, and path-dependency snapshots exclude generated editor metadata.
- **Docker verification**: `FullV1Tests.workspace_members_shared_build_and_member_selection` builds a 3-member workspace (shared library + app + test) with a unified root lockfile, runs the app, selects a single member, and selects by changed file; all 8 CTest suites pass.
## Remaining future scope
- **Post-v1 Expansion Roadmap ([21-expansion-roadmap.md](../roadmap/21-expansion-roadmap.md) & [20-future-translation-platforms.md](../roadmap/20-future-translation-platforms.md))**: Live `conan` CLI verification (Track B3), Track C (macOS/Windows ports + dual-profile cross-compilation), Track D1/D2 acceptance scenarios (suites pass; cache-hit/benchmark pending), Track D3 (SBOM/signatures), Track E2 (`workspace.cpp`), Track E3 (`vbs daemon` local socket server + external editor plugins), and Track E4 (`Void::Net`/`Void::Sqlite` alignment) remain planned scope.
- **Post-v1 Expansion Roadmap ([21-expansion-roadmap.md](../roadmap/21-expansion-roadmap.md) & [20-future-translation-platforms.md](../roadmap/20-future-translation-platforms.md))**: Live `conan` CLI verification (Track B3), Track C (macOS/Windows ports + dual-profile cross-compilation), Track D1/D2 acceptance scenarios (suites pass; cache-hit/benchmark pending), Track D3 (SBOM/signatures), Track E3 (`vbs daemon` local socket server + external editor plugins), and Track E4 (`Void::Net`/`Void::Sqlite` alignment) remain planned scope.
## Environment notes & upstream boundaries