feat(install,ide): self-extracting installers and install tasks
VoidBuildSystem CI / build-and-test-gcc16 (push) Failing after 8s
VoidBuildSystem CI / signing-openssl-gcc16 (push) Failing after 11s

This commit is contained in:
faumaray committed 2026-12-05 03:45:09 +03:00
1 parent 83ec08390f
commit d23a878eec
9 files changed
+232 -5

No files matched your search

+4
View File
@@ -280,6 +280,10 @@ Stage: VERIFIED — Plans 01–19 + Plan 20 Slices 1–2C + Track A + Track B (B
- **Wave 92 (TTY-Aware CLI Help & Log Colors)**: `ConsoleLogger` now installs a `PatternFormatter` with `ColorPolicy::defaults()` when stderr is a terminal, so log levels are colored (previously the default policy was disabled); CLI help is colorized (bold section headers/usage, cyan commands and options) when stdout is a terminal. `NO_COLOR` and the new global `--no-color` flag disable both.
- **Wave 93 (Self-Contained Installers)**: `InstallOptions` gained `bundle_runtime_dependencies` (copies installed targets' runtime shared libraries into `<prefix>/lib`, deduplicated) and `archive_path` (writes a deterministic USTAR installer archive of the published prefix). `vbs install` exposes `--bundle-dependencies` and `--archive FILE`; the install CLI test unpacks the archive, checks its contents, and proves two runs are byte-identical.
- **Wave 94 (CPack-Style Self-Extracting Installed & IDE Install Tasks)**: `vbs install --archive FILE --archive-format sh` now emits an executable POSIX self-extracting installer (tar payload + `--prefix`/`PREFIX` handling) in addition to the plain tar; the install test runs the generated script and verifies the extracted prefix. The generated VS Code and Zed tasks gained `vbs: install` and `vbs: package installer` entries (asserted in the IDE 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))**: Track C (macOS/Windows ports + dual-profile cross-compilation) and dedicated external editor plugins remain planned; Track D3 signing (SBOM, Ed25519 primitives, trusted-key enforcement/distribution, binary-variant signing/distribution) and Track E3 daemon capabilities are implemented, and Track E4 now uses `Void::Net` for the registry client/server and remote cache plus `Void::Sqlite` for the StateStore when available.
+2
View File
@@ -96,4 +96,6 @@ Base HEAD: `fe0d1a6`
| Wave 90 (Verify trust + RFC 7232) | `vbs verify --trusted-public-key/--trusted-key-file`; swarm added binary-detail ETag and RFC 7232 If-None-Match matching | COMPLETE & VERIFIED (GCC 16.2, pin `0002e74`; CLI contract and Registry suite pass, full CTest 8/8) | `src/Main.cpp`, `registry/service/RegistryService.cpp`, `tests/{RegistryTests,CliContracts}.cmake`, docs |
| Wave 91 (Convention-based self-build + ConsoleLogger) | globs/conventions in `build.cpp` and the self-host recipe; `sdk/` and `registry/cli/` layout; absolute dependency cache paths; `Void::Logging::ConsoleLogger` without the `vbs` prefix | COMPLETE & VERIFIED (GCC 16.2, pin `0002e74`; bootstrap build, self-build with absolute AND relative build dirs, SDK 17/17, full CTest 8/8) | `build.cpp`, `recipes/SelfHost/VbsSelfHostRecipe.cpp`, `sdk/`, `registry/cli/`, `src/Main.cpp`, `src/Package/Fetch.cpp`, `src/Config/Frontend.cpp`, `cmake/`, docs |
| Wave 92 (CLI/log colors) | Colored `ConsoleLogger` levels and colorized help on TTYs; `NO_COLOR` + `--no-color` | COMPLETE & VERIFIED (GCC 16.2, pin `0002e74`; PTY checks show ANSI codes for help and logs) | `src/Main.cpp`, docs |
| Wave 93 (Self-contained installers) | `bundle_runtime_dependencies` + deterministic installer archive; `vbs install --bundle-dependencies --archive` | COMPLETE & VERIFIED (GCC 16.2, pin `0002e74`; install CLI test passes with archive extraction and byte-identical reruns, full CTest 8/8) | `include/Void/Build/Install/Installer.hpp`, `src/Install/Installer.cpp`, `src/Main.cpp`, `tests/FullV1Tests.cpp`, docs |
| Wave 94 (Installer script + IDE install tasks) | `--archive-format sh` self-extracting installer executed in tests; VS Code/Zed install tasks | COMPLETE & VERIFIED (GCC 16.2, pin `0002e74`; install and IDE tests pass, full CTest 8/8) | `include/Void/Build/Install/Installer.hpp`, `src/Install/Installer.cpp`, `src/Main.cpp`, `src/Editor/CompDb.cpp`, `tests/FullV1Tests.cpp`, 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) |
+12
View File
@@ -1339,6 +1339,18 @@ dev cpp-gcc -c build/pinned/bin/vbs_v1_tests --suite Daemon --no-color
unidentified external actor; a fresh configure/build/CTest is fully green, and the anomaly is
not attributable to VBS code.
## Self-Contained Installers & IDE Install Tasks (GCC 16.2, pin `0002e74`)
- `vbs install --bundle-dependencies --archive FILE` writes a deterministic tar; two runs are
byte-identical and the archive extracts to the installed `bin/` and package metadata.
- `--archive-format sh` writes a POSIX self-extracting installer; running
`sh installer.sh --prefix DIR` installs the same files (`bin/cli_hi`, `share/vbs/<pkg>/package.json`).
Both are asserted by `foreign_cmake_meson_providers_bridge_and_relocatable_install` (5.88 s).
- `ide_integration_compdb_build_cpp_and_editor_configs_end_to_end` (3.21 s) verifies the generated
VS Code tasks contain `vbs: install` and `vbs: package installer`, and Zed tasks contain
`vbs: install`.
- Full CTest: **8 / 8 passed** in 277.74 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).