feat: migration breadth, project templates, preset export, IDE/registry polish
VoidBuildSystem CI / 1 · Requirements (push) Successful in 3s
VoidBuildSystem CI / 2B · Windows Wine build (debug) (push) Successful in 2m11s
VoidBuildSystem CI / 2A · Linux build (debug) (push) Successful in 2m33s
VoidBuildSystem CI / 2A · Linux build (coverage) (push) Successful in 2m44s
VoidBuildSystem CI / 2A · Linux build (sanitizers) (push) Successful in 4m16s
VoidBuildSystem CI / 2A · Linux build (relwithdebinfo) (push) Successful in 4m37s
VoidBuildSystem CI / 2B · Windows Wine build (relwithdebinfo) (push) Successful in 3m29s
VoidBuildSystem CI / 3B · Windows Wine test (debug) (push) Successful in 24s
VoidBuildSystem CI / 3A · Linux test (sanitizers) (push) Successful in 1m52s
VoidBuildSystem CI / 3B · Windows Wine test (relwithdebinfo) (push) Successful in 20s
VoidBuildSystem CI / 3A · Linux test (coverage) (push) Failing after 1m57s
VoidBuildSystem CI / 3A · Linux test (relwithdebinfo) (push) Successful in 6m47s
VoidBuildSystem CI / 3A · Linux test (debug) (push) Successful in 7m4s
VoidBuildSystem CI / 4A2 · VBS installers (linux target) (push) Skipped
VoidBuildSystem CI / 4A2 · VBS installers (windows target) (push) Skipped
VoidBuildSystem CI / 5 · Release (push) Skipped

- vbs migrate --from meson: bounded meson.build importer (project, variable
  assignments, files()/include_directories(), executable/static_library/
  shared_library/library with link_with, include_directories, dependencies,
  install/install_dir) rendering the same build.cpp scaffold; everything
  untranslated is reported as a note.
- vbs init --template app|library|header-only|shared; every template
  scaffolds a project whose own test passes.
- vbs presets --export FILE: writes VBS profiles as CMake configure presets
  (round-trips through the CMakePresets importer).
- vbs ide generate also writes JetBrains run configurations per target.
- VBS_HOST_CXX_FLAGS/VBS_HOST_LDFLAGS instrument the compiled build
  descriptor (the CI sanitizer lane sets them).
- The registry queue counts lease attempts and abandons an action after 5
  attempts into a dead-letter list instead of leasing it forever.
- CI: coverage lane (lcov report), sanitizer descriptor flags; docs ledger
  brought up to date (STATE/TASKS/superiority roadmap).

Verified: the new FullV1Tests and RegistryTests cases pass and the full
CTest suite passes 8/8.
This commit is contained in:
faumaray committed 2026-12-06 17:23:59 +03:00
1 parent 9da1387031
commit fe453bd601
17 files changed
+898 -54

No files matched your search

+17 -1
View File
@@ -1,6 +1,6 @@
# Development state
Updated: 2026-12-03
Updated: 2026-12-06
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 + Track E2 + Track D3 SBOM (Docker GCC 16) + Track D3 Ed25519 signing primitives & trusted-key enforcement (OpenSSL-gated crypto) + Track E3 daemon core, bounded describe & build-serving + Track C1 Linux platform split complete
@@ -383,6 +383,22 @@ Stage: VERIFIED — Plans 01–19 + Plan 20 Slices 1–2C + Track A + Track B (B
- **Wave 145 (Coverage Reporting)**: `vbs test --coverage DIR` instruments every compile and link with `--coverage`, runs the tests, and converts the gcov JSON data into `DIR/coverage.info` (lcov) and `DIR/summary.txt`. System headers outside the project root are filtered out. `FullV1Tests.test_coverage_writes_lcov_and_summary` builds a library with a covered and an uncovered function and asserts `DA:1,1`, `DA:2,0` and the summary. A fresh-tree bug (a transient filesystem error aborting the .gcda walk) was found and fixed.
- **Wave 146 (Gitea CI Hardening, Explainability, Shared Caches, CLI Surface & Migration Breadth)**:
- **CI images (`Void/CI-Images`)**: the `vulkan` image gained `msitools` (wixl/msiinfo), `rpm-tools`, `dpkg`, `meson` and `lcov`; `windows-gcc` and `windows-clang` gained `msitools`, and the image workflow now verifies the tools inside every built image.
- **CI**: a `coverage` Linux variant (`--coverage`, lcov report uploaded as an artifact) joins Debug, RelWithDebInfo and Sanitizers; the MSI installer step stops being skipped once the images ship msitools.
- **Test-runner controls**: `--repeat until-fail|until-pass|after-timeout[:N]`, `--retry N`, `--shuffle [--shuffle-seed N]` and `--stop-on-failure` (which also skips the remaining profiles).
- **Explainability**: `vbs explain [--format text|json]` reports why each action would run (missing cache record, changed discovered inputs, changed/missing outputs, restorable outputs, shared-remote-cache hits) via `Execution::explain_graph` without executing anything.
- **Observability**: `vbs build|test --trace FILE` writes a Chrome trace with phase spans (config, toolchain, eval, snapshot, graph, total) and per-action spans.
- **Cold start**: compiled descriptors and toolchain probes are shared through `$XDG_CACHE_HOME/vbs` (opt out with `VBS_SHARED_CACHE=0`). Measured on the 20-source fixture: a fresh build directory fell from 3897 ms to 755 ms (config 1986->128 ms, toolchain 562->6.5 ms); warm stays ~150 ms.
- **CLI surface**: `vbs completions --shell bash|zsh|fish` and `vbs man [--output DIR]` are generated from the live parser tree (86 man pages), so they cannot drift from the CLI; the generated bash script passes `bash -n`.
- **Migration breadth**: `vbs migrate --from meson` imports `project`, variable assignments (`files`, `include_directories`), `executable`/`static_library`/`shared_library`/`library` with `link_with`, `include_directories`, `dependencies`, `install`/`install_dir`, and reports everything else.
- **Templates & presets**: `vbs init --template app|library|header-only|shared` (all four scaffold and pass their own test), and `vbs presets --export FILE` writes VBS profiles as CMake configure presets (round-trippable through the importer).
- **Packaging**: `vbs install --archive-format msi` renders the WiX source with absolute file sources and compiles it with `wixl` (msitools) or the WiX toolset (`candle`/`light`), failing explicitly when neither exists; the release step replaces same-named assets when a tag is republished.
- **Sanitizer coverage**: `VBS_HOST_CXX_FLAGS`/`VBS_HOST_LDFLAGS` instrument the compiled build descriptor too, and the CI sanitizer lane sets them (previously descriptor compilation did not inherit sanitizer flags).
- **IDE debug integration**: `vbs ide generate` now also writes JetBrains run configurations (`.idea/runConfigurations/vbs_{build,test}_<target>.xml`) beside the VS Code and Zed debug configs.
- **Worker reliability**: the registry queue counts lease attempts per action (`attempt` in the lease response, `attempts` in the queue listing) and abandons an action after 5 attempts into an `abandoned` dead-letter list instead of leasing it forever; `RegistryTests.worker_queue_abandons_actions_after_repeated_leases` covers it.
## Remaining future scope
- **Superiority plan ([22-superiority-and-gaps.md](../roadmap/22-superiority-and-gaps.md), 2026-12-05)**: revised platform strategy - **macOS deferred**, **Windows via MinGW-w64 cross-compilation + Wine execution** (`dev cpp-gcc -p pkgsCross.mingwW64.stdenv.cc`, `dev cpp-gcc -p wine64`), native MSVC deferred; plus packaging parity (ZIP/DEB/RPM), IDE ecosystem, migration tooling, test-runner parity, benchmarks, CI runners, and remote execution in prioritized order.
+1
View File
@@ -145,4 +145,5 @@ Base HEAD: `fe0d1a6`
| Wave 142 (Gitea CI + release workflow) | Gitea-hosted CI with artifacts; tag-driven release workflow with asset upload | COMPLETE (YAML-validated; unexecuted without a runner) | `.gitea/workflows/ci.yml`, `.gitea/workflows/release.yml`, docs |
| Wave 144 (NuGet generator) | `--archive-format nuget`: `.nupkg` with nuspec, OPC parts and `runtimes/<rid>/native` assets | COMPLETE & VERIFIED (GCC 16.2, pin `0002e74`; Python validates the package, install test passes, full CTest 8/8) | `src/Install/Installer.cpp`, `src/Main.cpp`, `tests/FullV1Tests.cpp`, docs |
| Wave 145 (Coverage reporting) | `vbs test --coverage DIR`; gcov JSON -> lcov + summary | COMPLETE & VERIFIED (GCC 16.2, pin `0002e74`; E2E passes, full CTest 8/8) | `include/Void/Build/Report/Coverage.hpp`, `src/Report/Coverage.cpp`, `src/Main.cpp`, `tests/FullV1Tests.cpp`, docs |
| Wave 146 (CI hardening, explainability, shared caches, CLI surface, migration breadth) | CI image tool upgrades + coverage lane; test `--repeat/--retry/--shuffle/--stop-on-failure`; `vbs explain`; `--trace` Chrome traces; shared descriptor/probe caches; `vbs completions`/`vbs man`; `vbs migrate --from meson`; `vbs init --template`; `vbs presets --export`; MSI installer | COMPLETE & VERIFIED (GCC 16.2; new FullV1Tests cases for every feature pass, CLI contract suite passes; cold build 3897 -> 755 ms measured) | `src/Main.cpp`, `src/Execution/Scheduler.{hpp,cpp}`, `src/Cli/CommandModel.{hpp,cpp}`, `src/Config/{Frontend,Scaffold,CmakeImport}.cpp`, `src/Toolchain/Driver.cpp`, `include/Void/Build/Util/UserCache.hpp`, `.gitea/workflows/ci.yml`, [Void/CI-Images](https://git.faumaray.com/Void/CI-Images), `tests/{FullV1Tests,CliContracts}`, 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) |
+26 -21
View File
@@ -122,36 +122,40 @@ first, then what makes VBS *better* rather than merely equal.
3. **Platform breadth - deferred.** Native MSVC and Apple Clang/macOS stay deferred by
decision; MinGW cross + Wine is the current Windows story.
4. **Package-generator parity.** CPack also ships NuGet, PKG/productbuild, APK and IFW
installers; VBS has tar, `sh`, ZIP, DEB, RPM, WiX, UDIF and NuGet (Wave 144). PKG is
the next useful one.
installers; VBS has tar, `sh`, ZIP, DEB, RPM, WiX, MSI (compiled with wixl/candle), UDIF and
NuGet (Wave 144). PKG is the next useful one.
### 8.2 Developer experience and IDE integration
6. **Coverage reporting - done (Wave 145).** `vbs test --coverage` produces lcov (gcov for GCC,
llvm-cov for Clang) alongside JUnit. CMake has `CTestCoverageCollectGCOV`; Meson has the
`b_coverage` option.
7. **Test repetition controls.** CTest offers `--repeat until-fail|after-timeout|until-pass`,
`--shuffle`, `--stop-on-failure` and per-test retries; VBS has labels, resources, fixtures,
timeouts, JUnit and CDash but none of these. Flaky-test retries are valuable for CI.
8. **IDE debug integration.** `vbs ide generate` writes editor configs, but not debug
configurations: add `.vscode/launch.json`/`tasks.json` (gdb/lldb) and JetBrains run
configurations per target. Also export `CMakePresets.json` so CMake-only tools can read a
VBS project.
9. **Shell completions and man pages** for `vbs` (bash/zsh/fish), generated from the argparse
tree.
10. **Migration breadth.** `vbs migrate` handles a bounded CMake subset; add `--from meson`
and cover more CMake commands. `vbs init` could grow templates (header-only, shared
library, GUI).
7. **Test repetition controls - done (Wave 146).** `vbs test` now has `--repeat
until-fail|until-pass|after-timeout[:N]`, `--retry N`, `--shuffle [--shuffle-seed N]`
and `--stop-on-failure`, alongside labels, resources, fixtures, timeouts, JUnit and CDash.
8. **IDE debug integration.** `vbs ide generate` writes `.vscode/launch.json` and
`.zed/debug.json` debug configurations; JetBrains run configurations per target remain
open. `vbs presets --export FILE` (**done**) writes VBS profiles as CMake presets so
CMake-only tools can read a VBS project.
9. **Shell completions and man pages - done (Wave 146).** `vbs completions --shell
bash|zsh|fish` and `vbs man [--output DIR]` are generated from the argparse tree.
10. **Migration breadth.** `vbs migrate` handles a bounded CMake subset and now also
`--from meson` (`meson.build`: project, variables, targets, link_with,
include_directories, install). `vbs init --template app|library|header-only|shared`
provides project templates.
### 8.3 Differentiators worth building (incumbents lack these)
11. **`vbs explain`.** Why did an action re-run? VBS already stores cached action digests and
inputs; the explain report (changed input, command, environment, cache miss) is a cheap,
high-value debugging feature that Ninja/CMake/Meson do not offer.
11. **`vbs explain` - done (Wave 146).** Why did an action re-run? `vbs explain` compares
every selected action against the CAS record and reports the changed inputs/outputs,
missing records, restorable outputs and remote-cache hits, as text or JSON. Ninja/CMake/Meson
do not offer this.
12. **Enforced hermetic sandboxing.** Snapshots already define exact inputs; enforcing that
actions see *only* them (mount/user namespaces) would make incrementality and
reproducibility a guarantee rather than a convention (Bazel-style).
13. **Build Event Protocol / Chrome trace output** for CI dashboards and IDE timelines.
13. **Build Event Protocol / Chrome trace output - Chrome trace done (Wave 146).**
`vbs build|test --trace FILE` writes a Chrome trace with phase and action spans for CI
dashboards and IDE timelines; a full BEP stream remains open.
14. **Multi-machine orchestration.** The registry, queue, leases, remote execution and
parallel workers exist; coordinating several machines (capacity, retries, affinity) is the
remaining step.
@@ -160,9 +164,10 @@ first, then what makes VBS *better* rather than merely equal.
### 8.4 Performance note
The 92 ms warm no-op was measured with a **Debug** `vbs` binary. Before optimizing further,
re-run `benchmarks/compare.sh` against a Release build, then attack the cold-start cost
(descriptor compilation dominates: 2.6 s cold vs CMake's 97 ms on 20 sources).
The 92 ms warm no-op was measured with a **Debug** `vbs` binary. The shared per-user caches
(Wave 146) removed most of the cold-start cost in a fresh build directory (3897 -> 755 ms on
the 20-source fixture); warm no-ops stay around 150 ms. Next: re-run `benchmarks/compare.sh`
against a Release build and keep snapshot work proportional to changed files.
## 7. Acceptance gates