feat(registry): add the distributed action queue
VoidBuildSystem CI / build-and-test-gcc16 (push) Failing after 6s
VoidBuildSystem CI / sanitizers-gcc16 (push) Failing after 2s
VoidBuildSystem CI / signing-openssl-gcc16 (push) Failing after 8s
VoidBuildSystem CI / wine-windows-gcc16 (push) Failing after 49s

This commit is contained in:
faumaray committed 2026-12-05 11:27:08 +03:00
1 parent 0674b7f9fe
commit 2776e459e3
6 files changed
+181

No files matched your search

+2
View File
@@ -340,6 +340,8 @@ Stage: VERIFIED — Plans 01–19 + Plan 20 Slices 1–2C + Track A + Track B (B
- **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.
- **Wave 124 (Distributed Action Queue & VoidLibrary PR)**: the registry gained an in-memory action queue (`POST /api/v1/queue` to enqueue keys, `POST /api/v1/queue/lease` to lease the oldest unleased key to a worker, `GET /api/v1/queue` to list pending/leased keys), reusing the existing lease TTL/tokens; a completed result removes its key from the queue. `RegistryTests.worker_action_queue_enqueue_lease_and_complete` covers enqueue, ordered leases, exhaustion and listing. Pull request [Void/Library#64](https://git.faumaray.com/Void/Library/pulls/64) was opened for the native VoidLibrary build branch.
## 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
@@ -126,4 +126,5 @@ Base HEAD: `fe0d1a6`
| 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 |
| 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 |
| 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) |
+11
View File
@@ -1696,6 +1696,17 @@ VOID_INCLUDE_DIR=/tmp/opencode/vl-pin/include dev cpp -c bash fuzz/run.sh 30
blob bytes (`WORKER_OUTPUT`).
- Full CTest: **8 / 8 passed** in 281.23 s.
## Distributed Action Queue (GCC 16.2, pin `0002e74`)
- Registry: `POST /api/v1/queue` enqueues SHA-256 action keys (publish scope), `POST
/api/v1/queue/lease` leases the oldest unleased key to a worker (TTL 1..3600), `GET
/api/v1/queue` lists pending and leased keys. A result upload removes the key from the queue.
- `RegistryTests.worker_action_queue_enqueue_lease_and_complete` **passed** (366 ms): two keys are
enqueued, leased in order, a third lease returns 404, and the listing shows the leased keys.
- Full CTest: **8 / 8 passed** in 281.42 s.
- Also opened [Void/Library#64](https://git.faumaray.com/Void/Library/pulls/64) for the native
VoidLibrary build description.
## 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).