pub struct JobSummary {Show 20 fields
pub id: u64,
pub repository: String,
pub run_id: u64,
pub run_attempt: u32,
pub workflow: Option<String>,
pub name: String,
pub branch: Option<String>,
pub url: Option<String>,
pub labels: Vec<String>,
pub state: JobState,
pub conclusion: Option<String>,
pub runner: Option<JobRunner>,
pub timeline: Timeline,
pub metrics: JobMetrics,
pub log: LogSummary,
pub runner_fault: bool,
pub failure_cause: Option<FailureCause>,
pub rerun_at: Option<u64>,
pub probe: Option<RunnerProbe>,
pub record_mark: Option<RecordMark>,
}Expand description
A job without its steps: what lists and events carry.
Fields§
§id: u64GitHub’s job ID, also its check run ID.
repository: Stringowner/name on GitHub.
run_id: u64The workflow run it belongs to.
run_attempt: u321 for the first attempt of the run, higher for re-runs.
workflow: Option<String>The workflow’s name.
name: StringThe job’s name in the workflow.
branch: Option<String>The branch the run is for.
url: Option<String>The job’s page on GitHub.
labels: Vec<String>The workflow’s runs-on labels.
state: JobStateWhere the job is.
conclusion: Option<String>GitHub’s conclusion once completed: success, failure, cancelled, skipped, timed_out, ….
runner: Option<JobRunner>The runner that ran it.
timeline: TimelineWhen each phase started.
metrics: JobMetricsCPU, memory and network use while it ran.
log: LogSummaryHow much of its log is stored.
runner_fault: boolWhether the runner failed it rather than its code (record::runner_fault): Sysbox lost the runner’s seccomp
listener, so what its failed step printed has function not implemented on a mount, umount or openat2, or
unsafe procfs detected with invalid argument. Read from the log once the record is final; false for a job
that has not concluded failed, and in records from before it was kept.
failure_cause: Option<FailureCause>What its log says failed it, for a job that concluded failed and whose log shows one of the failures runnerd
tells apart (record::failure_cause): an action the runner could not download or unpack, one it could not
resolve, or actions/checkout. Read once the record is final; None for every other job, from a daemon older
than it, and where the log does not say.
rerun_at: Option<u64>When runnerd asked GitHub to re-run its run’s failed jobs because its runner failed it (ADR 0153), in seconds:
GitHub accepted, and the run went on to its next attempt. None for every other job, from a daemon older than
it, and where a person re-ran the run first.
probe: Option<RunnerProbe>What the runner image’s probe found after the runner exited (ADR 0155): whether the calls Sysbox serves still
worked in its container when sampled. None where no verdict was recorded, including when collection is
disabled, a container stops early or the daemon is older. Recorded only; it decides nothing.
record_mark: Option<RecordMark>What became of its record, for a job the history notes one for: kept, removed or not made (ADR 0135).
None for a job without a record note, and from a daemon older than the mark. Not record, which a Job
that flattens this summary holds in full.
Implementations§
Source§impl JobSummary
impl JobSummary
Sourcepub fn is_failure(&self) -> bool
pub fn is_failure(&self) -> bool
Whether it failed, as GET /v1/stats counts failures: it concluded failure or timed_out, or it lost its
runner. A job another machine ran is not this daemon’s to count.
Sourcepub fn outcome(&self) -> Outcome
pub fn outcome(&self) -> Outcome
Its outcome: where it is while it can change, then how it ended. Its kind is OutcomeKind::Failed or
OutcomeKind::RunnerFault exactly when it failed; a job that concluded failed and
that the runner failed reads runner fault (runner_fault) and counts as failed all the same. A job that left the queue without starting, as one a newer push
cancelled, did not run elsewhere: it reads cancelled in queue, or as it concluded.
Sourcepub fn failure_line(&self) -> Option<&'static str>
pub fn failure_line(&self) -> Option<&'static str>
What its log says failed it, as every client writes it under its outcome: the runner could not download or unpack an action while it set up the job. None for a job that did not fail, and for one whose log does not
say (failure_cause).
Sourcepub fn rerun_line(&self) -> Option<String>
pub fn rerun_line(&self) -> Option<String>
That runnerd re-ran it, as every client writes it under its outcome: runnerd re-ran the run's failed jobs as attempt 2, since the runner failed this one. None for a job runnerd did not re-run (rerun_at).
Sourcepub fn probe_line(&self) -> Option<Toned>
pub fn probe_line(&self) -> Option<Toned>
What the probe after its runner exited found (probe, ADR 0155), as every client writes it under its outcome,
with its tone: a probe after the job found the runner's mounts failing. For a job that failed, and for any
job whose probe found a call failing; a failed job without a verdict reads no probe verdict recorded, never
as clean. None for every other job, and for a verdict this build does not know.
Sourcepub fn waited(&self, now: u64) -> Option<u64>
pub fn waited(&self, now: u64) -> Option<u64>
Seconds it waited for a runner: until it started, or until now while it may still start. None for a job
that ended without starting here.
Sourcepub fn unseen_note(&self, now: u64) -> Option<String>
pub fn unseen_note(&self, now: u64) -> Option<String>
What of its wait at now passed while no runnerd ran, to follow it: 8h 10m of it while runnerd was not running, never more than the wait. None when none did.
Sourcepub fn cpu_held(&self, now: u64) -> Option<String>
pub fn cpu_held(&self, now: u64) -> Option<String>
What held its CPU back by now: held at its CPU cap in 18% of its busy time, waited for a CPU 31% of its run. The cap’s part is left out without a quota’s figures or busy periods, the wait’s without pressure stall
information or a run time; None when both are. A share that is not 0 never reads as 0%.
Sourcepub fn ran(&self, now: u64) -> Option<u64>
pub fn ran(&self, now: u64) -> Option<u64>
Seconds it ran: until it finished, or until now while it may still finish. None before it started, and
for a final job without a finish time, which no client claims ran for as long as it has been since.
Sourcepub fn phases(&self) -> Vec<Phase>
pub fn phases(&self) -> Vec<Phase>
Its phases in order, each from when it began to when it ended, None while it goes on. A phase without an
end goes on while the job can change; a final job’s ends when the job finished, or is left out when no time
says how long it took. Cleaning up follows the finish of a job whose runner started here, until its cleanup.
Trait Implementations§
Source§impl Clone for JobSummary
impl Clone for JobSummary
Source§impl Debug for JobSummary
impl Debug for JobSummary
Source§impl<'de> Deserialize<'de> for JobSummary
impl<'de> Deserialize<'de> for JobSummary
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 JobSummary
Source§impl PartialEq for JobSummary
impl PartialEq for JobSummary
Source§impl Serialize for JobSummary
impl Serialize for JobSummary
impl StructuralPartialEq for JobSummary
Auto Trait Implementations§
impl Forget for JobSummary
impl Freeze for JobSummary
impl Move for JobSummary
impl RefUnwindSafe for JobSummary
impl Send for JobSummary
impl Sync for JobSummary
impl Unpin for JobSummary
impl UnsafeUnpin for JobSummary
impl UnwindSafe for JobSummary
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.