feat(worker): renew leases and watch an idle queue
VoidBuildSystem CI / sanitizers-gcc16 (push) Failing after 5s
VoidBuildSystem CI / build-and-test-gcc16 (push) Failing after 2s
VoidBuildSystem CI / signing-openssl-gcc16 (push) Failing after 13s
VoidBuildSystem CI / wine-windows-gcc16 (push) Failing after 49s

This commit is contained in:
faumaray committed 2026-12-05 12:03:46 +03:00
1 parent 8dac19c3ea
commit 55bc0529b9
8 files changed
+152 -17

No files matched your search

+2
View File
@@ -348,6 +348,8 @@ Stage: VERIFIED — Plans 01–19 + Plan 20 Slices 1–2C + Track A + Track B (B
- **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.
- **Wave 128 (Lease Renewal & Idle-Timeout Watcher)**: the registry gained `POST /api/v1/actions/<key>/renew` (token-checked lease extension, bounded TTL, audited) and `Package::renew_action_lease`. `vbs worker --queue` accepts `--idle-timeout SECONDS` to keep watching an empty queue before exiting, and `--once` now limits the loop to one action. The worker E2E asserts the idle wait, renewal success, and wrong-token rejection.
## 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.