feat(cache): add shared HTTP action cache and parallel snapshot hashing
VoidBuildSystem CI / build-and-test-gcc16 (push) Failing after 4s

- D1: RemoteCasClient + registry /api/v1/cas endpoints with bearer auth and digest verification, StateStore remote action/blob APIs, build-path-independent action keys, --remote-cache CLI
- D2: parallel snapshot revalidation hashing via Void::Concurrency::ThreadPool
- Verified in Docker GCC 16: 8/8 CTest suites, cross-build-dir 100% cache hit, 5001-file warm no-op 374 ms
- Fix self-host recipe source list for RemoteCache.cpp and accept GCC 16 -lgcc_s_asneeded
This commit is contained in:
faumaray committed 2026-12-03 12:36:21 +03:00
1 parent 6c225c2dff
commit 09c0a91d1d
19 files changed
+1213 -18

No files matched your search

+17 -1
View File
@@ -53,6 +53,22 @@ dev cpp-gcc -c cmake -S . -B build/dev-local -G Ninja \
-DCMAKE_BUILD_TYPE=Debug -DVBS_VOID_SOURCE_DIR=../VoidLibrary
```
### Docker build & test (GCC 16)
The VoidLibrary development image provides GCC 16 with C++26 reflection, CMake 4 and Ninja.
Mount this repository and run the bootstrap build and tests inside it:
```sh
docker run --rm --user "$(id -u):$(id -g)" -e HOME=/tmp -v "$PWD":/src -w /src \
voidlibrary-dev:latest bash -lc '
cmake -S . -B build/docker -G Ninja -DCMAKE_BUILD_TYPE=Debug &&
cmake --build build/docker --parallel 4 &&
ctest --test-dir build/docker --output-on-failure'
```
To build against a local VoidLibrary checkout instead of fetching the pinned revision, add
`-DVBS_VOID_SOURCE_DIR=/path/to/VoidLibrary` and mount that checkout into the container.
### Self-building and self-testing VoidBuildSystem with `vbs`
Once the bootstrap `vbs` binary is built, `VoidBuildSystem` builds `VoidLibrary` and tests all binaries and full `VOID_TEST` suites directly from root [build.cpp](build.cpp) with zero CMake invocation and live progress logs (`-v`/`--verbose` for debug detail, `-q`/`--quiet` for warnings/errors only):
@@ -73,7 +89,7 @@ All CLI help text (`vbs --help`, `vbs <command> --help`, `vbs compdb --help`, `v
- `vbs [--version] [--verbose] [--quiet] <command>`
- `vbs init [--dir DIR] [--name NAME] [--library] [--with-toml] [--force]`
- `vbs build [--project DIR] [--build-dir DIR] [--profile NAME]... [--target NAME]... [--compiler gcc|clang] [--editor-profile NAME] [--build-source FILE]... [--jobs N] [--locked] [--offline] [--no-cache] [--native-foreign] [--verbose] [--quiet]`
- `vbs build [--project DIR] [--build-dir DIR] [--profile NAME]... [--target NAME]... [--compiler gcc|clang] [--editor-profile NAME] [--build-source FILE]... [--jobs N] [--remote-cache URL] [--remote-cache-token-env VAR] [--locked] [--offline] [--no-cache] [--native-foreign] [--verbose] [--quiet]`
- `vbs test ...` (same flags as `vbs build`, then runs selected `TargetKind::Test` binaries)
- `vbs clean [--build-dir DIR] [--all]`
- `vbs doctor`