-
Notifications
You must be signed in to change notification settings - Fork 62
Ensure oximeter schemas do not change #9341
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
davepacheco
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.
Cool! That was fast. It'd be good to get a +1 from @bnaecker or @andrewjstone because I don't know what other files might need to be locked down.
| #[tokio::test] | ||
| async fn test_schemas_are_not_modified() -> anyhow::Result<()> { | ||
| let cur_dir = PathBuf::from(env!("CARGO_MANIFEST_DIR")); | ||
| let single_node_schema_checksum = |
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.
Why checksums here instead of expectorate? Is it to make it harder to override?
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.
Yup!
| Similarly, there must be only a single instance of this program at a time. | ||
|
|
||
| _NB: Schema changes for the `oximeter` database are currently disabled due to | ||
| ongoing self-service update work. More information about this restriction can |
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 alright but this work is not ongoing and not planned. The plan of record is to do nothing until we have a need to change the schema and then figure out how we would automate that kind of change.
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.
argh, sorry! I misread the suggestion and thought it was just a syntax change 🤦♀️ I'll open up another PR with the text change!
Closes: #8862