v0.3.14-pre.011
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
// file: crates/ksp-worker-raw-transaction-ingest-lib/tests/release_completeness.rs
|
||||
// version: 29
|
||||
// version: 30
|
||||
|
||||
//! Release-completeness canaries through the `v0.3.14-pre.010` repair backpressure/fairness tranche.
|
||||
//! Release-completeness canaries through the `v0.3.14-pre.011` gap observability tranche.
|
||||
|
||||
#[test]
|
||||
fn pre_010_production_module_inventory_is_exact() -> std::io::Result<()> {
|
||||
@@ -51,7 +51,7 @@ fn pre_010_production_module_inventory_is_exact() -> std::io::Result<()> {
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn pre_010_public_root_export_inventory_is_exact() {
|
||||
fn v0_3_14_pre_011_public_root_export_inventory_is_exact() {
|
||||
let root = include_str!("../src/lib.rs");
|
||||
let mut exports = std::vec::Vec::new();
|
||||
for line in root.lines() {
|
||||
@@ -94,9 +94,14 @@ fn pre_010_public_root_export_inventory_is_exact() {
|
||||
"MIN_RAW_TRANSACTION_INGEST_PERSISTENCE_CONCURRENCY",
|
||||
"MIN_RAW_TRANSACTION_INGEST_SHUTDOWN_DRAIN_TIMEOUT",
|
||||
"RAW_TRANSACTION_INGEST_WORKER_KIND_CODE",
|
||||
"RawTransactionIngestGapId",
|
||||
"RawTransactionIngestGapReason",
|
||||
"RawTransactionIngestGapSnapshot",
|
||||
"RawTransactionIngestGapState",
|
||||
"RawTransactionIngestHandle",
|
||||
"RawTransactionIngestHeliusTransactionSource",
|
||||
"RawTransactionIngestHttpBlockPollingSource",
|
||||
"RawTransactionIngestRepairMethod",
|
||||
"RawTransactionIngestRuntimeResources",
|
||||
"RawTransactionIngestSettings",
|
||||
"RawTransactionIngestSnapshot",
|
||||
@@ -386,3 +391,34 @@ fn v0_3_14_pre_010_repair_fairness_canaries_are_present_without_public_or_pipeli
|
||||
assert!(!root.contains("RawTransactionIngestFairTurnGate"));
|
||||
return;
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn v0_3_14_pre_011_gap_observability_canaries_are_present_without_source_identity_growth() {
|
||||
let continuity_tests = include_str!("../unit_tests/continuity.rs");
|
||||
let hardening = include_str!("hardening.rs");
|
||||
let public_api = include_str!("public_api.rs");
|
||||
let snapshot_tests = include_str!("../unit_tests/snapshot.rs");
|
||||
let root = include_str!("../src/lib.rs");
|
||||
for required in [
|
||||
"pre_011_gap_observability_projects_open_and_recent_repaired_entries",
|
||||
"v0_3_14_pre_011_snapshot_carries_checked_gap_observability",
|
||||
"v0_3_14_pre_011_gap_observability_is_public_bounded_and_source_neutral",
|
||||
] {
|
||||
assert!(
|
||||
continuity_tests.contains(required) || snapshot_tests.contains(required) || public_api.contains(required),
|
||||
"required pre.011 observability canary missing: {required}"
|
||||
);
|
||||
}
|
||||
assert!(hardening.contains("v0_3_14_pre_011_gap_observability_is_bounded_checked_and_redacted"));
|
||||
for required in [
|
||||
"RawTransactionIngestGapId",
|
||||
"RawTransactionIngestGapReason",
|
||||
"RawTransactionIngestGapSnapshot",
|
||||
"RawTransactionIngestGapState",
|
||||
"RawTransactionIngestRepairMethod",
|
||||
] {
|
||||
assert!(root.contains(required), "required pre.011 public type missing: {required}");
|
||||
}
|
||||
assert!(!root.contains("source_key"));
|
||||
return;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user