v0.3.13-pre.008
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
// file: crates/ksp-worker-raw-transaction-ingest-lib/tests/dependency_boundary.rs
|
||||
// version: 23
|
||||
// version: 24
|
||||
|
||||
//! Dependency firewall canaries for the RAW transaction ingest Worker foundation.
|
||||
|
||||
@@ -568,3 +568,39 @@ fn v0_3_12_pre_008_worker_observes_transport_reconnect_replay_and_faults_only_on
|
||||
}
|
||||
return;
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn v0_3_13_pre_008_cross_source_convergence_reuses_store_and_transport_facades_only() {
|
||||
let root = include_str!("../src/lib.rs");
|
||||
let persistence = include_str!("../src/persistence.rs");
|
||||
let runtime = include_str!("../src/runtime.rs");
|
||||
let resources = include_str!("../src/runtime_resources.rs");
|
||||
for required in [
|
||||
"RawTransactionIngestPersistenceConvergence",
|
||||
"persist_raw_transaction_ingest_converged_acquisition",
|
||||
"RawTransactionIngestPersistencePort",
|
||||
"record_raw_transaction_observation",
|
||||
"RawTransactionObservationWrite",
|
||||
"payload().content_hash()",
|
||||
"content_conflict_error()",
|
||||
] {
|
||||
assert!(persistence.contains(required) || root.contains(required), "required pre.008 persistence convergence contract missing: {required}");
|
||||
}
|
||||
for required in [
|
||||
"RawTransactionIngestGlobalHydrationRegistry",
|
||||
"fetch_hydration_shared",
|
||||
"subscribe_or_lead",
|
||||
"get_transaction_observed",
|
||||
"settings.admission_queue_capacity()",
|
||||
] {
|
||||
assert!(resources.contains(required), "required pre.008 hydration convergence contract missing: {required}");
|
||||
}
|
||||
assert!(runtime.contains("settings.admission_queue_capacity().max(settings.persistence_concurrency())"));
|
||||
for forbidden in ["ksp_store_postgres_lib::", "reqwest::", "tonic::", "yellowstone_grpc_proto::", "ksp_job_backfill_lib::", "unbounded_channel"] {
|
||||
assert!(
|
||||
!persistence.contains(forbidden) && !runtime.contains(forbidden) && !resources.contains(forbidden),
|
||||
"pre.008 convergence crossed a dependency/boundedness boundary: {forbidden}"
|
||||
);
|
||||
}
|
||||
return;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user