Expand description
Local CI check executor harvested from HeddleCo/treadle.
Structs§
- Attempt
Record - Operational record for one flake-retry attempt.
- Cache
Key - Addresses a cached check result.
- Check
Result - One check’s verdict body and operational sidecars.
- Command
Outcome - Captured outcome of one external runtime command.
- Docker
Provider - Docker-CLI provider. Local CLI does not select this automatically.
- Execution
Context - Facts about the exact state/tree being evaluated.
- Fake
Provider - A recording command runner with configurable
docker runfailure. - FsResult
Cache - Directory-backed cache. Entries are JSON files named by the entry digest.
- Hermetic
Env - Builder for the exact environment both executed and recorded in
repro. - Memory
Result Cache - Process-local cache used by tests and as a seed/hit fixture.
- Noop
Provider - Provider for local mode: no implicit container runtime.
- Prepared
Caches - Prepared cache slots for one check.
- Proc
Group Registry - Concurrency-safe set of process-group ids.
- Real
Command Runner - Real external-command boundary used by
DockerProvider. - Result
Cache Entry - A portable cached check result, bound to env, inputs, and check identity.
- RunControls
- Additive execution controls.
- RunOptions
- Stable options for an executor invocation.
- Running
Services - Provider handles for services started for one check.
- Spot
Check Divergence - Details of a fail-closed spot-check disagreement.
Enums§
- Disposition
- Terminal process disposition before output classification.
- Result
Cache Error - Errors from cache I/O or a fail-closed spot-check disagreement.
- Service
Error - Service provisioning failure.
- Spot
Check - Policy for re-running a sampled fraction of cache hits.
Constants§
- BASE_
ALLOWLIST - Host variables needed to locate ordinary POSIX/Rust tooling.
- CACHE_
ENV_ PREFIX - Prefix for every cache-directory environment variable.
- EXCERPT_
CAP_ BYTES - Maximum bytes stored in a verdict failure excerpt.
- GIT_
IDENTITY_ EMAIL - Deterministic Git author/committer email.
- GIT_
IDENTITY_ NAME - Deterministic Git author/committer name.
- RESULT_
CACHE_ SCHEMA_ VERSION - Schema version of
ResultCacheEntry. Bump when the bytes change.
Traits§
- Command
Runner - Boundary around external container-runtime commands.
- Result
Cache - Lookup and seed a content-addressed result cache.
- Service
Provider - Service lifecycle provider used by the executor.
Functions§
- classify
- Classify a process result. Disposition always wins over captured text.
- evidence_
digest - Domain-separated BLAKE3 of captured check output.
- extract_
excerpt - Extract the last causal-looking region and cap it without splitting UTF-8.
- prepare_
caches - Create declared cache slots under
cache_root. A failed cache creation degrades to a cold build. - run_
checks - Run every check with default controls.
- run_
checks_ with - Run checks with explicit trigger/cache/environment controls.
- strip_
ansi - Remove CSI, OSC, two-byte escape sequences, and stray controls. Newlines and tabs are preserved.