Skip to content

Conversation

@jgallagher
Copy link
Contributor

This PR adds a new method to (optionally) check a blueprint against a given planning input. The only check included in this PR is a line-for-line port of the builder's ensure_input_networking_records_appear_in_parent_blueprint() function (which I'm removing from the builder in #9347). I updated most of the Blippy call sites to use this method; I skipped the one in an RSS test because it has no planning input available - RSS just generates a raw blueprint to hand off to Nexus.

Comment on lines 585 to 597
pub fn new(blueprint: &'a Blueprint) -> Self {
let mut slf = Self { blueprint, notes: Vec::new() };
checks::perform_all_blueprint_only_checks(&mut slf);
slf
}

pub fn check_against_planning_input(
mut self,
input: &PlanningInput,
) -> Self {
checks::perform_planning_input_checks(&mut self, input);
self
}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thoughts on changing Blippy::new to accept a PlanningInput and adding a new_without_planning_input constructor for the rare cases such as RSS where that isn't available?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah, that is better. Done in c14748b

Copy link
Contributor

@sunshowers sunshowers left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants