v0.3.10-pre.005

This commit is contained in:
2026-09-06 21:59:15 +02:00
parent eaf6fae94c
commit 0683b70abe
8 changed files with 815 additions and 70 deletions

View File

@@ -1,5 +1,5 @@
// file: crates/ksp-job-backfill-lib/tests/dependency_boundary.rs
// version: 7
// version: 8
//! Dependency firewall canaries through the concrete cancellation and latest-value runtime tranche.
@@ -40,6 +40,25 @@ fn pre_003_manifest_adds_common_raw_edge_without_crossing_store_or_runtime_bound
return;
}
#[test]
fn pre_005_websocket_parity_dependency_stays_test_only() {
let manifest = include_str!("../Cargo.toml");
let parts = manifest.splitn(2, "[dev-dependencies]").collect::<std::vec::Vec<_>>();
let (dependencies, dev_dependencies) = match parts.as_slice() {
[dependencies, dev_dependencies] => (*dependencies, *dev_dependencies),
_ => {
assert_eq!(parts.len(), 2, "Backfill manifest must retain exactly one dev-dependencies section");
return;
},
};
assert!(!dependencies.contains("tokio-tungstenite"), "WebSocket parity client must not become a production Backfill dependency");
assert!(
dev_dependencies.contains("tokio-tungstenite = { workspace = true, features = [\"handshake\"] }"),
"WebSocket parity client must remain an explicit test-only dependency",
);
return;
}
#[test]
fn pre_009_production_sources_keep_transport_store_and_scheduler_ownership_separate() {
let neutral_sources = [