perf(config): memoize descriptor hashes by stat fingerprint; generate plugin tests
VoidBuildSystem CI / build-and-test-gcc16 (push) Failing after 5s
VoidBuildSystem CI / fuzz-clang (push) Failing after 4s
VoidBuildSystem CI / sanitizers-gcc16 (push) Failing after 4s
VoidBuildSystem CI / signing-openssl-gcc16 (push) Failing after 10s
VoidBuildSystem CI / wine-windows-gcc16 (push) Failing after 58s
VoidBuildSystem CI / build-and-test-gcc16 (push) Failing after 5s
VoidBuildSystem CI / fuzz-clang (push) Failing after 4s
VoidBuildSystem CI / sanitizers-gcc16 (push) Failing after 4s
VoidBuildSystem CI / signing-openssl-gcc16 (push) Failing after 10s
VoidBuildSystem CI / wine-windows-gcc16 (push) Failing after 58s
This commit is contained in:
1 parent
09fd3cce39
commit
e135ae3023
6 files changed
+306
-35
No files matched your search
@@ -354,6 +354,8 @@ Stage: VERIFIED — Plans 01–19 + Plan 20 Slices 1–2C + Track A + Track B (B
|
||||
|
||||
- **Wave 130 (CI Hardening)**: the VoidLibrary workflow (`build-vbs`) now guards for GCC 16+, and adds sanitizer (ASan+UBSan core suites) and libFuzzer jobs; it passes `yamllint` (valid YAML, only line-length warnings). VBS's own CI gained the matching fuzz job. Workflows remain unexecuted without runners.
|
||||
|
||||
- **Wave 131 (Warm-Build Latency & Generated Plugin Tests)**: descriptor identity hashing is memoized by stat fingerprint (size + mtime) in `.vbs/config/identity_cache.json`, and cached header entries carry the same fingerprint, so unchanged inputs are not re-hashed. In the benchmark project the descriptor check fell from ~106 ms to ~0.8 ms and `benchmarks/compare.sh` warm no-op from ~209 ms to **92 ms** (CMake 8 ms, Meson 175 ms on the same 20-source project). `vbs ide plugin --editor vscode` now also emits `test/extension.test.js` plus an `npm test` script, and the generated harness was executed with Node against a mocked VS Code API (6 commands passed).
|
||||
|
||||
## 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.
|
||||
|
||||
@@ -131,4 +131,5 @@ Base HEAD: `fe0d1a6`
|
||||
| Wave 126 (VoidLibrary test wiring) | Per-module package tests declared in the branch build.cpp; CI runs `vbs test` | COMPLETE & VERIFIED IN CLONE (156 actions; module test binaries PASSED, exit 0) | [Void/Library build-vbs](https://git.faumaray.com/Void/Library/src/branch/build-vbs), `contrib/voidlibrary-migration/`, docs |
|
||||
| Wave 127 (Continuous worker loop) | `vbs worker --queue` loop with local record export, retries, skip-on-missing, `--once`, exit on empty queue | COMPLETE & VERIFIED (GCC 16.2, pin `0002e74`; worker E2E passes, full CTest 8/8) | `src/Main.cpp`, `tests/RegistryTests.cpp`, docs |
|
||||
| Wave 128 (Lease renewal + idle timeout) | `actions/<key>/renew`, `renew_action_lease`, `worker --idle-timeout/--once` | COMPLETE & VERIFIED (GCC 16.2, pin `0002e74`; worker E2E passes, full CTest 8/8) | `registry/service/RegistryService.cpp`, `src/Package/RegistryClient.cpp`, `src/Main.cpp`, `tests/RegistryTests.cpp`, docs |
|
||||
| Wave 131 (warm-build latency + plugin tests) | Stat-fingerprint memo for descriptor identity/header hashes; generated VS Code test harness | COMPLETE & VERIFIED (GCC 16.2, pin `0002e74`; vbs warm 92 ms vs 209 ms baseline, generated harness passes under Node, full CTest 8/8) | `src/Config/Frontend.cpp`, `src/Editor/CompDb.cpp`, `tests/FullV1Tests.cpp`, `benchmarks/compare.sh`, 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) |
|
||||
@@ -1727,6 +1727,20 @@ VOID_INCLUDE_DIR=/tmp/opencode/vl-pin/include dev cpp -c bash fuzz/run.sh 30
|
||||
- `RegistryTests.worker_cli_leases_publishes_and_reports_result` **passed** (1.54 s): the idle worker ran for >= 900 ms, renewal succeeded, and a wrong token was rejected.
|
||||
- Full CTest: **8 / 8 passed** in 302.11 s.
|
||||
|
||||
## Warm-Build Latency (GCC 16.2, pin `0002e74`)
|
||||
|
||||
- Descriptor identity inputs and cached headers are hashed only when their stat fingerprint
|
||||
(size + mtime, persisted in `.vbs/config/identity_cache.json` / `.headers.json`) changes.
|
||||
Legacy hash-only metadata is upgraded in place.
|
||||
- Descriptor check on the benchmark project: **~106 ms before, ~0.8 ms warm after** (the first
|
||||
run seeds the memo once).
|
||||
- `benchmarks/compare.sh` (20 sources): **vbs-warm 92 ms** (was ~209 ms), cmake-warm 8 ms,
|
||||
meson-warm 175 ms; vbs-cold 2580 ms, cmake-cold 97 ms, meson-cold 246 ms.
|
||||
- `vbs ide plugin --editor vscode` emits `test/extension.test.js` and `npm test`; running the
|
||||
generated harness with Node 24 against a mocked VS Code API prints
|
||||
`extension tests passed: 6 commands`.
|
||||
- Full CTest: **8 / 8 passed** in 288.56 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).
|
||||
|
||||
Reference in new issue
Block a user