-
Notifications
You must be signed in to change notification settings - Fork 40
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
[nexus] Expand BlueprintDiff to identify changed datasets #6481
Conversation
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.
Looks great!
nexus/reconfigurator/planning/tests/output/planner_nonprovisionable_2_2a.txt
Show resolved
Hide resolved
@@ -1755,6 +1772,79 @@ mod test { | |||
logctx.cleanup_successful(); | |||
} | |||
|
|||
#[test] | |||
fn test_dataset_settings_modified_in_place() { | |||
static TEST_NAME: &str = "planner_dataset_settings_modified_in_place"; |
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.
I added this test to give an example of "what the diff looks like when a dataset is modified".
planner_dataset_settings_modified_in_place_1_2.txt
contains this example
* oxp_f843fb62-0f04-4c7d-a56f-62531104dc77/crypt/debug 2011121d-b454-41c5-9062-18fa04ee1d52 - none - 1 GiB off | ||
└─ + 100 GiB + none |
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.
(This is the notable bit)
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.
Looks great. Thanks for bringing this up to date @smklein!
Add "datasets" to
BlueprintDiff
.The
BlueprintDiff
tool already allows comparing blueprints and collections, this PR expands that comparisonto also display differences in datasets.
Additionally, this PR:
ExampleSystem
's system descriptionBlueprintDiff
values in reconfigurator tests