Files
Build-System/docs/roadmap/19-quality-performance-ci.md
faumaray ab64147f9d
VoidBuildSystem CI / build-and-test-gcc16 (push) Failing after 3s
Implement VoidBuildSystem v1 (Plans 01-19) with VoidLibrary integration
2026-11-26 20:45:54 +03:00

67 lines
4.6 KiB
Markdown

# 19 — Quality, performance and CI
Implementation status: IMPLEMENTED & VERIFIED (2026-11-26). See
[STATE](../agent-workflow/STATE.md) and [VERIFICATION](../agent-workflow/VERIFICATION.md)
for implemented files, benchmarks, CI template, and observed checks.
## Requirements and ownership
- Requirements: R-005, R-007, R-008, R-011, R-014, R-015, R-016.
- Delivery phase: Every milestone and full v1 hardening.
- Intended configured role: sol_implementer at XHigh; fresh astra_reviewer acceptance.
- Dependencies: Each feature's concrete contracts; 01 supplies initial test harness. Future CI environment must be inspected before workflow activation.
- Proposed exclusive implementation scope: tests/integration/, tests/adversarial/, benchmarks/, CI workflow files under a separately approved owner; root owns acceptance evidence.
Before dispatch, reconcile these paths with the real HEAD, write a full task spec,
lint it, and transfer shared-file ownership explicitly. Paths that do not yet exist
are NEW. Source-disjoint work still coordinates shared state, ports and build directories.
## Design and interfaces
- Use deterministic unit/property tests for models and algorithms, subprocess integration for lifecycle/recovery, real compiler fixtures for semantic correctness and browser tests for registry UI.
- Test initial GCC16.2 and Clang23.1.3 target drivers separately from the GCC16 host build. Record stdlib/toolchain identities and capability exceptions; a skipped unsupported matrix entry is not a pass.
- Maintain mutation, snapshot, negative-lookup, generated-input, module, compdb-race, lock-race, provider and registry failure suites. Inject failures at publication boundaries and compare with clean execution.
- Use Void::Testing where appropriate and verify nonzero registered test cases. Test code itself is reviewed; assertions must check observable outcomes rather than merely repeat implementation steps.
- Benchmark clean/no-op/single-source/transitive-header/source-set/module/profile/cache/watch scenarios on documented fixture sizes. Track hashing/capture work and compiler launches separately; no unmeasured numerical SLA.
- Add CI only for verified runner/toolchain provisioning. Avoid copying secrets into source artifacts, cache logs or Nix store inputs. Preserve exact failed commands and unrun prerequisites.
## Implementation sequence
1. Establish test conventions, isolated resources and required feature acceptance mappings.
2. Add deterministic adverse fixtures alongside each implementation, not as a final cleanup phase.
3. Define measured benchmark baselines and nonflaky regression thresholds from observed variance.
4. Configure CI with pinned prerequisites, sanitizer jobs, artifact/log retention and clean self-host checks after local evidence.
## Failure behavior and boundaries
- No success from zero tests, ignored child status, skipped compiler matrix or absent tools.
- Do not weaken assertions to hide architecture bugs or retry infrastructure errors as if code were invalid.
- After two failed repair cycles on one issue, preserve evidence and route changed-hypothesis diagnosis to Astra.
- Fresh adversarial review remains required even when automated tests pass.
## Acceptance scenarios
1. Harness deliberately failing/zero-registration cases are detected.
2. Failure-injection fixtures fail when publication/cancellation protections are removed.
3. Benchmarks report reproducible fixture/toolchain/context and distinguish cache warmup.
4. CI cannot pass after skipping required compiler or stage-self-host checks.
5. Documentation/requirement mapping and task ownership stay consistent with observed source.
## Verification and integration gate
Use actual project commands from README once present; each future fixture/runner gets concrete discovered commands in its task spec. Initial acceptance is CMake + CTest local/pinned source, not an invented native vbs command.
Acceptance requires observed results for these scenarios, the affected regression
suite, reviewed cross-component contracts, and a fresh independent review. Record
unrun checks and environment limitations; tests passing alone do not waive an invariant.
No merge, push or deployment is authorized by a review verdict.
## VoidLibrary reuse and upstream candidates
Void Testing/TestingMock/Time/observability where validated. Generic deterministic failure-injection and reporting utilities may become upstream candidates.
Shared invariants and input/publication policies are defined in
[ARCHITECTURE](ARCHITECTURE.md); requirement authority is
[REQUIREMENTS](REQUIREMENTS.md). Return implementation evidence to
[VERIFICATION](../agent-workflow/VERIFICATION.md).