feat: complete Track A zero-CMake self-hosting, full VOID_TEST migration, and bit-identical Stage 2/3 bootstrap
VoidBuildSystem CI / build-and-test-gcc16 (push) Failing after 2s
VoidBuildSystem CI / build-and-test-gcc16 (push) Failing after 2s
This commit is contained in:
1 parent
fe0d1a6483
commit
5e1916dc5c
23 files changed
+945
-141
No files matched your search
@@ -1,6 +1,6 @@
|
||||
# 21 — Post-v1 Expansion Roadmap
|
||||
|
||||
Status: Planning & active execution guide (Plans **01–19** and **Plan 20 Slices 1 & 2A** are implemented and verified; see [STATE](../agent-workflow/STATE.md) and [VERIFICATION](../agent-workflow/VERIFICATION.md)).
|
||||
Status: Active execution guide (Plans **01–19**, **Plan 20 Slices 1 & 2A**, **Track A [A1–A3]**, and **Track E1** are implemented and verified; **Tracks B–D & E2–E4** remain planned; see [STATE](../agent-workflow/STATE.md) and [VERIFICATION](../agent-workflow/VERIFICATION.md)).
|
||||
|
||||
This roadmap defines five orthogonal expansion tracks for taking VoidBuildSystem from a verified self-hosting Linux C++26 build system into a multi-platform, distributed, daily-driver ecosystem. Each track preserves core architectural invariants: ordinary C++ descriptions, hermetic content-verified snapshots, isolated profiles, immutable CAS publication, and explicit diagnostics over silent approximation.
|
||||
|
||||
@@ -16,15 +16,15 @@ flowchart LR
|
||||
|
||||
---
|
||||
|
||||
## Track A — Full Zero-CMake Self-Hosting & Native Test Suite
|
||||
## Track A — Full Zero-CMake Self-Hosting & Native Test Suite *(Implemented & Verified in Wave 9)*
|
||||
|
||||
**Goal**: Make `VoidBuildSystem` build `VoidLibrary` and all of its own binaries **and** full test suites purely via `vbs test` without invoking CMake at all.
|
||||
|
||||
| Phase | Concrete Scope | Acceptance Gate |
|
||||
| Phase | Concrete Scope | Acceptance Gate / Status |
|
||||
| --- | --- | --- |
|
||||
| **A1 — Native VoidLibrary Recipe Integration** | Expose a `project.native_recipe(...)` or built-in `Void::Build::Recipes::add_void_library_native` hook callable directly from root `build.cpp` so `build.cpp` does not even need the CMake provider for `VoidLibrary`. | `vbs build` builds `VoidBuildSystem` + `VoidLibrary` with a trapped `cmake` on `PATH`. |
|
||||
| **A2 — Full `VOID_TEST` (`VL-009`) Suite Migration** | Port `tests/{SdkDeclarations,ExampleContexts,CoreEngineTests,FullV1Tests,RegistryTests,SelfHostTests}.cpp` to VoidLibrary's self-registering `VOID_TEST(suite, name)` macro and declare all 5 test binaries in root `build.cpp`. | `vbs test` runs every unit, integration, registry, and self-host test directly without CMake or `VoidTestScanner.cmake`. |
|
||||
| **A3 — Reproducible Stage 2 == Stage 3 Bit-Identical Bootstrap** | Build `stage1/vbs` -> `stage2/vbs` -> `stage3/vbs` with fixed `SOURCE_DATE_EPOCH` and verify `sha256(stage2/vbs) == sha256(stage3/vbs)`. | Automated bit-for-bit equality check in CI. |
|
||||
| **A1 — Native Dependency Provider & Zero-CMake `build.cpp`** | Support `builder == "native"` directly in [Provider.cpp](../../src/Provider/Provider.cpp) (both pure `build.cpp` subprojects and built-in `VoidLibrary` recipe) and switch root [build.cpp](../../build.cpp) from `.cmake(...)` to `.native_builder(...)`. | **Verified**: Stage 2 builds `VoidLibrary` natively (27 actions) + VBS with trapped `cmake` on `PATH`; `FullV1Tests` verifies pure `build.cpp` subproject dependencies. |
|
||||
| **A2 — Full `VOID_TEST` (`VL-009`) Suite Migration** | Port all 40 existing cases (plus Wave 9 tests) across `tests/*.cpp` to `VOID_TEST(Suite, name)`, remove `VoidTestScanner.cmake` from CMake, and declare `vbs_benchmarks` + all 5 test binaries alongside `vbs_self_smoke` in root [build.cpp](../../build.cpp). | **Verified**: All 6 test targets (`vbs_self_smoke`, `vbs_sdk_tests`, `vbs_core_tests`, `vbs_v1_tests`, `vbs_registry_tests`, `vbs_selfhost_tests`) build and pass directly via `vbs test`. |
|
||||
| **A3 — Reproducible Stage 2 == Stage 3 Bit-Identical Bootstrap** | Remove `$BUILD_DIR` from `BootstrapConfig.hpp` (`binary_dir = ""` with `/proc/self/exe` sibling resolution), map `profile_build_dir` to `/vbs-build`, emit GCC `-frandom-seed=<filename>`, and set `TZ=UTC` / `LC_ALL=C` on links. | **Verified**: `sha256(stage2/vbs) == sha256(stage3/vbs)` (`9280ea99...`) + `librepro_lib.a`/`repro_app` equivalence across clean build directories with trapped `cmake`. |
|
||||
|
||||
---
|
||||
|
||||
@@ -80,8 +80,8 @@ flowchart LR
|
||||
|
||||
## Recommended Next Execution Order
|
||||
|
||||
1. **Track A1 + A2** (highest ROI for VBS itself): zero-CMake self-build + full `VOID_TEST` native suite via `vbs test`.
|
||||
2. **Track B1 + B2**: C compiler driver + bounded Ninja custom-command translation so real-world C/C++ CMake/Meson dependencies execute natively.
|
||||
3. **Track D1 + D2**: shared HTTP CAS cache on `vbs-registry` + parallel snapshot hashing for large repos.
|
||||
4. **Track E2**: multi-package `workspace.cpp` support.
|
||||
1. **Track B1 + B2** (highest leverage next): C compiler driver + bounded Ninja custom-command translation so real-world C/C++ CMake/Meson dependencies execute natively.
|
||||
2. **Track D1 + D2**: shared HTTP CAS cache on `vbs-registry` + parallel snapshot hashing for large repos.
|
||||
3. **Track E2**: multi-package `workspace.cpp` support.
|
||||
4. **Track B3**: foreign C++20 `CXX_MODULES` `fileSets` lowering + live Conan2 adapter.
|
||||
5. **Track C1–C4**: macOS / Windows platform ports + dual-profile cross-compilation once host CI runners are provisioned.
|
||||
@@ -32,7 +32,7 @@ Authority: [requirements](REQUIREMENTS.md), [architecture](ARCHITECTURE.md),
|
||||
| [18 — Native self-hosting and VoidLibrary migration](18-self-host-voidlibrary.md) | Implemented & Verified | [VoidLibraryRecipe.cpp](../../recipes/VoidLibrary/VoidLibraryRecipe.cpp), [TestRegistryGen.cpp](../../src/SelfHost/TestRegistryGen.cpp) |
|
||||
| [19 — Quality, performance and CI](19-quality-performance-ci.md) | Implemented & Verified | [tests/](../../tests/CMakeLists.txt), [EngineBenchmarks.cpp](../../benchmarks/EngineBenchmarks.cpp), [.github/workflows/ci.yml](../../.github/workflows/ci.yml) |
|
||||
| [20 — Later native foreign execution and platform ports](20-future-translation-platforms.md) | Slices 1 & 2A Implemented & Verified; 2B/2C & OS ports planned | [Translator.hpp](../../include/Void/Build/Provider/Translator.hpp), [Translator.cpp](../../src/Provider/Translator.cpp) (bounded CMake & Meson native translation + unified fallback + `--native-foreign`); C driver, custom commands, Windows/macOS ports planned |
|
||||
| [21 — Post-v1 expansion roadmap](21-expansion-roadmap.md) | Track E1 Implemented; Tracks A–E Planned | Five-track expansion roadmap (zero-CMake self-host & full `VOID_TEST`, extended foreign translation, cross-platform/cross-compile, remote HTTP CAS & attestations, workspaces/daemon/DX) |
|
||||
| [21 — Post-v1 expansion roadmap](21-expansion-roadmap.md) | Track A (A1–A3) & Track E1 Implemented; Tracks B–D, E2–E4 Planned | Five-track expansion roadmap (**Track A** zero-CMake `.native_builder()` self-host, full `VOID_TEST` suite in `build.cpp`, & bit-identical Stage 2 == Stage 3 bootstrap verified; Tracks B–E2/E4 planned) |
|
||||
|
||||
## Dependency graph
|
||||
|
||||
|
||||
Reference in new issue
Block a user