feat(test): support CTest-style fixtures in the test runner
VoidBuildSystem CI / sanitizers-gcc16 (push) Failing after 6s
VoidBuildSystem CI / build-and-test-gcc16 (push) Failing after 13s
VoidBuildSystem CI / fuzz-clang (push) Failing after 11s
VoidBuildSystem CI / signing-openssl-gcc16 (push) Failing after 14s
VoidBuildSystem CI / wine-windows-gcc16 (push) Failing after 56s
VoidBuildSystem CI / sanitizers-gcc16 (push) Failing after 6s
VoidBuildSystem CI / build-and-test-gcc16 (push) Failing after 13s
VoidBuildSystem CI / fuzz-clang (push) Failing after 11s
VoidBuildSystem CI / signing-openssl-gcc16 (push) Failing after 14s
VoidBuildSystem CI / wine-windows-gcc16 (push) Failing after 56s
This commit is contained in:
1 parent
617d783e84
commit
6befa6b5e2
10 files changed
+268
-22
No files matched your search
@@ -358,6 +358,8 @@ Stage: VERIFIED — Plans 01–19 + Plan 20 Slices 1–2C + Track A + Track B (B
|
||||
|
||||
- **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.
|
||||
|
||||
- **Wave 133 (CTest-Style Fixtures)**: added `.fixture_setup()`, `.fixture_required()` and `.fixture_cleanup()` on targets (round-tripped through the descriptor JSON). The parallel test runner now pulls fixture setup/cleanup tests in automatically, orders them with prerequisites (setup before users, cleanup after every user), and skips dependents when a setup fails. `FullV1Tests.test_fixtures_setup_required_cleanup_ordering` verifies the order (setup first, cleanup last) and the skip-on-failed-setup path.
|
||||
|
||||
## 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.
|
||||
|
||||
@@ -133,4 +133,5 @@ Base HEAD: `fe0d1a6`
|
||||
| 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 |
|
||||
| Wave 133 (CTest-style fixtures) | `.fixture_setup/required/cleanup` SDK; runner pulls in helpers, orders setup->users->cleanup, skips dependents on failed setup | 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) |
|
||||
@@ -1752,6 +1752,18 @@ VOID_INCLUDE_DIR=/tmp/opencode/vl-pin/include dev cpp -c bash fuzz/run.sh 30
|
||||
`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.
|
||||
|
||||
## CTest-Style Fixtures (GCC 16.2, pin `0002e74`)
|
||||
|
||||
- SDK: `.fixture_setup("db")`, `.fixture_required("db")`, `.fixture_cleanup("db")`; serialized by
|
||||
the descriptor and parsed back into `TargetRecord`/`ResolvedTargetSummary`.
|
||||
- Runner: requiring tests pull in the fixture's setup/cleanup automatically; the parallel
|
||||
scheduler enforces setup -> users -> cleanup ordering via prerequisites, and a failed setup
|
||||
marks dependents as skipped (`SKIPPED '...' (fixture setup failed)`) while the run fails.
|
||||
- `FullV1Tests.test_fixtures_setup_required_cleanup_ordering` **passed** (4.01 s): with
|
||||
`--label uses`, `order.log` is exactly `setup, use_*, use_*, cleanup`; with `--label baduse`
|
||||
the run fails and `bad_use` never passes.
|
||||
- Full CTest: **8 / 8 passed** in 302.00 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