Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/rfc0024-deep-run.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ jobs:
PROPTEST_CASES: "512"
run: |
cargo test -p ourios-testgen --release
cargo test -p ourios-miner --release --test rfc0024_properties
cargo test -p ourios-miner --release --test it rfc0024_properties
cargo test -p ourios-parquet --release --test it rfc0024_properties
cargo test -p ourios-querier --release --test it rfc0024_properties
cargo test -p ourios-bench --release --test rfc0024_calibration
18 changes: 18 additions & 0 deletions crates/ourios-miner/tests/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
# Integration-test layout (RFC 0028 slice 2)

`it/` is the consolidated harness — one compiled binary for this crate's
integration tests (RFC 0028 §3.1; the per-binary link cost dominated
`cargo test` wall time). New integration tests go in `it/<name>.rs` plus a
`mod` line in `it/main.rs`, unless they belong on the exempt list below.

## Harness-exempt binaries (RFC0028.2)

Each of these installs the **process-global** OTel meter provider
(`ourios_telemetry::init_in_memory`) for one telemetry arm. OpenTelemetry
cannot restore a replaced global, so two installers in one process race
each other; they stay one-per-binary:

- `invariants.rs` — the §6.5 param-overflow metrics arm.
- `hazards.rs` — the per-service overflow-rate alert-threshold arm.
- `rfc0023_bounded_memory.rs` — the template-ceiling/eviction metrics arm.
- `rfc_internal.rs` — the confidence-gauge quantile arm.
14 changes: 14 additions & 0 deletions crates/ourios-miner/tests/it/main.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
//! The consolidated miner integration-test harness (RFC 0028 slice 2).
//!
//! Three binaries fold here (RFC 0028 §1 / epic #382 — per-binary link
//! cost dominates `cargo test` wall time); files moved verbatim from
//! `tests/*.rs`, test names gaining only this harness's module-path
//! prefix (RFC0028.1). Four binaries stay dedicated (RFC0028.2):
//! `invariants.rs`, `hazards.rs`, `rfc0023_bounded_memory.rs`, and
//! `rfc_internal.rs` each install the process-global `OTel` meter
//! provider (`init_in_memory`) for one telemetry arm, and two installers
//! in one process race — see `tests/README.md`.

mod rfc0004_configuration_policy;
mod rfc0017_template_created;
mod rfc0024_properties;