Commit Graph
7 Commits
Author SHA1 Message Date
faumaray ff3bfd03a1 feat(sandbox): hermetic action sandboxing (F1)
VoidBuildSystem CI / 1 · Requirements (push) Successful in 10s
VoidBuildSystem CI / 2A · Linux build (debug) (push) Successful in 3m20s
VoidBuildSystem CI / 2A · Linux build (coverage) (push) Successful in 3m27s
VoidBuildSystem CI / 2B · Windows Wine build (debug) (push) Successful in 2m28s
VoidBuildSystem CI / 2A · Linux build (sanitizers) (push) Successful in 4m8s
VoidBuildSystem CI / 2B · Windows Wine build (relwithdebinfo) (push) Successful in 4m5s
VoidBuildSystem CI / 3B · Windows Wine test (debug) (push) Successful in 23s
VoidBuildSystem CI / 3B · Windows Wine test (relwithdebinfo) (push) Successful in 21s
VoidBuildSystem CI / 2A · Linux build (relwithdebinfo) (push) Successful in 5m27s
VoidBuildSystem CI / 3A · Linux test (coverage) (push) Failing after 1m17s
VoidBuildSystem CI / 3A · Linux test (sanitizers) (push) Successful in 2m0s
VoidBuildSystem CI / 3A · Linux test (debug) (push) Failing after 7m41s
VoidBuildSystem CI / 3A · Linux test (relwithdebinfo) (push) Failing after 6m44s
VoidBuildSystem CI / 4A2 · VBS installers (linux target) (push) Skipped
VoidBuildSystem CI / 4A2 · VBS installers (windows target) (push) Skipped
VoidBuildSystem CI / 5 · Release (push) Skipped
Adds Sandbox::sandbox_supported()/apply_sandbox() and a hidden
`vbs __sandbox-exec` wrapper used by the scheduler for every action:

- unshare(CLONE_NEWUSER|CLONE_NEWNS|CLONE_NEWNET), map the caller to
  root, make mounts private, bind the project read-only, the build root
  (including .vbs snapshots) read-write, system/toolchain roots
  (/usr, /lib, /bin, /etc, Nix store, sysroot) read-only, /proc, /sys
  and /dev writable, an empty /tmp, then pivot_root and exec.
- `--sandbox=off|warn|strict` (or VBS_SANDBOX) on build/test/run;
  strict fails explicitly when the host lacks unprivileged user
  namespaces, warn degrades to an unsandboxed run with a warning.
- vbs doctor reports sandbox availability; CI runs a strict smoke build
  when the runner allows user namespaces.

Implementation notes: the sandbox root is a bind mount (tmpfs inside a
user namespace returns EOVERFLOW on this kernel), read-only remounts
that the kernel refuses for inherited mounts degrade to writable binds,
and the project remount is required.

Verified: fullV1Tests.sandbox_strict_allows_project_builds_and_hides_
outside_files passes (strict build succeeds; an action reading an
outside file fails), vbs_core_tests 8/8, CLI contracts pass,
clang-format clean.
2026-12-06 19:45:07 +03:00
faumaray 2dec3e9259 feat(test,explain,trace): repetition controls, action explanations, Chrome traces
VoidBuildSystem CI / 1 · Requirements (push) Successful in 5s
VoidBuildSystem CI / 2A · Linux build (debug) (push) Successful in 1m54s
VoidBuildSystem CI / 2B · Windows Wine build (debug) (push) Successful in 1m50s
VoidBuildSystem CI / 2A · Linux build (sanitizers) (push) Successful in 3m48s
VoidBuildSystem CI / 2A · Linux build (relwithdebinfo) (push) Successful in 4m8s
VoidBuildSystem CI / 2B · Windows Wine build (relwithdebinfo) (push) Successful in 4m1s
VoidBuildSystem CI / 3A · Linux test (sanitizers) (push) Successful in 40s
VoidBuildSystem CI / 3B · Windows Wine test (debug) (push) Successful in 16s
VoidBuildSystem CI / 3B · Windows Wine test (relwithdebinfo) (push) Successful in 19s
VoidBuildSystem CI / 3A · Linux test (relwithdebinfo) (push) Successful in 6m56s
VoidBuildSystem CI / 3A · Linux test (debug) (push) Successful in 7m3s
VoidBuildSystem CI / 4A2 · VBS installers (linux target) (push) Successful in 4m31s
VoidBuildSystem CI / 4A2 · VBS installers (windows target) (push) Successful in 3m51s
VoidBuildSystem CI / 5 · Release (push) Skipped
Test runner gains CTest/Meson parity controls: --repeat
until-fail|until-pass|after-timeout[:N], --retry N, --shuffle
[--shuffle-seed N] and --stop-on-failure (which also skips the remaining
profiles).

`vbs explain` answers "why would this action run?" without executing
anything: Execution::explain_graph compares each selected action against
the CAS record (missing record, changed discovered inputs, changed or
missing outputs, restorable outputs, shared-remote-cache hits) and
reports text or JSON.

`vbs build|test --trace FILE` writes a Chrome trace (JSON) with build
phase spans (config, toolchain, eval, snapshot, graph, total) and
per-action spans from the scheduler events.

Verified: new FullV1Tests cases (repetition/shuffle/stop-on-failure and
explain/trace) pass, and the CLI contract suite passes.
2026-12-06 16:50:38 +03:00
faumaray b2c869961a fix(toolchain): do not pass the compiler's implicit include dirs
VoidBuildSystem CI / 4A2 · VBS installers (linux target) (push) Successful in 3m58s
VoidBuildSystem CI / 1 · Requirements (push) Successful in 7s
VoidBuildSystem CI / 2A · Linux build (debug) (push) Successful in 3m28s
VoidBuildSystem CI / 2A · Linux build (sanitizers) (push) Successful in 5m13s
VoidBuildSystem CI / 2A · Linux build (relwithdebinfo) (push) Successful in 4m4s
VoidBuildSystem CI / 3A · Linux test (debug) (push) Successful in 6m7s
VoidBuildSystem CI / 3A · Linux test (relwithdebinfo) (push) Successful in 6m2s
VoidBuildSystem CI / 3A · Linux test (sanitizers) (push) Successful in 1m19s
VoidBuildSystem CI / 2B · Windows Wine build (debug) (push) Successful in 1m38s
VoidBuildSystem CI / 2B · Windows Wine build (relwithdebinfo) (push) Successful in 3m11s
VoidBuildSystem CI / 3B · Windows Wine test (debug) (push) Successful in 16s
VoidBuildSystem CI / 3B · Windows Wine test (relwithdebinfo) (push) Successful in 17s
VoidBuildSystem CI / 4A2 · VBS installers (windows target) (push) Failing after 1m33s
VoidBuildSystem CI / 5 · Release (push) Failing after 9s
VoidLibrary's dependency detection exports /usr/include as a system
include directory; passing it as -isystem makes GCC drop its implicit
entry for that path, so libstdc++'s '#include_next <stdlib.h>' fails
('stdlib.h: No such file or directory'). This broke the self-hosted
install only in environments where the dependency finds Boost/OpenSSL.

Probe the implicit include search list for GCC as well as Clang and
skip those directories when lowering compile commands. Also log the
executed command at debug level.

Verified: 'vbs install' (self-hosted) now succeeds inside an Arch
container matching the CI image.
2026-12-06 13:08:22 +03:00
faumaray 09c0a91d1d 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
2026-12-03 12:36:21 +03:00
faumaray d3d2666965 feat: add Plan 20 Slice 1 CMake native translation, self-test smoke target, VL-009 VOID_TEST check, and warm-cache hardening
VoidBuildSystem CI / build-and-test-gcc16 (push) Failing after 5s
2026-11-27 05:38:18 +03:00
faumaray 363fb8200e feat: adopt VoidLibrary VL-001..VL-013, self-building build.cpp, live logs, and generated CLI help
VoidBuildSystem CI / build-and-test-gcc16 (push) Failing after 10s
2026-11-27 01:43:06 +03:00
faumaray ab64147f9d Implement VoidBuildSystem v1 (Plans 01-19) with VoidLibrary integration
VoidBuildSystem CI / build-and-test-gcc16 (push) Failing after 3s
2026-11-26 20:45:54 +03:00