Skip to main content

ComputedOutputs

Struct ComputedOutputs 

Source
pub struct ComputedOutputs {
Show 17 fields pub filtered_added: Vec<u32>, pub filtered_copied: Vec<u32>, pub filtered_deleted: Vec<u32>, pub filtered_modified: Vec<u32>, pub filtered_renamed: Vec<u32>, pub filtered_type_changed: Vec<u32>, pub filtered_unmerged: Vec<u32>, pub filtered_unknown: Vec<u32>, pub other_changed: Vec<u32>, pub other_modified: Vec<u32>, pub other_deleted: Vec<u32>, pub all_changed_and_modified: Vec<u32>, pub renamed_mapping: Vec<(u32, InternedString)>, pub rename_split_deletions: Vec<(u32, InternedString)>, pub modified_keys: Vec<InternedString>, pub changed_keys: Vec<InternedString>, pub group_deploy_decisions: Vec<GroupDeployDecision>,
}
Expand description

All derived output categories computed in a single pass

Fields§

§filtered_added: Vec<u32>

Filtered added file indices

§filtered_copied: Vec<u32>

Filtered copied file indices

§filtered_deleted: Vec<u32>

Filtered deleted file indices

§filtered_modified: Vec<u32>

Filtered modified file indices

§filtered_renamed: Vec<u32>

Filtered renamed file indices

§filtered_type_changed: Vec<u32>

Filtered type-changed file indices

§filtered_unmerged: Vec<u32>

Filtered unmerged file indices

§filtered_unknown: Vec<u32>

Filtered unknown file indices

§other_changed: Vec<u32>

“Other changed” indices: ACMR not in filter

§other_modified: Vec<u32>

“Other modified” indices: ACMRD not in filter

§other_deleted: Vec<u32>

“Other deleted” indices: D not in filter

§all_changed_and_modified: Vec<u32>

All changed and modified superset

§renamed_mapping: Vec<(u32, InternedString)>

Rename mapping: (index, previous_path)

§rename_split_deletions: Vec<(u32, InternedString)>

When output_renamed_as_deleted_added is true, contains (index, previous_path) for renamed files split into deleted entries. The new name goes to filtered_added.

§modified_keys: Vec<InternedString>

YAML group keys that had modified matches

§changed_keys: Vec<InternedString>

YAML group keys that had any changed matches

§group_deploy_decisions: Vec<GroupDeployDecision>

Per-group deploy decisions (populated when YAML groups are present)

Implementations§

Source§

impl ComputedOutputs

Source

pub fn compute( result: &ProcessedResult, output_renamed_as_deleted_added: bool, ) -> Self

Single-pass computation from a ProcessedResult

When output_renamed_as_deleted_added is true, renamed files are split: the new path goes to filtered_added and the old path is stored in rename_split_deletions (the consumer should include these in deleted output).

The interner parameter is used to look up group keys for concurrency tracking.

Source

pub fn compute_with_concurrency( result: &ProcessedResult, output_renamed_as_deleted_added: bool, blocked_groups: Option<&HashMap<InternedString, Vec<u64>>>, interner: Option<&StringInterner>, ) -> Self

Compute with concurrency information from workflow check.

blocked_groups maps group keys to blocking run IDs. interner resolves InternedString keys for matching.

Source

pub fn compute_full( result: &ProcessedResult, output_renamed_as_deleted_added: bool, blocked_groups: Option<&HashMap<InternedString, Vec<u64>>>, _interner: Option<&StringInterner>, deleted_to_destroy: bool, ) -> Self

Full computation including Destroy deploy decisions.

deleted_to_destroy maps groups whose only membership is endpoint-Deleted files to a Destroy action with reconstruct_sha = result.base_sha.

Source

pub fn any_changed(&self) -> bool

Any files in the changed category (filtered)

Source

pub fn only_changed(&self) -> bool

Only one file in the changed category

Source

pub fn any_modified(&self) -> bool

Any modified files (filtered)

Source

pub fn only_modified(&self) -> bool

Only one modified file

Source

pub fn has_deployable_groups(&self) -> bool

Any groups with Deploy action

Source

pub fn has_destroyable_groups(&self) -> bool

Whether any group carries a Destroy deploy decision

Source

pub fn any_deleted(&self) -> bool

Any deleted files (filtered)

Source

pub fn only_deleted(&self) -> bool

Only one deleted file

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> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T> Instrument for T

Source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
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> IntoEither for T

Source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> if into_left is true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
Source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> if into_left(&self) returns true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
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> PolicyExt for T
where T: ?Sized,

Source§

fn and<P, B, E>(self, other: P) -> And<T, P>
where T: Sized + Policy<B, E>, P: Policy<B, E>,

Create a new Policy that returns Action::Follow only if self and other return Action::Follow. Read more
Source§

fn or<P, B, E>(self, other: P) -> Or<T, P>
where T: Sized + Policy<B, E>, P: Policy<B, E>,

Create a new Policy that returns Action::Follow if either self or other returns Action::Follow. 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> WithSubscriber for T

Source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more