feat: add Plan 20 Slice 1 CMake native translation, self-test smoke target, VL-009 VOID_TEST check, and warm-cache hardening
VoidBuildSystem CI / build-and-test-gcc16 (push) Failing after 5s

This commit is contained in:
faumaray committed 2026-11-27 05:38:18 +03:00
1 parent 363fb8200e
commit d3d2666965
19 files changed
+1466 -65

No files matched your search

+7 -2
View File
@@ -2,7 +2,7 @@
Updated: 2026-11-27
Branch: main
Stage: VERIFIED — Full v1 implementation (Plans 01–19) + VoidLibrary `VL-001`..`VL-013` adoption + self-building `vbs build` + live `Void::Log` progress + 100% auto-generated `Void::Argparse` CLI complete
Stage: VERIFIED — Plans 01–19 + Plan 20 Slice 1 (bounded native CMake graph translation) + VoidLibrary `VL-001`..`VL-013` adoption + self-building/self-testing `vbs test` + cache/digest performance hardening complete
## Completed delivery waves
@@ -33,10 +33,15 @@ Stage: VERIFIED — Full v1 implementation (Plans 01–19) + VoidLibrary `VL-001
- Eliminated all custom help text and manual `--help`/subcommand/repeatable-flag parsing across `src/Main.cpp`, `src/Describe.cpp`, `registry/service/Main.cpp`, and `benchmarks/EngineBenchmarks.cpp` — 100% auto-generated via `Void::Argparse::Parser`.
- Upgraded root `build.cpp` to declare the complete `VoidBuildSystem` (`VoidBuildSdk`, `VoidBuildCore`, `GenerateBootstrapConfig`, `vbs`, `VoidBuildRegistry`, `vbs-registry`), fixed snapshot root discovery (`collect_snapshot_inputs`), fixed snapshot remapping of external/build-dir dependency includes in `Graph.cpp`, fixed CMake File API provider `Void::*` alias & header-only `INTERNAL_DEPS` export + transitive link ordering in `Provider.cpp`, and verified real Stage 1 + Stage 2 self-builds of `VoidBuildSystem` via `vbs build`!
- Wired a live thread-safe `Void::Log` console sink in `src/Main.cpp` (`--verbose`/`-v`, `--quiet`/`-q`) logging every build phase (`Config`, `Toolchain`, `Eval`, `Deps`, `Fetch`, `Provider`, `Snapshot`, `Graph`, per-action `[seq/total] Compile/Archive/Link/Action ...` progress, and `Test`) with elapsed timings.
- **Wave 7 (Plan 20 Slice 1 Bounded Native CMake Translation, Self-Testing `build.cpp`, `VL-009` `VOID_TEST`, & Warm Cache Hardening)**:
- Implemented Plan 20 Slice 1 in `include/Void/Build/Provider/Translator.hpp` and `src/Provider/Translator.cpp`: strict CMake File API `codemodel-v2` completeness audit (`audit_cmake_codemodel`), bounded C++ native `Graph::BuildGraph` translation (`translate_cmake_to_native_graph`, executing via VBS's toolchain driver/CAS/depfiles with zero `cmake --build`), and explicit `TranslationPolicy::RequireNative` vs `TranslationPolicy::FallbackToForeignBuild` resolution (`resolve_cmake_with_translation`), verified with equivalence, restored-mtime mutation, and unsupported `add_custom_command`/`UTILITY` fallback tests in `tests/FullV1Tests.cpp`.
- Added `tests/SelfBuildSmoke.cpp` (`project.test("vbs_self_smoke")`) to root `build.cpp` so both `vbs build` and `vbs test` build and execute a self-test directly on `VoidBuildSystem`.
- Verified VoidLibrary's upstream `VL-009` `VOID_TEST(suite, name)` self-registering test macro directly with zero CMake and zero scanner across colliding basenames (`alpha/Unit.cpp`, `beta/Unit.cpp`) in `tests/SelfHostTests.cpp`.
- Hardened warm-build caching in `src/State/StateStore.cpp` (stat-validated in-memory `DatabaseSnapshot` cache across `lookup_action` / `load_db_locked` / `save_db_locked`) and `src/Execution/Scheduler.cpp` (run-scoped thread-safe `RunDigestCache` with output invalidation), reducing 16-file warm no-op latency from `16ms` to `4ms` and 39-action Debug self-test warm verification from `18.82s` to `12.16s`.
## Remaining future scope
- **Plan 20 ([20-future-translation-platforms.md](../roadmap/20-future-translation-platforms.md))**: Native foreign graph translation and non-Linux OS ports remain planned architectural design scope.
- **Plan 20 Slice 2+ ([20-future-translation-platforms.md](../roadmap/20-future-translation-platforms.md))**: Extended foreign rule translation (custom commands, foreign C++20 module fileSets, Meson translation), Windows/MSVC & macOS/Apple Clang platform ports, and remote execution remain planned architectural design scope.
## Environment notes & upstream boundaries