Skip to content

[35/n] [reconfigurator] add add_zones_with_mupdate_override chicken switch #8648

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

Conversation

sunshowers
Copy link
Contributor

@sunshowers sunshowers commented Jul 20, 2025

Add a chicken switch to enable testing mupdate/update logic for r16 while not affecting customer systems.

Required a few changes but should hopefully be relatively easy to understand. As part of this, added:

  • omdb and reconfigurator-cli logic
  • displayers for both chicken switches and their diffs (using daft)
  • db storage and migrations

TODO:

  • reconfigurator-cli should support flipping these switches
  • log current planner switches during planner runs

Created using spr 1.3.6-beta.1

[skip ci]
Created using spr 1.3.6-beta.1
@sunshowers sunshowers marked this pull request as draft July 20, 2025 04:21
Created using spr 1.3.6-beta.1

[skip ci]
Created using spr 1.3.6-beta.1
@sunshowers sunshowers marked this pull request as ready for review July 22, 2025 02:18
Created using spr 1.3.6-beta.1

[skip ci]
Created using spr 1.3.6-beta.1
Created using spr 1.3.6-beta.1
}

#[derive(Debug, Clone, PartialEq, Eq, Serialize, Deserialize, JsonSchema)]
pub struct ReconfiguratorChickenSwitches {
pub struct ReconfiguratorChickenSwitchesView {
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Turned the current ReconfiguratorChickenSwitches into a view type, and made both the view and the param types carry around a common ReconfiguratorChickenSwitches struct.

Copy link
Contributor

Choose a reason for hiding this comment

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

Good idea! I like this a lot.

Copy link
Contributor

@andrewjstone andrewjstone left a comment

Choose a reason for hiding this comment

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

Looks great! I like the way you dealt with keeping the existing options set in omdb.

}

#[derive(Debug, Clone, PartialEq, Eq, Serialize, Deserialize, JsonSchema)]
pub struct ReconfiguratorChickenSwitches {
pub struct ReconfiguratorChickenSwitchesView {
Copy link
Contributor

Choose a reason for hiding this comment

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

Good idea! I like this a lot.


> set chicken-switches --add-zones-with-mupdate-override true
chicken switches updated:
* add zones with mupdate override: false -> true
Copy link
Contributor

Choose a reason for hiding this comment

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

Awesome :)

@sunshowers sunshowers changed the base branch from sunshowers/spr/main.35n-reconfigurator-add-add_zones_with_mupdate_override-chicken-switch to main July 23, 2025 19:31
Created using spr 1.3.6-beta.1
@sunshowers sunshowers enabled auto-merge (squash) July 23, 2025 19:32
@sunshowers sunshowers merged commit 5a60421 into main Jul 23, 2025
18 checks passed
@sunshowers sunshowers deleted the sunshowers/spr/35n-reconfigurator-add-add_zones_with_mupdate_override-chicken-switch branch July 23, 2025 23:54
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.

2 participants