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

Add functions to catch timeseries schema changes #4602

Merged
merged 1 commit into from
Dec 11, 2023

Conversation

bnaecker
Copy link
Collaborator

@bnaecker bnaecker commented Dec 1, 2023

  • Move schema types from the oximeter-db crate to oximeter proper
  • Add a SchemaSet for storing a unique set of timeseries schema, and comparing against a set deserialized from file. This works like expectorate, with a few tweaks, and allows developers to catch any changes. If we want to relax this to catching compatible changes, for some definition of that, we can do that pretty easily.

@bnaecker
Copy link
Collaborator Author

bnaecker commented Dec 1, 2023

Fixes #4330

@bnaecker bnaecker force-pushed the test-functions-for-timeseries-schema-changes branch 3 times, most recently from 01577b7 to 409aaf5 Compare December 5, 2023 18:39
@bnaecker bnaecker requested a review from smklein December 5, 2023 18:42
oximeter/oximeter/src/schema.rs Show resolved Hide resolved
- Move schema types from the `oximeter-db` crate to `oximeter` proper
- Add a `SchemaSet` for storing a unique set of timeseries schema, and
  comparing against a set deserialized from file. This works like
  expectorate, with a few tweaks, and allows developers to catch any
  changes. If we want to relax this to catching _compatible_ changes,
  for some definition of that, we can do that pretty easily.
@bnaecker bnaecker force-pushed the test-functions-for-timeseries-schema-changes branch from 409aaf5 to 06d4393 Compare December 9, 2023 23:31
@bnaecker bnaecker enabled auto-merge (squash) December 9, 2023 23:31
@bnaecker bnaecker merged commit 0c5c559 into main Dec 11, 2023
22 checks passed
@bnaecker bnaecker deleted the test-functions-for-timeseries-schema-changes branch December 11, 2023 17:52
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