feat(test): labels, exclusive resources and parallel test execution
VoidBuildSystem CI / build-and-test-gcc16 (push) Failing after 7s
VoidBuildSystem CI / fuzz-clang (push) Failing after 6s
VoidBuildSystem CI / sanitizers-gcc16 (push) Failing after 6s
VoidBuildSystem CI / signing-openssl-gcc16 (push) Failing after 10s
VoidBuildSystem CI / wine-windows-gcc16 (push) Failing after 51s
VoidBuildSystem CI / build-and-test-gcc16 (push) Failing after 7s
VoidBuildSystem CI / fuzz-clang (push) Failing after 6s
VoidBuildSystem CI / sanitizers-gcc16 (push) Failing after 6s
VoidBuildSystem CI / signing-openssl-gcc16 (push) Failing after 10s
VoidBuildSystem CI / wine-windows-gcc16 (push) Failing after 51s
This commit is contained in:
1 parent
e135ae3023
commit
617d783e84
10 files changed
+281
-42
No files matched your search
@@ -356,6 +356,8 @@ Stage: VERIFIED — Plans 01–19 + Plan 20 Slices 1–2C + Track A + Track B (B
|
||||
|
||||
- **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).
|
||||
|
||||
- **Wave 132 (Test Labels, Resource Locks & Parallel Tests)**: the SDK gained `.label("name")` and `.resource("name")` on targets (round-tripped through the descriptor JSON), and `vbs test` now runs test targets in parallel up to `--jobs` while serializing tests that share a resource, and filters with `--label`. `FullV1Tests.test_labels_filter_and_resource_locks_serialize` covers label filtering and asserts that shared-resource start/end intervals never overlap under 4 jobs.
|
||||
|
||||
## 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.
|
||||
|
||||
@@ -132,4 +132,5 @@ Base HEAD: `fe0d1a6`
|
||||
| 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 |
|
||||
| Wave 132 (Test labels, resource locks, parallel tests) | `.label()`/`.resource()` SDK, `--label` filter, parallel test runner with exclusive resources | COMPLETE & VERIFIED (GCC 16.2, pin `0002e74`; E2E passes, full CTest 8/8) | `include/Void/Build.hpp`, `sdk/Build.cpp`, `src/Main.cpp`, `src/Graph/Graph.cpp`, `tests/FullV1Tests.cpp`, 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) |
|
||||
@@ -1741,6 +1741,17 @@ VOID_INCLUDE_DIR=/tmp/opencode/vl-pin/include dev cpp -c bash fuzz/run.sh 30
|
||||
`extension tests passed: 6 commands`.
|
||||
- Full CTest: **8 / 8 passed** in 288.56 s.
|
||||
|
||||
## Test Labels, Resource Locks & Parallel Tests (GCC 16.2, pin `0002e74`)
|
||||
|
||||
- SDK: `.label("fast")` and `.resource("shared")` are serialized by the descriptor and parsed
|
||||
back into `TargetRecord`/`ResolvedTargetSummary`.
|
||||
- Runner: `vbs test --label LABEL` filters by label; tests run on a `--jobs`-bounded thread pool
|
||||
where a resource is held exclusively for the duration of its test.
|
||||
- `FullV1Tests.test_labels_filter_and_resource_locks_serialize` **passed** (3.81 s): with
|
||||
`--label fast` only `lab_a`/`lab_c` run; with 4 jobs the shared-resource test intervals in
|
||||
`order.log` never overlap (a manual run shows `a-start a-end b-start b-end`).
|
||||
- Full CTest: **8 / 8 passed** in 295.18 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).
|
||||
|
||||
@@ -15,7 +15,7 @@ build2 documentation was **not** available through Context7; build2 statements b
|
||||
| Remote / distributed execution workers | Deferred | `20`, R-015 |
|
||||
| VoidLibrary's own `build.cpp` | Open | `recipes/VoidLibrary/` builds it inside VBS, but VoidLibrary is not yet migrated |
|
||||
| Installer generators | Partial | deterministic tar + self-extracting `sh` + SBOM + Ed25519; DEB/RPM/MSI/DMG-style generators missing |
|
||||
| Test-runner parity | Partial | `VOID_TEST` runner; fixtures/labels/locks/timeouts/JUnit incomplete |
|
||||
| Test-runner parity | Partial | `VOID_TEST` runner; labels/resource locks/timeouts/JUnit done; fixtures and CDash missing |
|
||||
| IDE ecosystem | Partial | `vbs ide` + CompDB + daemon protocol; no File API shim, presets import, or plugins |
|
||||
| CI on real runners, sanitizers, fuzzing | Unverified | the GitHub Actions workflow is a template that has never run |
|
||||
|
||||
@@ -54,7 +54,7 @@ Concrete work this implies:
|
||||
| Package/registry | External (vcpkg, Conan, FetchContent) | wrapdb, subprojects | cppget.org / brep | **Built-in registry + solver + lock + binary variants + signatures + SBOM** | federation, mirrors, key distribution |
|
||||
| Install/package | `install()`, `install(EXPORT)`, CPack (TGZ/ZIP/DEB/RPM/WIX/DMG/NuGet/APK…) | `install_data`, `install_headers`, dist scripts | install module | prefix staging, components, relocatable CMake + native exports, tar, self-extracting `sh`, **stored ZIP**, **DEB (dpkg-validated)**, SBOM, **Ed25519-signed archives with checksums** | **RPM (rpm 6.1-validated)**, **WiX source for MSI** (candle/light on Windows), DMG-style |
|
||||
| IDE integration | File API, presets, every IDE | `meson-info` introspection | limited | `vbs ide generate/query`, CompDB, daemon protocol | File API shim, `CMakePresets.json` import, plugins |
|
||||
| Test runner | CTest: fixtures, labels, resource locks, timeouts, JUnit/CDash | `meson test`: suites, timeouts, JUnit | test module | `VOID_TEST` runner; `vbs test --junit --test-timeout` | fixtures, labels, resource locks, CDash |
|
||||
| Test runner | CTest: fixtures, labels, resource locks, timeouts, JUnit/CDash | `meson test`: suites, timeouts, JUnit | test module | `VOID_TEST` runner; `vbs test --junit --test-timeout --label`; parallel tests with resource locks | fixtures, CDash |
|
||||
| Incremental / cache | compiler depfiles, ccache external | depfiles, ccache | internal caching model | **content-addressed state, immutable snapshots, remote action cache** | scale benchmarks |
|
||||
| Modules / PCH / unity / LTO / sanitizers | yes (with generator quirks) | yes | yes | **native with capability probing** | more compilers |
|
||||
| Reproducibility | opt-in | opt-in | partial | **default deterministic** (epoch, prefix maps, canonical mtimes) | cross-platform determinism |
|
||||
|
||||
Reference in new issue
Block a user