f03524628b9ba7fd554b3541b16d156b55529669
8
Commits
| Author | SHA1 | Message | Date | |
|---|---|---|---|---|
|
|
f03524628b |
feat(features): additive C++ feature flags (G2)
VoidBuildSystem CI / 1 · Requirements (push) Successful in 8s
VoidBuildSystem CI / 2A · Linux build (debug) (push) Successful in 2m47s
VoidBuildSystem CI / 2A · Linux build (coverage) (push) Successful in 2m53s
VoidBuildSystem CI / 2A · Linux build (sanitizers) (push) Successful in 3m36s
VoidBuildSystem CI / 2B · Windows Wine build (debug) (push) Successful in 1m57s
VoidBuildSystem CI / 2B · Windows Wine build (relwithdebinfo) (push) Successful in 3m23s
VoidBuildSystem CI / 3B · Windows Wine test (debug) (push) Successful in 25s
VoidBuildSystem CI / 3B · Windows Wine test (relwithdebinfo) (push) Successful in 24s
VoidBuildSystem CI / 2A · Linux build (relwithdebinfo) (push) Successful in 6m1s
VoidBuildSystem CI / 3A · Linux test (coverage) (push) Failing after 2m2s
VoidBuildSystem CI / 3A · Linux test (sanitizers) (push) Successful in 2m2s
VoidBuildSystem CI / 3A · Linux test (relwithdebinfo) (push) Failing after 6m54s
VoidBuildSystem CI / 3A · Linux test (debug) (push) Failing after 7m4s
VoidBuildSystem CI / 4A2 · VBS installers (linux target) (push) Skipped
VoidBuildSystem CI / 4A2 · VBS installers (windows target) (push) Skipped
VoidBuildSystem CI / 5 · Release (push) Skipped
- Project::feature(name, default_on) / FeatureDescription, Target's require_feature() (the `.requires` spelling is a C++20 keyword), and Dependency::when(feature) for optional dependencies. - --features a,b / --no-default-features on build, test, run, explain and deps resolve/update. Unification is additive: defaults (unless disabled) + features required by targets + requested features. - Enabled features add VBS_FEATURE_<NAME> compile definitions to every target, so action keys and the cache are feature-aware; switching the set invalidates cached actions. - Optional dependencies are filtered before resolution, so vbs.lock contains only active ones. - vbs explain --show-features prints the unified set with reasons (default/requested/required by target); vbs metadata lists declared features with their enabled state; the descriptor JSON carries features and target requirements. API note: features provide preprocessor-level configuration (defines), not ABI/layout changes across a feature boundary. Verified: features_unify_defines_and_invalidate_action_keys and optional_dependencies_follow_feature_selection pass; vbs_core_tests 8/8; CLI contracts pass; clang-format clean. |
||
|
|
8b21583eeb |
feat(trust): signed SLSA attestations and OSV advisory audit (G5)
VoidBuildSystem CI / 1 · Requirements (push) Successful in 8s
VoidBuildSystem CI / 2A · Linux build (debug) (push) Successful in 2m55s
VoidBuildSystem CI / 2B · Windows Wine build (debug) (push) Successful in 2m37s
VoidBuildSystem CI / 2A · Linux build (coverage) (push) Successful in 4m7s
VoidBuildSystem CI / 2A · Linux build (sanitizers) (push) Successful in 4m57s
VoidBuildSystem CI / 2B · Windows Wine build (relwithdebinfo) (push) Successful in 4m38s
VoidBuildSystem CI / 3B · Windows Wine test (debug) (push) Successful in 26s
VoidBuildSystem CI / 3B · Windows Wine test (relwithdebinfo) (push) Successful in 27s
VoidBuildSystem CI / 2A · Linux build (relwithdebinfo) (push) Successful in 8m38s
VoidBuildSystem CI / 3A · Linux test (coverage) (push) Failing after 29s
VoidBuildSystem CI / 3A · Linux test (sanitizers) (push) Successful in 1m36s
VoidBuildSystem CI / 3A · Linux test (debug) (push) Failing after 5m13s
VoidBuildSystem CI / 3A · Linux test (relwithdebinfo) (push) Failing after 5m4s
VoidBuildSystem CI / 4A2 · VBS installers (linux target) (push) Skipped
VoidBuildSystem CI / 4A2 · VBS installers (windows target) (push) Skipped
VoidBuildSystem CI / 5 · Release (push) Skipped
- vbs attest create renders an in-toto Statement v1 / SLSA provenance v1 predicate (subjects with sha256 digests, build definition with project/profile/targets/lock revision, internal parameters, run details) and wraps it in a DSSE envelope signed with the existing Ed25519 primitives over the PAE; creation fails closed without a signing backend. - vbs attest verify requires a trusted key, verifies the DSSE PAE signature, checks the statement type and requires every supplied artifact digest to be covered; wrong artifacts, tampered payloads and untrusted keys are rejected. - vbs audit matches OSV advisories (array or "vulnerabilities" object; introduced/fixed/last_affected/limit ranges and exact versions) against every package entry in vbs.lock, with --severity-threshold and --json; findings fail the command. - vbs doctor reports Ed25519 signing availability. Implemented with VoidLibrary: Void::Text::Base64 (DSSE payload), Void::Json::Strict (statement/envelope/audit output), Void::Semver (version ranges), Void::Str, plus the existing Signing primitives. Verified: attest_create_and_verify_detects_tampering and audit_matches_osv_advisories_against_lock pass; CLI contracts pass; clang-format clean. |
||
|
|
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. |
||
|
|
11d4a3f5d7 |
feat: Build Event Protocol stream and vbs new (G1, F7)
VoidBuildSystem CI / 1 · Requirements (push) Successful in 3s
VoidBuildSystem CI / 2A · Linux build (debug) (push) Successful in 2m18s
VoidBuildSystem CI / 2A · Linux build (coverage) (push) Successful in 3m10s
VoidBuildSystem CI / 2B · Windows Wine build (debug) (push) Successful in 1m51s
VoidBuildSystem CI / 2A · Linux build (sanitizers) (push) Successful in 5m2s
VoidBuildSystem CI / 2A · Linux build (relwithdebinfo) (push) Successful in 4m25s
VoidBuildSystem CI / 2B · Windows Wine build (relwithdebinfo) (push) Successful in 3m26s
VoidBuildSystem CI / 3A · Linux test (coverage) (push) Failing after 1m29s
VoidBuildSystem CI / 3A · Linux test (sanitizers) (push) Successful in 35s
VoidBuildSystem CI / 3B · Windows Wine test (debug) (push) Successful in 18s
VoidBuildSystem CI / 3B · Windows Wine test (relwithdebinfo) (push) Successful in 17s
VoidBuildSystem CI / 3A · Linux test (debug) (push) Failing after 6m57s
VoidBuildSystem CI / 3A · Linux test (relwithdebinfo) (push) Failing after 7m56s
VoidBuildSystem CI / 4A2 · VBS installers (linux target) (push) Skipped
VoidBuildSystem CI / 4A2 · VBS installers (windows target) (push) Skipped
VoidBuildSystem CI / 5 · Release (push) Skipped
--bep FILE on build/test/run writes a newline-delimited JSON event stream (build_started, profile_started, action_started, action_finished, test_finished with the exit code, build_finished), serialized with Void::Json::Strict. vbs new is a Cargo-style alias of init with the same project templates. Verified: bep_stream_contains_build_action_and_test_events passes (all event kinds present, failing test carries a non-zero exit code) and the CLI contract suite passes; clang-format clean. |
||
|
|
55f93d5c1c |
feat: tree, fmt, lint and install-binary (G1 continued)
VoidBuildSystem CI / 1 · Requirements (push) Successful in 4s
VoidBuildSystem CI / 2A · Linux build (debug) (push) Successful in 2m6s
VoidBuildSystem CI / 2A · Linux build (coverage) (push) Successful in 2m19s
VoidBuildSystem CI / 2A · Linux build (sanitizers) (push) Successful in 3m19s
VoidBuildSystem CI / 2B · Windows Wine build (debug) (push) Successful in 1m51s
VoidBuildSystem CI / 2A · Linux build (relwithdebinfo) (push) Successful in 4m18s
VoidBuildSystem CI / 2B · Windows Wine build (relwithdebinfo) (push) Successful in 3m40s
VoidBuildSystem CI / 3A · Linux test (coverage) (push) Failing after 35s
VoidBuildSystem CI / 3B · Windows Wine test (debug) (push) Successful in 19s
VoidBuildSystem CI / 3B · Windows Wine test (relwithdebinfo) (push) Successful in 17s
VoidBuildSystem CI / 3A · Linux test (sanitizers) (push) Successful in 52s
VoidBuildSystem CI / 3A · Linux test (debug) (push) Failing after 5m50s
VoidBuildSystem CI / 3A · Linux test (relwithdebinfo) (push) Failing after 6m55s
VoidBuildSystem CI / 4A2 · VBS installers (linux target) (push) Skipped
VoidBuildSystem CI / 4A2 · VBS installers (windows target) (push) Skipped
VoidBuildSystem CI / 5 · Release (push) Skipped
- vbs tree prints the resolved lock contexts (source kind, version, features, build-only) and reports packages resolved to multiple versions with --duplicates. - vbs fmt formats or checks owned C/C++ sources with clang-format, supports explicit paths (resolved against --project), --changed-only via git, and skips build/VCS/vendor directories. - vbs lint runs clang-tidy against the build's compile_commands.json with --fix and --warnings-as-errors, --changed-only included. - vbs install-binary picks the newest release with Void::Semver ordering, selects the host os/arch variant by default, verifies signatures when trusted keys are configured, SHA-256-verifies the download and installs into <prefix>/bin. Verified: tree_prints_lock_entries_and_reports_duplicates, fmt_check_detects_unformatted_files_and_fixes_them and the CLI contract suite pass; clang-format clean. |
||
|
|
76f1e2a48c |
feat: lifecycle commands and native compiler caching (G1, G7)
VoidBuildSystem CI / 1 · Requirements (push) Successful in 3s
VoidBuildSystem CI / 2B · Windows Wine build (debug) (push) Successful in 2m30s
VoidBuildSystem CI / 2A · Linux build (debug) (push) Successful in 2m40s
VoidBuildSystem CI / 2A · Linux build (coverage) (push) Successful in 3m4s
VoidBuildSystem CI / 2A · Linux build (sanitizers) (push) Successful in 4m16s
VoidBuildSystem CI / 2A · Linux build (relwithdebinfo) (push) Successful in 5m48s
VoidBuildSystem CI / 2B · Windows Wine build (relwithdebinfo) (push) Successful in 4m18s
VoidBuildSystem CI / 3A · Linux test (coverage) (push) Failing after 1m20s
VoidBuildSystem CI / 3A · Linux test (sanitizers) (push) Successful in 29s
VoidBuildSystem CI / 3B · Windows Wine test (debug) (push) Successful in 16s
VoidBuildSystem CI / 3B · Windows Wine test (relwithdebinfo) (push) Successful in 18s
VoidBuildSystem CI / 3A · Linux test (debug) (push) Failing after 6m4s
VoidBuildSystem CI / 3A · Linux test (relwithdebinfo) (push) Failing after 6m28s
VoidBuildSystem CI / 4A2 · VBS installers (linux target) (push) Skipped
VoidBuildSystem CI / 4A2 · VBS installers (windows target) (push) Skipped
VoidBuildSystem CI / 5 · Release (push) Skipped
G1 (start): - vbs run builds an executable target, passes program args through `--`, inherits stdio via Void::Process (interactive programs keep the terminal) and returns the program's exit code; Windows targets run under Wine. - vbs metadata emits a schema-versioned workspace document built with Void::Json::Strict: roots, profile/compiler, targets (sources, includes, links, labels, install rules), dependencies and the lockfile revision. - vbs why walks the target graph root -> target, or explains a dependency and the targets linking it. - vbs add NAME[@RANGE] / vbs remove NAME edit vbs.deps.toml (canonical, comment-preserving block editing), validate ranges with Void::Semver::parse_range and refresh vbs.lock via the resolver. - --frozen implies --locked --offline for build/test/run. G7 (native caching): - --native-cache off|auto|ccache|sccache (or VBS_NATIVE_CACHE) prepends ccache/sccache to compile actions only; the wrapper and real compiler are part of the action key, archive/link actions are untouched, and vbs doctor reports availability. VoidLibrary reuse: Void::Process (spawn with inherited stdio), Void::Json::Strict (metadata document), Void::Str (trim/split/prefix), Void::Semver (range validation), plus the existing SDK helpers (target_kind_name/visibility_name) instead of local duplicates. Verified: lifecycle_run_metadata_why_and_manifest_editing, native_cache_wrapper_is_lowered_into_compile_commands and native_cache_wraps_compile_actions pass; CLI contracts pass; clang-format clean. |
||
|
|
a12470c072 |
docs(plan): add the superiority executive summary to Plan 24
VoidBuildSystem CI / 1 · Requirements (push) Successful in 3s
VoidBuildSystem CI / 2A · Linux build (debug) (push) Successful in 3m6s
VoidBuildSystem CI / 2A · Linux build (coverage) (push) Successful in 3m22s
VoidBuildSystem CI / 2B · Windows Wine build (debug) (push) Successful in 1m50s
VoidBuildSystem CI / 2B · Windows Wine build (relwithdebinfo) (push) Successful in 3m27s
VoidBuildSystem CI / 2A · Linux build (sanitizers) (push) Successful in 6m3s
VoidBuildSystem CI / 2A · Linux build (relwithdebinfo) (push) Successful in 6m8s
VoidBuildSystem CI / 3B · Windows Wine test (debug) (push) Successful in 24s
VoidBuildSystem CI / 3B · Windows Wine test (relwithdebinfo) (push) Successful in 24s
VoidBuildSystem CI / 3A · Linux test (coverage) (push) Failing after 1m21s
VoidBuildSystem CI / 3A · Linux test (sanitizers) (push) Successful in 1m25s
VoidBuildSystem CI / 3A · Linux test (debug) (push) Successful in 6m2s
VoidBuildSystem CI / 3A · Linux test (relwithdebinfo) (push) Successful in 6m1s
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 the five decisive moves (Cargo-grade lifecycle, real C++ feature flags, per-package profiles with toolchain pinning, polyglot builds, and the trust layer), the remaining-track table, the existing wedge VBS must protect (explain, CAS/remote cache, deterministic default, nine installers, the registry, remote execution), and a concrete success condition. The positioning table and tracks are renumbered accordingly; the roadmap index describes the new summary. |
||
|
|
4b5ef128dc |
docs: add the gap-closure (23) and superiority (24) plans
VoidBuildSystem CI / 1 · Requirements (push) Successful in 7s
VoidBuildSystem CI / 2B · Windows Wine build (debug) (push) Successful in 2m5s
VoidBuildSystem CI / 2A · Linux build (debug) (push) Successful in 2m26s
VoidBuildSystem CI / 2A · Linux build (coverage) (push) Successful in 2m37s
VoidBuildSystem CI / 2A · Linux build (sanitizers) (push) Successful in 4m20s
VoidBuildSystem CI / 2A · Linux build (relwithdebinfo) (push) Successful in 5m0s
VoidBuildSystem CI / 2B · Windows Wine build (relwithdebinfo) (push) Successful in 3m29s
VoidBuildSystem CI / 3A · Linux test (coverage) (push) Failing after 1m40s
VoidBuildSystem CI / 3B · Windows Wine test (debug) (push) Successful in 21s
VoidBuildSystem CI / 3A · Linux test (sanitizers) (push) Successful in 1m10s
VoidBuildSystem CI / 3A · Linux test (debug) (push) Successful in 5m26s
VoidBuildSystem CI / 3B · Windows Wine test (relwithdebinfo) (push) Successful in 28s
VoidBuildSystem CI / 3A · Linux test (relwithdebinfo) (push) Successful in 6m4s
VoidBuildSystem CI / 4A2 · VBS installers (linux target) (push) Skipped
VoidBuildSystem CI / 4A2 · VBS installers (windows target) (push) Skipped
VoidBuildSystem CI / 5 · Release (push) Skipped
Plan 23 (Track F) re-baselines the gaps after Wave 146 and turns them into F1–F14 with planned interfaces, acceptance gates and milestones: hermetic sandboxing, Windows IPC/watcher/native backends, macOS/MSVC, multi-machine orchestration, registry mirrors/federation/keys/vcpkg, BEP, 10k scaling and changes-proportional snapshots, migration depth, native Windows CI, cross-platform determinism, PKG/APK/IFW installers, GUI/LSP polish and maintenance. Plan 24 (Track G) targets being better rather than equal, including against Cargo: Cargo-grade lifecycle commands, additive C++ feature flags (the current Dependency::feature is recorded but not applied), per-package profiles and toolchain pinning, polyglot Rust/Fortran/CUDA/Zig, SLSA attestations plus a sandboxed descriptor, versioned metadata schemas with DAP and plugin protocols, affected builds/tests and build scans, doctests/sharding/coverage gates/fuzzing, zero-config onboarding, the distribution ecosystem, policy-as-code with vbs ci, and two-way interop. Both plans are marked planned; the roadmap index, TASKS and STATE point at them. Also fixes the stale .github/workflows link in the roadmap index. |