feat(doctor): report host platform and enabled Void backends
VoidBuildSystem CI / build-and-test-gcc16 (push) Failing after 4s
VoidBuildSystem CI / signing-openssl-gcc16 (push) Failing after 17s

This commit is contained in:
faumaray committed 2026-12-04 02:01:09 +03:00
1 parent 1c2f7d9a2c
commit 7fdda96553
6 files changed
+35 -2

No files matched your search

+1 -1
View File
@@ -173,7 +173,7 @@ Stage: VERIFIED — Plans 01–19 + Plan 20 Slices 1–2C + Track A + Track B (B
- Added the `compdb_entries` daemon request (`vbs daemon compdb entries [--file SUFFIX] [--limit N]`): reads the active published compilation database (selection state or root alias), returns bounded projected entries (`file`, `directory`, `output`, `command`, bounded `arguments`), reports `total`/`returned`, and errors explicitly when nothing is published. - Added the `compdb_entries` daemon request (`vbs daemon compdb entries [--file SUFFIX] [--limit N]`): reads the active published compilation database (selection state or root alias), returns bounded projected entries (`file`, `directory`, `output`, `command`, bounded `arguments`), reports `total`/`returned`, and errors explicitly when nothing is published.
- Added `Daemon.compdb_entries_queries_published_database` (unpublished → error, then all entries, a `main.cpp` filter with `limit:1`, and an invalid limit) and a CLI help contract; Daemon suite is now 18 cases. - Added `Daemon.compdb_entries_queries_published_database` (unpublished → error, then all entries, a `main.cpp` filter with `limit:1`, and an invalid limit) and a CLI help contract; Daemon suite is now 18 cases.
- **Wave 40 (Authenticated Binary-Variant Downloads)**:\n - `download_binary_artifact` now accepts `RegistryAuth` and sends the bearer token, so private registry binary artifacts can be fetched; `BinaryFetchOptions` gained `bearer_token` and `materialize_binary_variant` forwards it; `vbs binaries fetch` passes the configured token.\n - Added `RegistryTests.private_binary_variant_download_requires_auth`: anonymous download of a private binary → 401, authenticated client download and signed materialization succeed.\n\n- **Wave 41 (Yanked Binary Variants in Listing)**:\n - `fetch_binary_variants` gained `include_yanked` (default false, so selection/materialization still never sees yanked variants); `vbs binaries list` opts in and marks yanked entries while `binaries fetch` keeps the filtered view.\n - Extended the registry binary-variant test to assert the yanked variant is returned with `yanked=true` only when requested.\n\n- **Wave 42 (Registry Binary-Variant Listing Endpoint)**:\n - Added `GET /api/v1/packages/<name>/<version>/binaries` returning the release's binary variants (`variant_id`, `sha256`, `size_bytes`, `yanked`, optional signature/public key) under normal read permissions; `RegistryClient::fetch_binary_variants` now queries this endpoint directly instead of parsing package detail JSON.\n - The registry binary-variant test asserts the listing endpoint returns the published variant with `yanked:false`.\n\n- **Wave 43 (Workspace Members Request)**:\n - Added the `workspace_members` daemon request (`vbs daemon workspace members`): lists declared workspace members (`name`, canonical `path`) without evaluating member build descriptions; non-workspace roots return `workspace:false` with an empty list.\n - Added `Daemon.workspace_members_lists_declared_members` and a CLI help contract; Daemon suite is now 19 cases.\n\n- **Wave 44 (IDE Configs Request)**:\n - Added the `ide_configs` daemon request (`vbs daemon ide configs`): reports presence of `.clangd`, `.vscode/tasks.json`, `.zed/tasks.json`, and `.idea/customTargets.xml` so editor extensions can see what is configured.\n - Added `Daemon.ide_configs_reports_generated_files` (absent before generation, present after `ide_generate`) and a CLI help contract; Daemon suite is now 20 cases.\n\n- **Wave 45 (Compdb Generations Request)**:\n - Added the `compdb_generations` daemon request (`vbs daemon compdb generations --profile`): lists immutable editor generations (bounded 128) with active flag, per-generation entry counts, and the per-profile status/diagnostic record; profile names are validated against `[A-Za-z0-9._-]` to prevent traversal.\n - Added `Daemon.compdb_generations_lists_history_and_active_generation` (empty before export, then a valid generation with entries and an active selection; invalid profile rejected) and a CLI help contract; Daemon suite is now 21 cases.\n\n- **Wave 46 (Registry Package Search Pagination)**:\n - `GET /api/v1/packages` now supports bounded `limit` (0-500, default 100) and `offset` (0-1,000,000) pagination with a `total`/`limit`/`offset` envelope; malformed values return 400.\n - The registry RBAC test asserts a `limit=1` page contains exactly one package and that `limit=501` is rejected.\n\n- **Wave 47 (Registry Release Detail Endpoint)**:\n - Added `GET /api/v1/packages/<name>/<version>` returning release metadata (digest, size, yank state, publisher/epoch, optional signature/public key, binary variant summaries) under normal read permissions; unknown packages/releases return 404.\n - The registry binary-variant test asserts the release detail includes the version and published binary variant, and that an unknown version returns 404.\n\n- **Wave 48 (Daemon Deps Request)**:\n - Added the `deps` daemon request (`vbs daemon deps [--profile] [--member]`): evaluates the project, merges TOML/declared dependencies, resolves and materializes them with the pinned lock, registry environment, and trusted keys, then returns the lock context key and per-entry metadata (`alias`, `source_kind`, `package_name`, `version`, `sha256`, `signed`). Shared dependency-merge and resolve-option helpers were extracted for reuse by the build path.\n - Extended `Daemon.build_materializes_path_dependency` to assert a `deps` response with the `helper` path entry before building, plus a CLI help contract.\n\n- **Wave 49 (Daemon Info Request)**:\n - Added the `info` daemon request (`vbs daemon info`): reports the daemon version, host OS/architecture, project/build/lock roots, and socket path so editor extensions can discover the environment without guessing.\n - Added `Daemon.info_reports_daemon_paths_and_host` and a CLI help contract; Daemon suite is now 22 cases.\n\n- **Wave 50 (Registry Audit Query Filters)**:\n - `GET /api/v1/audit` now supports `actor`, `action` (substring), `outcome`, `limit` (0–2000, default 100) and `offset` filters with a `total`/`limit`/`offset` envelope; malformed limits return 400.\n - The registLine truncated - **Wave 40 (Authenticated Binary-Variant Downloads)**:\n - `download_binary_artifact` now accepts `RegistryAuth` and sends the bearer token, so private registry binary artifacts can be fetched; `BinaryFetchOptions` gained `bearer_token` and `materialize_binary_variant` forwards it; `vbs binaries fetch` passes the configured token.\n - Added `RegistryTests.private_binary_variant_download_requires_auth`: anonymous download of a private binary → 401, authenticated client download and signed materialization succeed.\n\n- **Wave 41 (Yanked Binary Variants in Listing)**:\n - `fetch_binary_variants` gained `include_yanked` (default false, so selection/materialization still never sees yanked variants); `vbs binaries list` opts in and marks yanked entries while `binaries fetch` keeps the filtered view.\n - Extended the registry binary-variant test to assert the yanked variant is returned with `yanked=true` only when requested.\n\n- **Wave 42 (Registry Binary-Variant Listing Endpoint)**:\n - Added `GET /api/v1/packages/<name>/<version>/binaries` returning the release's binary variants (`variant_id`, `sha256`, `size_bytes`, `yanked`, optional signature/public key) under normal read permissions; `RegistryClient::fetch_binary_variants` now queries this endpoint directly instead of parsing package detail JSON.\n - The registry binary-variant test asserts the listing endpoint returns the published variant with `yanked:false`.\n\n- **Wave 43 (Workspace Members Request)**:\n - Added the `workspace_members` daemon request (`vbs daemon workspace members`): lists declared workspace members (`name`, canonical `path`) without evaluating member build descriptions; non-workspace roots return `workspace:false` with an empty list.\n - Added `Daemon.workspace_members_lists_declared_members` and a CLI help contract; Daemon suite is now 19 cases.\n\n- **Wave 44 (IDE Configs Request)**:\n - Added the `ide_configs` daemon request (`vbs daemon ide configs`): reports presence of `.clangd`, `.vscode/tasks.json`, `.zed/tasks.json`, and `.idea/customTargets.xml` so editor extensions can see what is configured.\n - Added `Daemon.ide_configs_reports_generated_files` (absent before generation, present after `ide_generate`) and a CLI help contract; Daemon suite is now 20 cases.\n\n- **Wave 45 (Compdb Generations Request)**:\n - Added the `compdb_generations` daemon request (`vbs daemon compdb generations --profile`): lists immutable editor generations (bounded 128) with active flag, per-generation entry counts, and the per-profile status/diagnostic record; profile names are validated against `[A-Za-z0-9._-]` to prevent traversal.\n - Added `Daemon.compdb_generations_lists_history_and_active_generation` (empty before export, then a valid generation with entries and an active selection; invalid profile rejected) and a CLI help contract; Daemon suite is now 21 cases.\n\n- **Wave 46 (Registry Package Search Pagination)**:\n - `GET /api/v1/packages` now supports bounded `limit` (0-500, default 100) and `offset` (0-1,000,000) pagination with a `total`/`limit`/`offset` envelope; malformed values return 400.\n - The registry RBAC test asserts a `limit=1` page contains exactly one package and that `limit=501` is rejected.\n\n- **Wave 47 (Registry Release Detail Endpoint)**:\n - Added `GET /api/v1/packages/<name>/<version>` returning release metadata (digest, size, yank state, publisher/epoch, optional signature/public key, binary variant summaries) under normal read permissions; unknown packages/releases return 404.\n - The registry binary-variant test asserts the release detail includes the version and published binary variant, and that an unknown version returns 404.\n\n- **Wave 48 (Daemon Deps Request)**:\n - Added the `deps` daemon request (`vbs daemon deps [--profile] [--member]`): evaluates the project, merges TOML/declared dependencies, resolves and materializes them with the pinned lock, registry environment, and trusted keys, then returns the lock context key and per-entry metadata (`alias`, `source_kind`, `package_name`, `version`, `sha256`, `signed`). Shared dependency-merge and resolve-option helpers were extracted for reuse by the build path.\n - Extended `Daemon.build_materializes_path_dependency` to assert a `deps` response with the `helper` path entry before building, plus a CLI help contract.\n\n- **Wave 49 (Daemon Info Request)**:\n - Added the `info` daemon request (`vbs daemon info`): reports the daemon version, host OS/architecture, project/build/lock roots, and socket path so editor extensions can discover the environment without guessing.\n - Added `Daemon.info_reports_daemon_paths_and_host` and a CLI help contract; Daemon suite is now 22 cases.\n\n- **Wave 50 (Registry Audit Query Filters)**:\n - `GET /api/v1/audit` now supports `actor`, `action` (substring), `outcome`, `limit` (0–2000, default 100) and `offset` filters with a `total`/`limit`/`offset` envelope; malformed limits return 400.\n - The registLine truncated
- **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. - **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
@@ -60,4 +60,5 @@ Base HEAD: `fe0d1a6`
| Wave 51 (Track E4 Sqlite alignment) | SQLite-backed `StateStore` (`state.v2.sqlite`) with one-time JSON import when `VBS_HAS_VOID_SQLITE`; JSON fallback unchanged; `Void::Net` still needs OpenSSL | COMPLETE & VERIFIED (GCC 16.2, pin `0002e74`, `-p sqlite -p boost`: core 6/6 and full CTest 8/8; default JSON backend core 6/6) | `include/Void/Build/State/StateStore.hpp`, `src/State/StateStore.cpp`, docs |\n| Wave 52 (Live conan verification) | `FullV1Tests.track_b3_live_conan_provider_install`: isolated `CONAN_HOME`, real `conan create`, real `conan install` through the Conan2 provider | COMPLETE & VERIFIED (GCC 16.2, pin `0002e74`, `-p conan`, conan 2.32.0; full CTest 8/8) | `tests/FullV1Tests.cpp`, docs | | Wave 51 (Track E4 Sqlite alignment) | SQLite-backed `StateStore` (`state.v2.sqlite`) with one-time JSON import when `VBS_HAS_VOID_SQLITE`; JSON fallback unchanged; `Void::Net` still needs OpenSSL | COMPLETE & VERIFIED (GCC 16.2, pin `0002e74`, `-p sqlite -p boost`: core 6/6 and full CTest 8/8; default JSON backend core 6/6) | `include/Void/Build/State/StateStore.hpp`, `src/State/StateStore.cpp`, docs |\n| Wave 52 (Live conan verification) | `FullV1Tests.track_b3_live_conan_provider_install`: isolated `CONAN_HOME`, real `conan create`, real `conan install` through the Conan2 provider | COMPLETE & VERIFIED (GCC 16.2, pin `0002e74`, `-p conan`, conan 2.32.0; full CTest 8/8) | `tests/FullV1Tests.cpp`, docs |
| Wave 53 (Track E4 Net alignment) | Enable `Void::Net` when Boost/OpenSSL/Threads are found; `RegistryClient` HTTP transport on `Void::Net::HttpClient::secure()` with POSIX/curl fallback | COMPLETE & VERIFIED (GCC 16.2, pin `0002e74`, `-p openssl -p boost`: registry 7/7 and full CTest 8/8 on the Net transport; default build unaffected) | `cmake/VoidDependency.cmake`, `CMakeLists.txt`, `src/Package/RegistryClient.cpp`, docs | | Wave 53 (Track E4 Net alignment) | Enable `Void::Net` when Boost/OpenSSL/Threads are found; `RegistryClient` HTTP transport on `Void::Net::HttpClient::secure()` with POSIX/curl fallback | COMPLETE & VERIFIED (GCC 16.2, pin `0002e74`, `-p openssl -p boost`: registry 7/7 and full CTest 8/8 on the Net transport; default build unaffected) | `cmake/VoidDependency.cmake`, `CMakeLists.txt`, `src/Package/RegistryClient.cpp`, docs |
| Wave 54 (Track E4 Net server) | `Registry::HttpServer` on `Void::Net::HttpServer` behind `VBS_HAS_VOID_NET` with a request/response bridge and shared security headers; POSIX fallback retained | COMPLETE & VERIFIED (GCC 16.2, pin `0002e74`, `-p openssl -p boost`: registry 7/7 and full CTest 8/8 on Net; default registry 7/7) | `registry/service/HttpServer.cpp`, `registry/include/Void/Build/Registry/HttpServer.hpp`, docs |\n| Wave 55 (Track E4 Net remote cache) | `RemoteCache` HTTP exchange on `Void::Net::HttpClient::secure()` behind `VBS_HAS_VOID_NET`; POSIX/curl fallback | COMPLETE & VERIFIED (GCC 16.2, pin `0002e74`; remote CAS 2/2 on both transports, Net full CTest 8/8) | `src/State/RemoteCache.cpp`, docs | | Wave 54 (Track E4 Net server) | `Registry::HttpServer` on `Void::Net::HttpServer` behind `VBS_HAS_VOID_NET` with a request/response bridge and shared security headers; POSIX fallback retained | COMPLETE & VERIFIED (GCC 16.2, pin `0002e74`, `-p openssl -p boost`: registry 7/7 and full CTest 8/8 on Net; default registry 7/7) | `registry/service/HttpServer.cpp`, `registry/include/Void/Build/Registry/HttpServer.hpp`, docs |\n| Wave 55 (Track E4 Net remote cache) | `RemoteCache` HTTP exchange on `Void::Net::HttpClient::secure()` behind `VBS_HAS_VOID_NET`; POSIX/curl fallback | COMPLETE & VERIFIED (GCC 16.2, pin `0002e74`; remote CAS 2/2 on both transports, Net full CTest 8/8) | `src/State/RemoteCache.cpp`, docs |
| Wave 56 (Host reporting in doctor) | `vbs doctor` reports `HostOs`/`host_supported()` and the optional Sqlite/Net backends; CLI contracts added | COMPLETE & VERIFIED (GCC 16.2, pin `0002e74`; CLI contract passed, full CTest 8/8) | `src/Main.cpp`, `tests/CliContracts.cmake`, docs |
| Future (Plan 20 Slice 3 / Tracks C, E3 editor extensions) |"}] 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) | | Future (Plan 20 Slice 3 / Tracks C, E3 editor extensions) |"}] 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) |
+14
View File
@@ -917,6 +917,20 @@ dev cpp-gcc -c build/pinned/bin/vbs_registry_tests --filter shared_remote --no-c
- Default build: remote CAS tests **2 / 2 passed** (5.55 s) on the POSIX/curl transport. - Default build: remote CAS tests **2 / 2 passed** (5.55 s) on the POSIX/curl transport.
- `clang-format --dry-run --Werror` passes on `src/State/RemoteCache.cpp`. - `clang-format --dry-run --Werror` passes on `src/State/RemoteCache.cpp`.
## Host Reporting in `vbs doctor` (GCC 16.2, pin `0002e74`)
```sh
dev cpp-gcc -c cmake --build build/pinned --parallel 8
dev cpp-gcc -c ctest --test-dir build/pinned -R vbs_cli_contract --output-on-failure
dev cpp-gcc -c ctest --test-dir build/pinned --output-on-failure
```
- `vbs doctor` prints `host platform: Linux (native process/file backends)` plus the optional
backend state, e.g. `[opt] Void::Sqlite: disabled (journaled JSON state store)` and
`[opt] Void::Net: disabled (POSIX/curl transport)` in the default build.
- `vbs_cli_contract` (with the new host/backend checks): **passed** (8.54 s).
- Full CTest: **8 / 8 passed** in 235.19 s.
## Limits and Unrun Checks ## 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). 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).
+1 -1
View File
@@ -46,7 +46,7 @@ flowchart LR
| Phase | Concrete Scope | Acceptance Gate | | Phase | Concrete Scope | Acceptance Gate |
| --- | --- | --- | | --- | --- | --- |
| **C1 — Platform Backend Split** *(Linux backend split implemented; macOS/Windows pending)* | Split `src/Platform/` into `Linux/`, `MacOS/`, and `Windows/` behind clean interfaces (`FileOps`, `ProcessSupervisor`, `DirectoryWatcher`), delegating to `Void::System` as upstream adds OS backends. Linux implementations now live under `src/Platform/Linux/` and `src/Watch/Linux/` (inotify watcher) with an explicit `HostOs`/`host_supported()` boundary in `include/Void/Build/Platform/Host.hpp`; macOS/Windows backends await real hosts. | Zero Linux regressions; clean platform abstraction boundary. | | **C1 — Platform Backend Split** *(Linux backend split implemented; macOS/Windows pending)* | Split `src/Platform/` into `Linux/`, `MacOS/`, and `Windows/` behind clean interfaces (`FileOps`, `ProcessSupervisor`, `DirectoryWatcher`), delegating to `Void::System` as upstream adds OS backends. Linux implementations now live under `src/Platform/Linux/` and `src/Watch/Linux/` (inotify watcher) with an explicit `HostOs`/`host_supported()` boundary in `include/Void/Build/Platform/Host.hpp`; macOS/Windows backends await real hosts (`vbs doctor` reports the detected host and enabled backends). | Zero Linux regressions; clean platform abstraction boundary. |
| **C2 — macOS / Apple Clang & `ld64`** | Apple Clang toolchain probes, `.dylib` + `@rpath`/`@loader_path` install-name lowering, `FSEvents` watcher, Mach-O deterministic timestamps. | Real macOS CI runner passing all SDK, core, module, and install tests. | | **C2 — macOS / Apple Clang & `ld64`** | Apple Clang toolchain probes, `.dylib` + `@rpath`/`@loader_path` install-name lowering, `FSEvents` watcher, Mach-O deterministic timestamps. | Real macOS CI runner passing all SDK, core, module, and install tests. |
| **C3 — Windows / MSVC & `clang-cl`** | MSVC (`cl.exe`, `lib.exe`, `link.exe`, `/showIncludes`, `.pdb`, `/FS`, `.dll`/`.lib` import libraries), Job Object process-tree kill, `ReadDirectoryChangesW` watcher, case-insensitive path conflict detection. | Real Windows CI runner passing process-tree kill, header-shadowing, and install relocation tests. | | **C3 — Windows / MSVC & `clang-cl`** | MSVC (`cl.exe`, `lib.exe`, `link.exe`, `/showIncludes`, `.pdb`, `/FS`, `.dll`/`.lib` import libraries), Job Object process-tree kill, `ReadDirectoryChangesW` watcher, case-insensitive path conflict detection. | Real Windows CI runner passing process-tree kill, header-shadowing, and install relocation tests. |
| **C4 — True Host-vs-Target Cross-Compilation** | Dual-context evaluation (`host` profile for code generators and `build_dependency` tools vs `target` profile for cross-compiled products), sysroot & `--target=` triple propagation. | `linux-x86_64` host cross-compiling `linux-aarch64` fixture while executing host-compiled generator natively. | | **C4 — True Host-vs-Target Cross-Compilation** | Dual-context evaluation (`host` profile for code generators and `build_dependency` tools vs `target` profile for cross-compiled products), sysroot & `--target=` triple propagation. | `linux-x86_64` host cross-compiling `linux-aarch64` fixture while executing host-compiled generator natively. |
+16
View File
@@ -15,6 +15,7 @@
#include <Void/Build/Package/Solver.hpp> #include <Void/Build/Package/Solver.hpp>
#include <Void/Build/Package/Toml.hpp> #include <Void/Build/Package/Toml.hpp>
#include <Void/Build/Platform/FileOps.hpp> #include <Void/Build/Platform/FileOps.hpp>
#include <Void/Build/Platform/Host.hpp>
#include <Void/Build/Platform/ProcessSupervisor.hpp> #include <Void/Build/Platform/ProcessSupervisor.hpp>
#include <Void/Build/Provenance/Sbom.hpp> #include <Void/Build/Provenance/Sbom.hpp>
#include <Void/Build/Provenance/TrustedKeys.hpp> #include <Void/Build/Provenance/TrustedKeys.hpp>
@@ -1970,6 +1971,21 @@ int execute_clean_command(const CleanCmdOptions &opts) {
int execute_doctor_command() { int execute_doctor_command() {
std::cout << "VoidBuildSystem " << Bootstrap::version << " (" << Bootstrap::os << "/" std::cout << "VoidBuildSystem " << Bootstrap::version << " (" << Bootstrap::os << "/"
<< Bootstrap::architecture << ")\n"; << Bootstrap::architecture << ")\n";
std::cout << " " << (Platform::host_supported() ? "[ok] " : "[opt] ")
<< " host platform: " << Platform::host_os_name(Platform::host_os())
<< (Platform::host_supported() ? " (native process/file backends)"
: " (POSIX backends; macOS/Windows ports are planned)")
<< '\n';
#if defined(VBS_HAS_VOID_SQLITE)
std::cout << " [ok] Void::Sqlite: enabled (transactional state store)\n";
#else
std::cout << " [opt] Void::Sqlite: disabled (journaled JSON state store)\n";
#endif
#if defined(VBS_HAS_VOID_NET)
std::cout << " [ok] Void::Net: enabled (TLS-capable HTTP transport)\n";
#else
std::cout << " [opt] Void::Net: disabled (POSIX/curl transport)\n";
#endif
auto check_tool = [](std::string_view label, const char *bin, bool required) { auto check_tool = [](std::string_view label, const char *bin, bool required) {
auto found = Platform::resolve_executable(bin); auto found = Platform::resolve_executable(bin);
std::cout << " " << (found ? "[ok] " : (required ? "[FAIL]" : "[opt] ")) << " " << label std::cout << " " << (found ? "[ok] " : (required ? "[FAIL]" : "[opt] ")) << " " << label
+2
View File
@@ -27,6 +27,8 @@ check_process(0 "Usage: vbs test " "" test --help)
check_process(0 "Usage: vbs init " "" init --help) check_process(0 "Usage: vbs init " "" init --help)
check_process(0 "Usage: vbs clean " "" clean --help) check_process(0 "Usage: vbs clean " "" clean --help)
check_process(0 "Usage: vbs doctor " "" doctor --help) check_process(0 "Usage: vbs doctor " "" doctor --help)
check_process(0 "host platform: Linux" "" doctor)
check_process(0 "Void::Sqlite: (enabled|disabled)" "" doctor)
check_process(0 "Usage: vbs graph " "" graph --help) check_process(0 "Usage: vbs graph " "" graph --help)
check_process(2 "" "unsupported --format" graph --format xml) check_process(2 "" "unsupported --format" graph --format xml)
check_process(2 "" "multi-profile build requires --editor-profile" build --profile debug --profile release) check_process(2 "" "multi-profile build requires --editor-profile" build --profile debug --profile release)