pub enum Response {
Show 20 variants
ContextReady {
protocol_version: u32,
context_id: String,
inventory_hash: String,
},
CollectionComplete {
node_count: usize,
duration_ms: u64,
},
TestList {
node_ids: Vec<String>,
},
InventoryData {
hash: String,
collected_at: u64,
nodes: Vec<TestNodeInfo>,
},
RunComplete {
total: usize,
passed: usize,
failed: usize,
skipped: usize,
errors: usize,
duration_ms: u64,
},
WorkerStatus {
active_workers: u32,
idle_workers: u32,
tests_executed: u64,
avg_test_duration_ms: u64,
},
WorkerConfigAck {
num_workers: u32,
},
ShutdownAck,
Pong,
RunStarted {
run_id: String,
total_tests: usize,
},
RunProgress {
run_id: String,
total: usize,
completed: usize,
running: usize,
done: bool,
results: Vec<TestResultInfo>,
},
Error {
code: ErrorCode,
message: String,
},
FlakinessReport {
flaky_tests: Vec<FlakinessInfo>,
unstable_tests: Vec<FlakinessInfo>,
stable_count: usize,
total_tracked: usize,
},
TestFlakiness {
node_id: String,
failure_rate: f64,
is_flaky: bool,
flaky_streak: u32,
consecutive_failures: u32,
consecutive_passes: u32,
total_runs: u32,
recent_outcomes: Vec<String>,
},
RerunConfig {
enabled: bool,
max_reruns: u32,
only_flaky: bool,
delay_ms: u32,
},
FixtureConfig {
enabled: bool,
max_fixture_age_seconds: f64,
teardown_on_conftest_change: bool,
teardown_on_test_file_change: bool,
scopes_to_reuse: Vec<String>,
},
SessionStatus {
session_id: String,
repo_path: String,
created_at: f64,
last_run_at: f64,
total_runs: u32,
enabled: bool,
},
ShardedTests {
shard_index: u32,
total_shards: u32,
node_ids: Vec<String>,
},
ShardInfo {
strategy: String,
total_shards: u32,
total_tests: usize,
shard_test_counts: Vec<usize>,
shard_durations_ms: Vec<u64>,
count_imbalance_percent: f64,
duration_imbalance_percent: f64,
estimated_wall_time_ms: u64,
},
ConfigAck {
config_type: String,
config: Value,
},
}Expand description
Responses sent from daemon to CLI.
Variants§
ContextReady
Context successfully initialized.
Fields
CollectionComplete
Collection completed.
Fields
TestList
List of test node IDs matching the query.
InventoryData
Detailed inventory data.
Fields
§
nodes: Vec<TestNodeInfo>Test nodes with metadata.
RunComplete
Run completed.
Fields
WorkerStatus
Worker pool status.
Fields
WorkerConfigAck
Worker configuration acknowledged.
ShutdownAck
Shutdown acknowledged.
Pong
Pong response to ping.
RunStarted
Streaming run started.
Fields
RunProgress
Progress update with any completed test results.
Fields
Error
Error response.
FlakinessReport
Flakiness report for tracked tests.
Fields
TestFlakiness
Flakiness info for a single test.
Fields
RerunConfig
Rerun configuration.
Fields
FixtureConfig
Fixture configuration.
Fields
SessionStatus
Session status.
Fields
ShardedTests
Tests assigned to a shard.
Fields
ShardInfo
Sharding distribution info.
Fields
ConfigAck
Generic config acknowledgment.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Response
impl<'de> Deserialize<'de> for Response
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl StructuralPartialEq for Response
Auto Trait Implementations§
impl Freeze for Response
impl RefUnwindSafe for Response
impl Send for Response
impl Sync for Response
impl Unpin for Response
impl UnwindSafe for Response
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more