feat(daemon): support workspace member describe and build
VoidBuildSystem CI / build-and-test-gcc16 (push) Failing after 5s
VoidBuildSystem CI / signing-openssl-gcc16 (push) Failing after 22s

This commit is contained in:
faumaray committed 2026-12-03 21:19:15 +03:00
1 parent 8fd8c34525
commit d6bbd95ced
7 files changed
+240 -34

No files matched your search

+5
View File
@@ -140,6 +140,11 @@ Stage: VERIFIED — Plans 01–19 + Plan 20 Slices 1–2C + Track A + Track B (B
- Added `vbs binaries list|fetch` backed by `Package::fetch_binary_variants`: `list` prints one line per variant (`id sha256 size signed|unsigned`), and `fetch` resolves the variant, builds the registry download URL, and downloads the artifact with SHA-256 verification via `download_binary_artifact`.
- `vbs_cli_contract` covers the help/error contracts; the live registry CLI E2E now publishes a binary variant with `vbs publish-binary`, lists it, and fetches it byte-for-byte.
- **Wave 31 (Daemon Workspace Support)**:
- Daemon `describe` now evaluates `workspace.cpp` roots: it canonicalizes members, exports `VBS_WORKSPACE_MEMBER_<name>`, and returns a bounded per-member summary (`name`, `path`, `targets`, `actions`, `target_names`).
- Daemon `build` accepts a `member` field for workspace roots (shared root `vbs.lock` via a new `lock_root` option) and builds that member's graph; a workspace build without `member` is rejected explicitly. `DaemonOptions` gained `lock_root` (empty = project root).
- `Daemon.describe_and_build_workspace_members` replaces the old workspace-rejection test.
## 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 D3 signing (SBOM, Ed25519 primitives, trusted-key enforcement and distribution, binary-variant signing and distribution materialization, the #52 built-in-backend capability probe, and the VoidLibrary pin bump to `0002e74` done), Track E3 (daemon core, bounded `describe`, build-serving, dependency materialization, daemon-backed IDE metadata, compdb export, IDE config generation, editor watch poll and bounded long-poll done; dedicated external editor plugins remain), and Track E4 (`Void::Net`/`Void::Sqlite` alignment) remain planned scope.
+1
View File
@@ -37,4 +37,5 @@ Base HEAD: `fe0d1a6`
| Wave 28 (Registry binary-variant endpoints) | `BinaryReleaseMeta` storage, `PUT .../binaries/<variant>` + `GET .../binaries/<variant>/download`, metadata persistence/detail listing, signature header validation, immutable conflicts | COMPLETE & VERIFIED (GCC 16.2, pin `0002e74`; Registry suite 6/6, full CTest 8/8) | `registry/include/Void/Build/Registry/RegistryService.hpp`, `registry/service/RegistryService.cpp`, `tests/RegistryTests.cpp`, docs |
| Wave 29 (RegistryClient binary API + signed CLI) | `publish_binary_variant`/`fetch_binary_variants` in RegistryClient; `vbs publish-binary` CLI with optional signing; registry test extended | COMPLETE & VERIFIED (GCC 16.2, pin `0002e74`; Registry suite 6/6, full CTest 8/8) | `include/Void/Build/Package/RegistryClient.hpp`, `src/Package/RegistryClient.cpp`, `src/Main.cpp`, `tests/RegistryTests.cpp`, `tests/CliContracts.cmake`, docs |
| Wave 30 (`vbs binaries list|fetch`) | CLI over `fetch_binary_variants`: list id/digest/size/signature state; fetch resolves the variant and downloads with SHA-256 verification | COMPLETE & VERIFIED (GCC 16.2, pin `0002e74`; Registry suite 6/6, full CTest 8/8) | `src/Main.cpp`, `tests/RegistryTests.cpp`, `tests/CliContracts.cmake`, docs |
| Wave 31 (Daemon workspace support) | Workspace `describe` member summaries; workspace `build` with `member` + shared root lock (`DaemonOptions::lock_root`) | COMPLETE & VERIFIED (GCC 16.2, pin `0002e74`; Daemon 13/13, full CTest 8/8) | `include/Void/Build/Daemon/Daemon.hpp`, `src/Daemon/Daemon.cpp`, `tests/DaemonTests.cpp`, docs |
| Future (Plan 20 Slice 3 / Tracks C, E3 editor extensions, E4, live `conan`) | Live `conan` CLI verification; macOS/Windows/cross-compile; binary-variant signing and key distribution; daemon-side dependency materialization and editor plugins; `Void::Net`/`Void::Sqlite` alignment | PLANNED (unimplemented) | [21-expansion-roadmap.md](../roadmap/21-expansion-roadmap.md), [20-future-translation-platforms.md](../roadmap/20-future-translation-platforms.md) |
+16
View File
@@ -554,6 +554,22 @@ dev cpp-gcc -c ctest --test-dir build/pinned --output-on-failure
- Full CTest: **8 / 8 passed** in 207.71 s.
- `clang-format --dry-run --Werror` passes on the changed C++ files.
## Daemon Workspace Support (GCC 16.2, pin `0002e74`)
```sh
dev cpp-gcc -c cmake --build build/pinned --parallel 8
dev cpp-gcc -c build/pinned/bin/vbs_v1_tests --suite Daemon --no-color
dev cpp-gcc -c ctest --test-dir build/pinned --output-on-failure
```
- Build: exit 0. Daemon suite: **13 / 13 passed** in 25.35 s, including
`describe_and_build_workspace_members`: a two-member `workspace.cpp` root is described as
`workspace:true` with both member names, a workspace build without `member` is rejected with a
`member` diagnostic, and `{"op":"build","member":"app"}` builds the member executable
(`profiles/debug/out/bin/ws_app`) sharing the workspace root lock.
- Full CTest: **8 / 8 passed** in 208.57 s.
- `clang-format --dry-run --Werror` passes on the changed C++ files.
## 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).