feat: Build Event Protocol stream and vbs new (G1, F7)
VoidBuildSystem CI / 1 · Requirements (push) Successful in 3s
VoidBuildSystem CI / 2A · Linux build (debug) (push) Successful in 2m18s
VoidBuildSystem CI / 2A · Linux build (coverage) (push) Successful in 3m10s
VoidBuildSystem CI / 2B · Windows Wine build (debug) (push) Successful in 1m51s
VoidBuildSystem CI / 2A · Linux build (sanitizers) (push) Successful in 5m2s
VoidBuildSystem CI / 2A · Linux build (relwithdebinfo) (push) Successful in 4m25s
VoidBuildSystem CI / 2B · Windows Wine build (relwithdebinfo) (push) Successful in 3m26s
VoidBuildSystem CI / 3A · Linux test (coverage) (push) Failing after 1m29s
VoidBuildSystem CI / 3A · Linux test (sanitizers) (push) Successful in 35s
VoidBuildSystem CI / 3B · Windows Wine test (debug) (push) Successful in 18s
VoidBuildSystem CI / 3B · Windows Wine test (relwithdebinfo) (push) Successful in 17s
VoidBuildSystem CI / 3A · Linux test (debug) (push) Failing after 6m57s
VoidBuildSystem CI / 3A · Linux test (relwithdebinfo) (push) Failing after 7m56s
VoidBuildSystem CI / 4A2 · VBS installers (linux target) (push) Skipped
VoidBuildSystem CI / 4A2 · VBS installers (windows target) (push) Skipped
VoidBuildSystem CI / 5 · Release (push) Skipped
VoidBuildSystem CI / 1 · Requirements (push) Successful in 3s
VoidBuildSystem CI / 2A · Linux build (debug) (push) Successful in 2m18s
VoidBuildSystem CI / 2A · Linux build (coverage) (push) Successful in 3m10s
VoidBuildSystem CI / 2B · Windows Wine build (debug) (push) Successful in 1m51s
VoidBuildSystem CI / 2A · Linux build (sanitizers) (push) Successful in 5m2s
VoidBuildSystem CI / 2A · Linux build (relwithdebinfo) (push) Successful in 4m25s
VoidBuildSystem CI / 2B · Windows Wine build (relwithdebinfo) (push) Successful in 3m26s
VoidBuildSystem CI / 3A · Linux test (coverage) (push) Failing after 1m29s
VoidBuildSystem CI / 3A · Linux test (sanitizers) (push) Successful in 35s
VoidBuildSystem CI / 3B · Windows Wine test (debug) (push) Successful in 18s
VoidBuildSystem CI / 3B · Windows Wine test (relwithdebinfo) (push) Successful in 17s
VoidBuildSystem CI / 3A · Linux test (debug) (push) Failing after 6m57s
VoidBuildSystem CI / 3A · Linux test (relwithdebinfo) (push) Failing after 7m56s
VoidBuildSystem CI / 4A2 · VBS installers (linux target) (push) Skipped
VoidBuildSystem CI / 4A2 · VBS installers (windows target) (push) Skipped
VoidBuildSystem CI / 5 · Release (push) Skipped
--bep FILE on build/test/run writes a newline-delimited JSON event stream (build_started, profile_started, action_started, action_finished, test_finished with the exit code, build_finished), serialized with Void::Json::Strict. vbs new is a Cargo-style alias of init with the same project templates. Verified: bep_stream_contains_build_action_and_test_events passes (all event kinds present, failing test carries a non-zero exit code) and the CLI contract suite passes; clang-format clean.
This commit is contained in:
1 parent
55f93d5c1c
commit
11d4a3f5d7
7 files changed
+167
-18
No files matched your search
@@ -410,6 +410,8 @@ Stage: VERIFIED — Plans 01–19 + Plan 20 Slices 1–2C + Track A + Track B (B
|
||||
- `vbs install-binary NAME [--version V] [--variant ID] [--prefix DIR] [--list]` resolves the newest release when no version is given (Void::Semver ordering), picks the host os/arch variant by default, verifies signatures when trusted keys are configured, downloads with SHA-256 verification and installs into `<prefix>/bin`.
|
||||
- `vbs add NAME[@RANGE]` and `vbs remove NAME` edit `vbs.deps.toml` (canonical, comment-preserving block append/removal), validate version ranges through `Void::Semver::parse_range`, and refresh `vbs.lock` through the existing resolver (`--no-lock` skips it).
|
||||
- `--frozen` on `build`/`test`/`run` implies `--locked --offline`.
|
||||
- `vbs new` is a Cargo-style alias of `init` with the same templates.
|
||||
- `--bep FILE` on `build`/`test`/`run` writes a newline-delimited JSON Build Event Protocol stream (build/profile started, action started/finished, test finished with exit code, build finished), serialized with `Void::Json::Strict`.
|
||||
- **Native compiler caching**: `--native-cache off|auto|ccache|sccache` (or `VBS_NATIVE_CACHE`) prepends ccache/sccache to compile actions only; the wrapper and real compiler are part of the action key, archives/links are untouched, and `vbs doctor` reports availability. Verified deterministically by `FullV1Tests.native_cache_wrapper_is_lowered_into_compile_commands` and end to end when the tool is installed (`native_cache_wraps_compile_actions`).
|
||||
|
||||
- **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.
|
||||
|
||||
@@ -146,5 +146,5 @@ Base HEAD: `fe0d1a6`
|
||||
| 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 |
|
||||
| Wave 147 (Lifecycle CLI + native caching) | `vbs run` (Void::Process inherited stdio, exit-code passthrough, Wine), `vbs metadata` (StrictJson schema v1), `vbs why`, `vbs tree`, `vbs fmt`/`vbs lint`, `vbs install-binary`, `vbs add`/`vbs remove` (Semver-validated manifest editing + lock refresh), `--frozen`, `--native-cache off/auto/ccache/sccache` with doctor reporting | COMPLETE & VERIFIED for the implemented commands (GCC 16.2; `lifecycle_run_metadata_why_and_manifest_editing`, `tree_prints_lock_entries_and_reports_duplicates`, `fmt_check_detects_unformatted_files_and_fixes_them`, `native_cache_wrapper_is_lowered_into_compile_commands`, `native_cache_wraps_compile_actions` pass; CLI contracts pass) | `src/Main.cpp`, `src/Toolchain/Driver.{hpp,cpp}`, `src/Package/Manifest.{hpp,cpp}`, `include/Void/Build/Package/Manifest.hpp`, `tests/{FullV1Tests,CliContracts}`, docs |
|
||||
| Wave 147 (Lifecycle CLI + native caching + BEP) | `vbs run` (Void::Process inherited stdio, exit-code passthrough, Wine), `vbs metadata` (StrictJson schema v1), `vbs why`, `vbs tree`, `vbs fmt`/`vbs lint`, `vbs install-binary`, `vbs add`/`vbs remove` (Semver-validated manifest editing + lock refresh), `vbs new`, `--frozen`, `--bep` event stream, `--native-cache off/auto/ccache/sccache` with doctor reporting | COMPLETE & VERIFIED for the implemented commands (GCC 16.2; lifecycle, tree, fmt, BEP and native-cache tests pass; CLI contracts pass) | `src/Main.cpp`, `src/Toolchain/Driver.{hpp,cpp}`, `src/Package/Manifest.{hpp,cpp}`, `include/Void/Build/Package/Manifest.hpp`, `tests/{FullV1Tests,CliContracts}`, docs |
|
||||
| Future (Plans 23–24) | Gap closure and superiority tracks | PLANNED (see the plans for per-track acceptance gates) | [23-remaining-upgrade-plan.md](../roadmap/23-remaining-upgrade-plan.md), [24-superiority-tracks.md](../roadmap/24-superiority-tracks.md) |
|
||||
@@ -327,6 +327,11 @@ federation doubles storage; mirror ordering can hide stale artifacts.
|
||||
|
||||
### F7 — Build Event Protocol stream *(S)*
|
||||
|
||||
**Status: implemented (Wave 147).** `vbs build|test|run --bep FILE` writes newline-delimited
|
||||
JSON with `build_started`, `profile_started`, `action_started`, `action_finished`,
|
||||
`test_finished` (exit code) and `build_finished` events, verified by
|
||||
`FullV1Tests.bep_stream_contains_build_action_and_test_events`. `--bep-http` remains out of scope.
|
||||
|
||||
**Goal.** Emit a machine-readable event stream for CI dashboards, beyond the Chrome trace.
|
||||
|
||||
**Planned interface.**
|
||||
|
||||
@@ -109,9 +109,9 @@ the concrete acceptance gate.
|
||||
|
||||
### G1 — Cargo-grade lifecycle CLI *(S–M per command)*
|
||||
|
||||
**Status: partially implemented (Wave 147).** Done: `run`, `metadata`, `why`, `add`, `remove`,
|
||||
`tree`, `fmt`, `lint`, `install-binary`, `--frozen`. Pending: `new`, `bench`, `doc`, `outdated`,
|
||||
`update -p`, `audit`, `deny`, `vendor`.
|
||||
**Status: partially implemented (Wave 147).** Done: `new`, `run`, `metadata`, `why`, `add`,
|
||||
`remove`, `tree`, `fmt`, `lint`, `install-binary`, `--frozen`. Pending: `bench`, `doc`,
|
||||
`outdated`, `update -p`, `audit`, `deny`, `vendor`.
|
||||
|
||||
**Beats:** Cargo (parity), CMake/Meson/build2 (they have no unified lifecycle).
|
||||
|
||||
|
||||
Reference in new issue
Block a user