cargo-nextest JUnit XML -> operations-test-results ledger ingester (the cargo test -> ledger bridge, sprint 1.2)
| Tier | operations |
| Role | unclassified (baselined) |
| Path | crates/operations/test-results-ingest |
| Edition | 2021 |
| Targets | operations-test-results-ingest |
| Public items | 0 across 0 modules |
| Tests | 18 |
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) |
| Location | crates/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.
| Crate | Tier | Optional | Only on |
|---|---|---|---|
| `infrastructure-tenant-pool` | infrastructure | no | always |
| `operations-test-results` | operations | no | always |
Runtime, from outside the workspace.
| Crate | Requirement | Features | Optional | Only on |
|---|---|---|---|---|
quick-xml | ^0.41 | — | no | always |
serde | ^1 | derive | no | always |
serde_json | ^1 | — | no | always |
sqlx | ^0.8 | runtime-tokio, postgres, chrono, uuid, json | no | always |
tokio | ^1 | full | no | always |
uuid | ^1 | v4, v7, serde, js, v4, serde | no | always |
Development, from outside the workspace.
| Crate | Requirement | Features | Optional | Only on |
|---|---|---|---|---|
tempfile | ^3 | — | no | always |
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
| Kind | Name | Source |
|---|---|---|
| bin | operations-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
| Property | Evidence |
|---|---|
| async public surface | none detected |
| async runtime | yes |
| database access | yes |
| network I/O | none detected |
| unsafe code | none detected |
| environment variables | yes |
No unsafe block, unsafe fn, unsafe impl or unsafe trait was found by the parser anywhere in this crate's source.
Configuration
| Variable | Read in |
|---|---|
DATABASE_URL | src/main.rs |
LEDGER_TEST_DB | src/main.rs |
Related capabilities
No workspace crate depends on this one.
Verification
| Kind | Count |
|---|---|
| Unit tests | 18 |
| Integration tests | 0 |
| Examples | 0 |
| Doctests | 0 |
What the tests establish, by name:
a_staged_document_yields_one_report_per_extension_and_an_empty_one_is_refused—src/conformance.rsan_unsupported_verdict_alone_fails_the_run—src/conformance.rsanother_schema_or_an_empty_verdict_list_is_refused—src/conformance.rsevery_verdict_word_maps_and_an_unknown_one_is_refused—src/conformance.rsmeta_overrides_the_defaults_and_a_clean_report_is_a_passed_run—src/conformance.rsthe_report_maps_to_one_result_per_rule_with_the_verdict_in_metadata—src/conformance.rscaptures_cdata_diagnostic_body—src/junit.rsmalformed_time_fails_loud—src/junit.rsnested_suite_restores_outer_name—src/junit.rsoutcomes_and_missing_time—src/junit.rsa_removal_only_document_records_nothing_and_never_opens_the_database—src/main.rsan_unknown_subcommand_a_missing_path_and_an_unknown_flag_are_refused—src/main.rsboth_subcommands_parse_and_dash_is_a_path—src/main.rsbuild_input_refuses_an_empty_junit_and_a_foreign_conformance_schema—src/main.rsingest_fixture_lands_rows—src/main.rsthe_capped_read_accepts_the_cap_refuses_one_over_and_refuses_non_utf8—src/main.rsbinary_id_variants—src/map.rsparses_and_maps_fixture—src/map.rs
Documentation coverage
| Measure | Documented | Total |
|---|---|---|
| Public items with rustdoc | 0 | 0 |
Public modules with a //! block | 0 | 0 |
Metrics
| Metric | Value |
|---|---|
| Rust source files | 4 |
| Source lines | 1273 |
| Code lines | 1001 |
| Public API items | 0 |
| Public modules | 0 |
| Tests | 18 |
| Examples | 0 |
| Cargo features | 0 |
| Direct runtime dependencies | 8 |
| Workspace reverse dependencies | 0 |
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.