Skip to content
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

[Reconfigurator] Use per-sled RNGs #7321

Merged
merged 1 commit into from
Jan 8, 2025

Conversation

jgallagher
Copy link
Contributor

Suggested by @sunshowers
(#7307 (comment)). This should prevent changes to one sled (e.g., adding a new zone) from perturbing IDs on all subsequent sleds in otherwise-stable tests. (I took a stab at combining this with #7307 and confirmed the diff output is much more reasonable; will update #7307 after this lands.)

The actual code changes here are small and mostly-mechanical; the changes in rng.rs are the driver (moving the sled-specific RNGs into a per-sled RNG container and dealing with handing those out keyed by sled ID), and everything else fell out from that. Unfortunately this changes all zone/dataset/NIC/IP UUIDs in expectorate tests, so the diff volume is... quite large.

Suggested by @sunshowers
(#7307 (comment)).
This should prevent changes to one sled (e.g., adding a new zone) from
perturbing IDs on all subsequent sleds in otherwise-stable tests.
Copy link
Collaborator

@davepacheco davepacheco left a comment

Choose a reason for hiding this comment

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

Rubber-stamp approved!

Comment on lines +33 to +36
// Each sled gets its own set of RNGs to avoid test changes to one sled
// (e.g., adding an extra zone) perturbing all subsequent zone/dataset/etc.
// IDs on other sleds.
sled_rngs: BTreeMap<SledUuid, SledPlannerRng>,
Copy link
Contributor

Choose a reason for hiding this comment

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

Awesome, thanks for this!

@jgallagher jgallagher merged commit f63ed09 into main Jan 8, 2025
16 checks passed
@jgallagher jgallagher deleted the john/reconfigurator-cli-sled-rng branch January 8, 2025 20:25
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