operations capa

operations-test-results-ingest

cargo-nextest JUnit XML -> operations-test-results ledger ingester (the cargo test -> ledger bridge, sprint 1.2)

cargo-nextest JUnit XML -> operations-test-results ledger ingester (the cargo test -> ledger bridge, sprint 1.2)

Tieroperations
Roleunclassified (baselined)
Pathcrates/operations/test-results-ingest
Edition2021
Targetsoperations-test-results-ingest
Public items0 across 0 modules
Tests18

What it is for

operations-test-results-ingest — the report → ledger bridge.

Reads one report file — a cargo-nextest JUnit XML report, or a tools-extension-conformance check --json report (sprint 4.45) — and records ONE run (with one result per test or per rule verdict) into the frozen operations-test-results ledger via the atomic record_complete_run sink. It never shells out (the wrapper script runs nextest; the pre-commit hook runs the checker); it reads exactly the one file path given, capped in size, and fails loud on any parse/DB error so a partial run is never recorded.

Usage:

operations-test-results-ingest from-junit <path> \
--project P --suite S --git-sha X --branch B --source SRC \
--database-url URL
operations-test-results-ingest from-conformance <path> same flags

DB URL resolution order: --database-url, then $LEDGER_TEST_DB, then $DATABASE_URL.

Capabilities

No public items.

How to use it

No examples/ target and no doctest in this crate's rustdoc. The tests listed under Verification are the closest executable usage.

Module structure

No public modules: the crate root is its whole surface.

Public surface

No public items.

No pub use re-exports: every item above is declared in this crate.

Boundary

Reaches into infrastructure.

Shares tier operations with 40 other crates: operations-approval-workflow, operations-assessments, operations-block-imaging, operations-boot-media, operations-browser-agent-worker, operations-camera-discovery, operations-camera-liveview, operations-camera-registry, … (40 total).

_What this crate deliberately does NOT own is a judgment. No committed registry records one for it, so none is stated here._

Where it sits

Tier (ontology)operations
Architectural role (taxonomy)unclassified (baselined)
Locationcrates/operations/test-results-ingest
Vocabulary in force (lexicon)current

Tier flow. Which tiers this crate's own edges cross.

flowchart LR
  n_operations["operations"] --> n_infrastructure["infrastructure"]

Dependencies

Runtime, in this workspace.

CrateTierOptionalOnly on
`infrastructure-tenant-pool`infrastructurenoalways
`operations-test-results`operationsnoalways

Runtime, from outside the workspace.

CrateRequirementFeaturesOptionalOnly on
quick-xml^0.41noalways
serde^1derivenoalways
serde_json^1noalways
sqlx^0.8runtime-tokio, postgres, chrono, uuid, jsonnoalways
tokio^1fullnoalways
uuid^1v4, v7, serde, js, v4, serdenoalways

Development, from outside the workspace.

CrateRequirementFeaturesOptionalOnly on
tempfile^3noalways

Build. None.

Depended on by. Nothing in this workspace.

Signal flow — what reaches this crate, and what it reaches.

flowchart LR
  SELF["operations-test-results-ingest"]
  SELF -->|runtime| n_infrastructure_tenant_pool["infrastructure-tenant-pool"]
  SELF -->|runtime| n_operations_test_results["operations-test-results"]
  classDef self fill:#1f883d,stroke:#1f883d,color:#fff;
  class SELF self;

Feature flags

No Cargo features are defined: every capability is unconditional, so no consumer can receive a half-wired crate.

Targets

KindNameSource
binoperations-test-results-ingest`src/main.rs`

Error model

No public error type was detected: no public item declares a type named *Error, and no public signature returns one.

Operational characteristics

PropertyEvidence
async public surfacenone detected
async runtimeyes
database accessyes
network I/Onone detected
unsafe codenone detected
environment variablesyes

No unsafe block, unsafe fn, unsafe impl or unsafe trait was found by the parser anywhere in this crate's source.

Configuration

VariableRead in
DATABASE_URLsrc/main.rs
LEDGER_TEST_DBsrc/main.rs

No workspace crate depends on this one.

Verification

KindCount
Unit tests18
Integration tests0
Examples0
Doctests0

What the tests establish, by name:

Documentation coverage

MeasureDocumentedTotal
Public items with rustdoc00
Public modules with a //! block00

Metrics

MetricValue
Rust source files4
Source lines1273
Code lines1001
Public API items0
Public modules0
Tests18
Examples0
Cargo features0
Direct runtime dependencies8
Workspace reverse dependencies0
pie showData
    title Rust source composition
    "Code" : 1001
    "Blank or comment" : 272

Generation

Rendered by tools-corpus corpus readme from repository evidence alone, renderer schema 2, lexicon current. No model, network service or database was consulted. Regenerate with tools-corpus corpus readme --write; verify with --check.

Todas las operations · Manual