pub enum SoftCycleProbe {
Recovered {
wall_ms: u64,
},
Unreachable,
Unsupported,
Failed(String),
}Expand description
Outcome of probing a live runner for the in-process soft-cycle
(POST /soft-cycle + a GET /health re-confirmation after the
FlyingFox bounce).
The soft-cycle keeps the xcodebuild/XCUITest host alive and bounces
the in-process server + rebinds the app, which is why it recovers a
reachable runner in seconds instead of the ~36 s SIGINT-teardown +
respawn a hard cycle pays. Only a runner that is alive AND answering
/health can be soft-cycled; everything else routes to the hard
fallback.
Variants§
Recovered
/soft-cycle returned 200 and /health answered again after the
bounce — the runner recovered in-process. Carries the CLI-observed
warm recovery wall-time in ms.
Unreachable
/health never answered — the host is dead or wedged, so there is
no in-process channel to soft-cycle through.
Unsupported
The runner answered but does not know /soft-cycle (a runner that
shipped before v2.8-C2).
Failed(String)
/soft-cycle was reached but the bounce did not complete (the
server never came back, or the route errored).
Trait Implementations§
Source§impl Clone for SoftCycleProbe
impl Clone for SoftCycleProbe
Source§fn clone(&self) -> SoftCycleProbe
fn clone(&self) -> SoftCycleProbe
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more