feat(worker): add the vbs remote-execution worker client
VoidBuildSystem CI / build-and-test-gcc16 (push) Failing after 6s
VoidBuildSystem CI / sanitizers-gcc16 (push) Failing after 9s
VoidBuildSystem CI / signing-openssl-gcc16 (push) Failing after 14s
VoidBuildSystem CI / wine-windows-gcc16 (push) Failing after 49s

This commit is contained in:
faumaray committed 2026-12-05 11:18:22 +03:00
1 parent 1ae72e4d07
commit 0674b7f9fe
10 files changed
+423 -1

No files matched your search

+2
View File
@@ -338,6 +338,8 @@ Stage: VERIFIED — Plans 01–19 + Plan 20 Slices 1–2C + Track A + Track B (B
- **Wave 122 (Remote Execution Worker Protocol)**: `vbs-registry` now exposes an in-memory worker/lease protocol on the existing CAS - `POST /api/v1/workers` (registration), `/workers/<id>/heartbeat`, `GET /workers`, `POST /api/v1/actions/lease` (exclusive lease with TTL and token) and `POST /api/v1/actions/<key>/result` (token-checked result upload that requires every referenced output blob to exist). `RegistryTests.remote_worker_registration_lease_and_result_upload` covers registration, heartbeat, lease/conflict, wrong-token rejection, result publication and the unknown-action 404.
- **Wave 123 (`vbs worker` Client)**: added `vbs worker --registry --action-key --record FILE [--build-dir] [--token-env] [--lease-seconds]`, which registers a worker, leases the action, publishes each referenced output blob and the action record to the registry CAS (via the StateStore remote cache), and submits the result with the lease token. Supporting APIs: `StateStore::export_action_record_json`, `Package::register_worker`/`lease_action`/`submit_action_result`. `RegistryTests.worker_cli_leases_publishes_and_reports_result` verifies the CAS record and blob after a worker run.
## 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
@@ -125,4 +125,5 @@ Base HEAD: `fe0d1a6`
| Wave 120 (WiX/MSI-style packaging + VoidLibrary CI) | `--archive-format wix` WiX v3 source generator; `.gitea/workflows/vbs.yml` template on the branch | COMPLETE & VERIFIED for the generator (XML parsed, install test passes, full CTest 8/8); CI template unexecuted | `src/Install/Installer.cpp`, `src/Main.cpp`, `tests/FullV1Tests.cpp`, [Void/Library build-vbs](https://git.faumaray.com/Void/Library/src/branch/build-vbs), docs |
| Wave 121 (libFuzzer fuzzing) | `fuzz/fuzz_parsers.cpp` + `fuzz/run.sh` for JSON and SemVer with Clang/libFuzzer | COMPLETE & VERIFIED (1,541,020 runs, 0 findings) | `fuzz/`, docs |
| Wave 122 (Remote worker protocol) | Registry worker registration/heartbeat, exclusive action leases with TTL/tokens, token-checked result upload with blob verification | COMPLETE & VERIFIED (GCC 16.2, pin `0002e74`; new registry E2E passes, full CTest 8/8) | `registry/include/Void/Build/Registry/RegistryService.hpp`, `registry/service/RegistryService.cpp`, `tests/RegistryTests.cpp`, docs |
| Wave 123 (`vbs worker` client) | Worker CLI: register, lease, publish blobs/record, submit result; StateStore export; client APIs | COMPLETE & VERIFIED (GCC 16.2, pin `0002e74`; worker CLI E2E passes, full CTest 8/8) | `src/Main.cpp`, `src/Package/RegistryClient.cpp`, `src/State/StateStore.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
@@ -1687,6 +1687,15 @@ VOID_INCLUDE_DIR=/tmp/opencode/vl-pin/include dev cpp -c bash fuzz/run.sh 30
the result (visible through the CAS GET), and leasing an unknown action returns 404.
- Full CTest: **8 / 8 passed** in 280.81 s.
## `vbs worker` Client (GCC 16.2, pin `0002e74`)
- `RegistryTests.worker_cli_leases_publishes_and_reports_result` **passed** (417 ms): with a
local StateStore holding an output blob and an action record, the worker CLI registers,
leases the action, publishes the blob and record into the registry CAS, submits the result
with the lease token, and the registry afterwards serves the record (`winapp`) and the exact
blob bytes (`WORKER_OUTPUT`).
- Full CTest: **8 / 8 passed** in 281.23 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).