feat(worker): drain the queue with parallel workers
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 16s
VoidBuildSystem CI / fuzz-clang (push) Failing after 6s
VoidBuildSystem CI / wine-windows-gcc16 (push) Failing after 1m8s

This commit is contained in:
faumaray committed 2026-12-05 13:17:25 +03:00
1 parent af2be817a5
commit ac08887d8f
6 files changed
+176 -30

No files matched your search

+2
View File
@@ -364,6 +364,8 @@ Stage: VERIFIED — Plans 01–19 + Plan 20 Slices 1–2C + Track A + Track B (B
- **Wave 135 (Remote Action Execution)**: `vbs worker --queue` now executes action specs fetched from the CAS when an action is not built locally - it downloads the declared input blobs (verified), materializes them, runs `command` in `working_directory` (bounded by `--exec-timeout`, default 600 s), stores the declared `output_paths` as CAS blobs, and submits the result record. `RegistryTests.worker_executes_remote_action_spec` seeds a spec (`cat input.txt > output.txt`) and verifies the local output, the CAS record (`exit_code 0`) and the uploaded output blob.
- **Wave 136 (Parallel Worker Drain)**: `vbs worker --queue --parallel N` (1..32) runs N concurrent lease/execute loops in one process; the registry leases each queued action to exactly one worker, so actions are never duplicated. `RegistryTests.worker_parallel_drains_queue_without_duplicates` drains two slow actions with two loops, asserting both started exactly once, overlapped in time, and the queue ended empty.
## 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
@@ -136,4 +136,5 @@ Base HEAD: `fe0d1a6`
| 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 |
| Wave 134 (CDash reporting) | `Report::Cdash` Test.xml + multipart submission; `vbs test --cdash/--cdash-project/--cdash-build/--cdash-output` | COMPLETE & VERIFIED (GCC 16.2, pin `0002e74`; E2E captures the submission, full CTest 8/8) | `src/Report/Cdash.cpp`, `include/Void/Build/Report/Cdash.hpp`, `src/Main.cpp`, `tests/RegistryTests.cpp`, docs |
| Wave 135 (Remote action execution) | Worker fetches input blobs, executes the CAS action spec, stores outputs and submits the result; `--exec-timeout` | COMPLETE & VERIFIED (GCC 16.2, pin `0002e74`; E2E passes, full CTest 8/8) | `src/Main.cpp`, `tests/RegistryTests.cpp`, docs |
| Wave 136 (Parallel worker drain) | `--parallel N` lease/execute loops; exclusive registry leases prevent duplicates | COMPLETE & VERIFIED (GCC 16.2, pin `0002e74`; E2E proves overlap and no duplicates, 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) |
+9
View File
@@ -1787,6 +1787,15 @@ VOID_INCLUDE_DIR=/tmp/opencode/vl-pin/include dev cpp -c bash fuzz/run.sh 30
`output.txt` and `"exit_code":0`, and the output blob is retrievable with the exact bytes.
- Full CTest: **8 / 8 passed** in 301.38 s.
## Parallel Worker Drain (GCC 16.2, pin `0002e74`)
- `vbs worker --queue --parallel N` starts N lease/execute loops sharing one worker
registration; the registry's exclusive leases guarantee each action runs once.
- `RegistryTests.worker_parallel_drains_queue_without_duplicates` **passed** (836 ms): two
queued actions (`sleep 0.4` each) both started exactly once, their start/end intervals
overlapped (real concurrency), and `GET /api/v1/queue` reported `"pending":[]` afterwards.
- Full CTest: **8 / 8 passed** in 303.93 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).
+1 -1
View File
@@ -83,7 +83,7 @@ Concrete work this implies:
6. Test-runner parity.
7. Benchmarks against CMake/Meson/build2 on documented fixtures (including 10k-target scaling).
8. CI on real runners, sanitizer jobs (**sanitizer build run done**), parser fuzzing (**deterministic mutation harness and a Clang/libFuzzer target done**).
9. Remote execution workers (**registry worker/lease/result protocol, queue, and remote action execution done**; multi-worker orchestration remains).
9. Remote execution workers (**registry worker/lease/result protocol, queue, remote action execution and parallel workers done**; cross-machine orchestration remains).
## 6. Observed baseline (2026-12-05, x86_64, GCC 16.2, Debug, `benchmarks/compare.sh 20`)