feat(worker): run a continuous queue loop
VoidBuildSystem CI / build-and-test-gcc16 (push) Failing after 9s
VoidBuildSystem CI / sanitizers-gcc16 (push) Failing after 7s
VoidBuildSystem CI / signing-openssl-gcc16 (push) Failing after 13s
VoidBuildSystem CI / wine-windows-gcc16 (push) Failing after 56s

This commit is contained in:
faumaray committed 2026-12-05 11:47:03 +03:00
1 parent 4f3701c740
commit 8dac19c3ea
5 files changed
+139 -70

No files matched your search

+2
View File
@@ -346,6 +346,8 @@ Stage: VERIFIED — Plans 01–19 + Plan 20 Slices 1–2C + Track A + Track B (B
- **Wave 126 (VoidLibrary Test Wiring)**: the `build-vbs` branch now declares per-module package tests (`tests/package/<Module>Only/main.cpp` → `void_<module>_tests`) and its CI runs the full `vbs test` instead of a single smoke target. Verified in the clone: 156 actions, and the core/algorithms/crypto/sqlite/unicode/… test binaries all PASSED with exit 0.
- **Wave 127 (Continuous Worker Loop)**: `vbs worker --queue` now loops - lease, process, repeat - exiting when the queue is empty (or after one action with `--once`). In loop mode the record is exported from the local state store (`--record` is optional), transient lease failures are retried three times, and actions that are not built locally are skipped with a warning. The worker E2E exercises the loop and asserts the `queue empty` exit.
## 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
@@ -129,4 +129,5 @@ Base HEAD: `fe0d1a6`
| Wave 124 (Distributed queue + VoidLibrary PR) | Registry action queue (enqueue/lease/list, result removes the key); PR Void/Library#64 opened | COMPLETE & VERIFIED (GCC 16.2, pin `0002e74`; queue E2E passes, full CTest 8/8) | `registry/service/RegistryService.cpp`, `registry/include/Void/Build/Registry/RegistryService.hpp`, `tests/RegistryTests.cpp`, Void/Library#64, docs |
| Wave 125 (`vbs worker --queue`) | Queue-driven worker lease mode with `lease_queued_action`; E2E covers both modes | COMPLETE & VERIFIED (GCC 16.2, pin `0002e74`; worker E2E passes, full CTest 8/8) | `src/Main.cpp`, `src/Package/RegistryClient.cpp`, `include/Void/Build/Package/RegistryClient.hpp`, `tests/RegistryTests.cpp`, docs |
| 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 |
| 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) |
+6
View File
@@ -1715,6 +1715,12 @@ VOID_INCLUDE_DIR=/tmp/opencode/vl-pin/include dev cpp -c bash fuzz/run.sh 30
direct and queue-driven modes; afterwards `GET /api/v1/queue` reports `"pending":[]`.
- Full CTest: **8 / 8 passed** in 287.29 s.
## Continuous Worker Loop (GCC 16.2, pin `0002e74`)
- `vbs worker --queue` (no `--record`) loops: it leases a queued action, exports the record from the local state store, publishes blobs/record, submits the result, and repeats until the queue is empty; `--once` stops after one action. Lease failures are retried up to three times; locally unbuilt actions are skipped with a warning.
- `RegistryTests.worker_cli_leases_publishes_and_reports_result` **passed** (506 ms), covering direct, single queue and continuous loop modes; the loop output contains the action key and `queue empty`.
- Full CTest: **8 / 8 passed** in 294.19 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).