feat(test): write JUnit reports and honour a per-test timeout
VoidBuildSystem CI / build-and-test-gcc16 (push) Failing after 16s
VoidBuildSystem CI / signing-openssl-gcc16 (push) Failing after 13s

This commit is contained in:
faumaray committed 2026-12-05 07:25:33 +03:00
1 parent ce47c23cda
commit 1e670cb96b
7 files changed
+147 -3

No files matched your search

+2
View File
@@ -298,6 +298,8 @@ Stage: VERIFIED — Plans 01–19 + Plan 20 Slices 1–2C + Track A + Track B (B
- **Wave 102 (VoidLibrary Migration Trial)**: in a separate VoidLibrary clone at the pin (`0002e74`), a native `build.cpp` (using the shared module-closure logic) built VoidLibrary entirely with VBS - 23 actions, module archives plus `void_smoke` - and `vbs test` reported `PASSED 'void_smoke'` with no CMake. The reusable assets live in `contrib/voidlibrary-migration/` (outside the globbed source trees), and the missing first-class upstream build description was filed as [Void/Library#61](https://git.faumaray.com/Void/Library/issues/61).
- **Wave 103 (Test-Runner Parity: JUnit XML & Test Timeout)**: `vbs test` gained `--test-timeout SECONDS` (1..86400, validated before any project work) and `--junit FILE`, which writes a JUnit XML report aggregating every executed test target across profiles (`testcase` with classname/name/time, `failure` with exit status and captured output, escaped). Covered by `FullV1Tests.native_vbs_subproject_dependency_builds_without_cmake` (asserts the suite/testcase/failures fields) and a CLI contract for invalid timeouts.
## 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.
+1
View File
@@ -106,4 +106,5 @@ Base HEAD: `fe0d1a6`
| Wave 100 (CMakePresets import) | `Config::load_cmake_presets` (inherits, `${sourceDir}`, cache merge, profile/compiler mapping) + `vbs presets` CLI | COMPLETE & VERIFIED (GCC 16.2, pin `0002e74`; presets test passes, full CTest 8/8) | `include/Void/Build/Config/Presets.hpp`, `src/Config/Presets.cpp`, `src/Main.cpp`, `tests/{FullV1Tests,CliContracts}.cpp/cmake`, docs |
| Wave 101 (CMake File API shim) | `vbs ide generate` emits `.cmake/api/v1/reply` codemodel-v2 + directory + per-target JSON from the lowered graph | COMPLETE & VERIFIED (GCC 16.2, pin `0002e74`; IDE integration test passes, full CTest 8/8) | `src/Editor/CompDb.cpp`, `tests/FullV1Tests.cpp`, docs |
| Wave 102 (VoidLibrary migration trial) | Separate-clone `build.cpp` builds and tests VoidLibrary with VBS; assets in `contrib/voidlibrary-migration/`; upstream issue #61 | VERIFIED IN CLONE (23 actions, `vbs test` PASSED; no CMake) | `contrib/voidlibrary-migration/`, docs |
| Wave 103 (JUnit & test timeout) | `vbs test --junit FILE --test-timeout SECONDS` with aggregated JUnit XML | COMPLETE & VERIFIED (GCC 16.2, pin `0002e74`; JUnit assertions and CLI contract pass, full CTest 8/8) | `src/Main.cpp`, `tests/{FullV1Tests,CliContracts}.cpp/cmake`, 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) |
+9
View File
@@ -1447,6 +1447,15 @@ vbs test --project /tmp/opencode/vl-migrate --build-dir /tmp/opencode/vl-migrat
- Upstream gap filed as [Void/Library#61](https://git.faumaray.com/Void/Library/issues/61) because
VoidLibrary lacks an in-repo VBS build description and many modules have no native entry.
## Test-Runner Parity: JUnit XML & Test Timeout (GCC 16.2, pin `0002e74`)
- `vbs test --junit report.xml --test-timeout 120` on the native subproject fixture writes a JUnit
report containing `<testsuites`, `<testsuite name="debug"`, `name="consumer_test"`, and
`failures="0"` (`FullV1Tests.native_vbs_subproject_dependency_builds_without_cmake`, 4.03 s).
- `vbs test --test-timeout 0` exits 2 with `invalid --test-timeout value '0'` before any project
work (CLI contract).
- Full CTest: **8 / 8 passed** after both slices.
## 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).