-
Notifications
You must be signed in to change notification settings - Fork 62
Clean up a variety of tests that create blueprints #9393
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
Merged
+708
−1,104
Merged
Changes from all commits
Commits
Show all changes
16 commits
Select commit
Hold shift + click to select a range
5b26fc4
builder: add method to add boundary NTP directly instead of always pr…
jgallagher 5cef8ac
use builder in rack_set_initialized_with_services()
jgallagher 6baa021
rack_set_initialized_missing_service_pool_ip_throws_error()
jgallagher d00b536
rack_set_initialized_with_many_nexus_services()
jgallagher 8302b01
rack_set_initialized_with_ipv6_public_addresses()
jgallagher ce1c5dc
rack_set_initialized_overlapping_ips_throws_error()
jgallagher fc4658d
revert now-unneccesary visibility change
jgallagher 3373282
add BlueprintBuilder::build_empty()
jgallagher efd74fa
example system: start with truly empty blueprint
jgallagher 4b9eeaf
use build_empty() where we can
jgallagher ff1b86a
use example system in test_ensure_external_networking_works_with_good…
jgallagher 8d968c5
test_external_dns_external_ips_specified_by_rack_setup()
jgallagher 3efe2c0
test_default_cockroach_admin_addrs_from_blueprint()
jgallagher 9c30cd7
remove build_empty_with_sleds()
jgallagher de048ec
expectorate
jgallagher 263cd1f
clippy
jgallagher File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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 isn't that worrisome but I'm not clear on why this happened. This test doesn't appear to explicitly add any sleds.
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.
Above what github shows, these are the current blueprints in the simulated system:
The diff here is between
02697f74-b14a-4418-90f0-c28b2a3a6aa9and86db3308-f817-4626-8838-4085949a6a41(although diffing from02697f74-b14a-4418-90f0-c28b2a3a6aa9toade5749d-bdf3-4fab-a8ae-00bea01b3a5awould show the same behavior). Prior to this change, the initial blueprint02697f74-b14a-4418-90f0-c28b2a3a6aa9with was built viabuild_empty_with_sleds(...), so it had all the sleds present (but they themselves were all empty). On this PR, it's now built viabuild_empty(), so it has no sleds at all, hence the diff shows the sleds beingADDEDinstead ofMODIFIED. The details within the sled didn't change, because in both cases we're adding all the disks, datasets, and zones.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.
Oh, I didn't actually answer your question. The test does this:
which still creates two blueprints:
We used to add the sleds in the first and then flesh out their details in the second; now the first is truly empty, and we add them with their details already fleshed out in the second.