pub enum InsightKind {
Slower {
branch: Option<String>,
before: u64,
now: u64,
since: Option<RunLink>,
},
Flaky {
flaky: u32,
total: u32,
},
NearCap {
profile: String,
peak: u64,
cap: u64,
auto: AutoNote,
},
ColdCache {
branch: Option<String>,
hits: u64,
lookups: u64,
},
Throttled {
throttled: u32,
total: u32,
},
Waits {
before: u64,
now: u64,
},
CpuHeld {
profile: String,
cpus: u32,
held: u32,
total: u32,
raised_from: Option<u32>,
set: Option<u32>,
},
HostHeld {
jobs: u32,
waited: u64,
},
HostLow {
day: u64,
seconds: u64,
lowest: u64,
},
Unknown,
}Expand description
What an insight is, tagged by kind.
Variants§
Slower
A job’s successful runs on its busiest branch take longer than they did, and stayed so.
Fields
Flaky
A job failed and then passed on a re-run of the same run.
NearCap
A job’s memory peaks near its profile’s cap.
Fields
ColdCache
A job’s runs that write to the build cache find almost nothing in it: its cache keys differ from run to run.
Fields
Throttled
The kernel throttled a repository’s jobs’ downloads for memory pressure (JobMetrics::sock_throttled):
the host, or a job at its cap, was short of memory.
Waits
A repository’s jobs wait longer this week than the week before.
Fields
CpuHeld
A job’s CPU cap held back its runs: their quota throttled them in 15% of their run or more (ADR 0079).
Fields
raised_from: Option<u32>Under measured admission with auto sizing, the cpus the profile was raised from when that raise did
not make this job faster or less throttled: its runs ask for no further raise. What auto sizing does
next for the profile, on the other jobs’ runs or on the averages, is runnerctl sizing’s to say.
HostHeld
A queued job has waited 30 minutes or more for the host’s memory, and a job waits for it now: programs outside CI hold it, which closing is the owner’s to do (ADR 0100).
Fields
HostLow
On a UTC day, the host’s MemAvailable fell under a tenth of its memory while a host credit let runners start
past their reservations (ADR 0108): the buffer the credit spends ran out. Told once a day at most.
Fields
Unknown
A kind from a later release, which this one reads only by its sentence. The daemon never sends it.
Implementations§
Trait Implementations§
Source§impl Clone for InsightKind
impl Clone for InsightKind
Source§impl Debug for InsightKind
impl Debug for InsightKind
Source§impl<'de> Deserialize<'de> for InsightKind
impl<'de> Deserialize<'de> for InsightKind
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>,
impl Eq for InsightKind
Source§impl PartialEq for InsightKind
impl PartialEq for InsightKind
Source§impl Serialize for InsightKind
impl Serialize for InsightKind
impl StructuralPartialEq for InsightKind
Auto Trait Implementations§
impl Forget for InsightKind
impl Freeze for InsightKind
impl Move for InsightKind
impl RefUnwindSafe for InsightKind
impl Send for InsightKind
impl Sync for InsightKind
impl Unpin for InsightKind
impl UnsafeUnpin for InsightKind
impl UnwindSafe for InsightKind
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.