-
Notifications
You must be signed in to change notification settings - Fork 61
Add Blippy::check_against_planning_input()
#9356
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
| 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 | ||
| } |
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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
sunshowers
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
thanks!
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 theBlippycall 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.