Skip to main content

Request

Enum Request 

Source
pub enum Request {
Show 21 variants InitContext { protocol_version: u32, repo_path: String, python_path: Option<String>, execution_mode: Option<String>, }, Collect { context_id: String, force: bool, }, Run { context_id: String, node_ids: Vec<String>, workers: Option<u32>, maxfail: Option<u32>, }, List { context_id: String, keyword: Option<String>, marker: Option<String>, }, GetInventory { context_id: String, }, GetWorkerStatus { context_id: String, }, ConfigureWorkers { context_id: String, num_workers: u32, }, Shutdown { context_id: Option<String>, }, Ping, RunStream { context_id: String, node_ids: Vec<String>, workers: Option<u32>, maxfail: Option<u32>, }, GetRunProgress { context_id: String, run_id: String, }, GetFlakinessReport { context_id: String, }, GetTestFlakiness { context_id: String, node_id: String, }, ConfigureRerun { context_id: String, enabled: bool, max_reruns: u32, only_flaky: bool, delay_ms: u32, }, GetRerunConfig { context_id: String, }, RunWithRerun { context_id: String, node_ids: Vec<String>, workers: Option<u32>, maxfail: Option<u32>, }, ConfigureFixtureReuse { context_id: String, enabled: bool, max_age_seconds: f64, teardown_on_conftest_change: bool, }, GetFixtureConfig { context_id: String, }, GetSessionStatus { context_id: String, }, GetShard { context_id: String, node_ids: Vec<String>, shard_index: u32, total_shards: u32, strategy: String, }, GetShardInfo { context_id: String, node_ids: Vec<String>, total_shards: u32, strategy: String, },
}
Expand description

Commands sent from CLI to daemon.

Variants§

§

InitContext

Initialize a repository context within the daemon.

Fields

§protocol_version: u32

Protocol version for compatibility checking.

§repo_path: String

Absolute path to the repository root.

§python_path: Option<String>

Optional path to Python interpreter.

§execution_mode: Option<String>

Execution mode: “embedded”, “subprocess”, or “auto”.

§

Collect

Collect tests for a repository context.

Fields

§context_id: String

Context identifier returned from InitContext.

§force: bool

Force full re-collection even if cache is valid.

§

Run

Run a set of tests.

Fields

§context_id: String

Context identifier.

§node_ids: Vec<String>

List of test node IDs to run.

§workers: Option<u32>

Number of parallel workers (None = auto).

§maxfail: Option<u32>

Stop after N failures.

§

List

List tests matching filters (without running).

Fields

§context_id: String

Context identifier.

§keyword: Option<String>

Keyword expression filter.

§marker: Option<String>

Marker expression filter.

§

GetInventory

Get detailed inventory with full test metadata.

Fields

§context_id: String

Context identifier.

§

GetWorkerStatus

Get worker pool status.

Fields

§context_id: String

Context identifier.

§

ConfigureWorkers

Configure worker pool.

Fields

§context_id: String

Context identifier.

§num_workers: u32

Number of workers to maintain.

§

Shutdown

Shutdown the daemon or a specific context.

Fields

§context_id: Option<String>

If Some, shutdown only this context. If None, shutdown entire daemon.

§

Ping

Health check / ping.

§

RunStream

Start a streaming run (returns run_id, results come via GetRunProgress).

Fields

§context_id: String

Context identifier.

§node_ids: Vec<String>

List of test node IDs to run.

§workers: Option<u32>

Number of parallel workers (None = auto).

§maxfail: Option<u32>

Stop after N failures.

§

GetRunProgress

Get progress and results from a streaming run.

Fields

§context_id: String

Context identifier.

§run_id: String

Run identifier from RunStream response.

§

GetFlakinessReport

Get flakiness report for all tracked tests.

Fields

§context_id: String

Context identifier.

§

GetTestFlakiness

Get flakiness info for a specific test.

Fields

§context_id: String

Context identifier.

§node_id: String

Test node ID.

§

ConfigureRerun

Configure auto-rerun behavior.

Fields

§context_id: String

Context identifier.

§enabled: bool

Enable auto-rerun.

§max_reruns: u32

Maximum reruns per test.

§only_flaky: bool

Only rerun known flaky tests.

§delay_ms: u32

Delay between reruns in milliseconds.

§

GetRerunConfig

Get current rerun configuration.

Fields

§context_id: String

Context identifier.

§

RunWithRerun

Run tests with auto-rerun enabled.

Fields

§context_id: String

Context identifier.

§node_ids: Vec<String>

List of test node IDs to run.

§workers: Option<u32>

Number of parallel workers (None = auto).

§maxfail: Option<u32>

Stop after N failures.

§

ConfigureFixtureReuse

Configure session fixture reuse.

Fields

§context_id: String

Context identifier.

§enabled: bool

Enable fixture reuse.

§max_age_seconds: f64

Max fixture age in seconds.

§teardown_on_conftest_change: bool

Teardown on conftest.py changes.

§

GetFixtureConfig

Get fixture configuration.

Fields

§context_id: String

Context identifier.

§

GetSessionStatus

Get session status.

Fields

§context_id: String

Context identifier.

§

GetShard

Get tests for a specific shard.

Fields

§context_id: String

Context identifier.

§node_ids: Vec<String>

Tests to shard (empty = all inventory).

§shard_index: u32

This shard’s index (0-based).

§total_shards: u32

Total number of shards.

§strategy: String

Sharding strategy.

§

GetShardInfo

Get sharding distribution info.

Fields

§context_id: String

Context identifier.

§node_ids: Vec<String>

Tests to shard (empty = all inventory).

§total_shards: u32

Total number of shards.

§strategy: String

Sharding strategy.

Trait Implementations§

Source§

impl Clone for Request

Source§

fn clone(&self) -> Request

Returns a duplicate of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for Request

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl<'de> Deserialize<'de> for Request

Source§

fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>
where __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
Source§

impl PartialEq for Request

Source§

fn eq(&self, other: &Request) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl Serialize for Request

Source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
where __S: Serializer,

Serialize this value into the given Serde serializer. Read more
Source§

impl StructuralPartialEq for Request

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> Pointable for T

Source§

const ALIGN: usize

The alignment of pointer.
Source§

type Init = T

The type for initializers.
Source§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
Source§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
Source§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
Source§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,