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
Validate topology.yaml #263
Conversation
Example output is below:
Added to the
Added to
Errors are passed back using a |
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.
Heres some feedback, but I think its best to keep focusing on #275 before we come back to this.
1 benchmarks reported regressed performance. Please check the benchmark workflow logs for details: https://github.com/shotover/shotover-proxy/actions/runs/1352605458 |
shotover-proxy/src/transforms/distributed/tunable_consistency_scatter.rs
Outdated
Show resolved
Hide resolved
1 benchmarks reported regressed performance. Please check the benchmark workflow logs for details: https://github.com/shotover/shotover-proxy/actions/runs/1357988606 |
2 benchmarks reported regressed performance. Please check the benchmark workflow logs for details: https://github.com/shotover/shotover-proxy/actions/runs/1362058174 |
2 benchmarks reported regressed performance. Please check the benchmark workflow logs for details: https://github.com/shotover/shotover-proxy/actions/runs/1362662111 |
1 benchmarks reported regressed performance. Please check the benchmark workflow logs for details: https://github.com/shotover/shotover-proxy/actions/runs/1366164776 |
shotover-proxy/src/transforms/distributed/tunable_consistency_scatter.rs
Outdated
Show resolved
Hide resolved
1 benchmarks reported regressed performance. Please check the benchmark workflow logs for details: https://github.com/shotover/shotover-proxy/actions/runs/1366591294 |
1 benchmarks reported regressed performance. Please check the benchmark workflow logs for details: https://github.com/shotover/shotover-proxy/actions/runs/1366611104 |
3 benchmarks reported regressed performance. Please check the benchmark workflow logs for details: https://github.com/shotover/shotover-proxy/actions/runs/1370307857 |
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.
So currently we have 3 layers of tests:
- highest level integration test - does shotover shutdown when validation fails.
- mid level test - testing that we get specific nicely formatted errors in response to validation failures.
- lowest level unit tests - test specific transform/chain validation implementation to ensure we get full coverage of its validation implementation.
Im happy for all of these layers to exist.
However, duplicate tests add a lot of maintenance burden so its good to avoid when we can.
I'm noticing that the lowest level unit tests do a lot of testing of other transforms/chain validation logic, such tests should be moved into the unittests for the other transform/chain or moved into a mid level test.
Would like to hear your thoughts before you go rewriting lots of stuff.
Maybe you had your own reasoning for how you wrote them?
shotover-proxy/src/transforms/distributed/tunable_consistency_scatter.rs
Outdated
Show resolved
Hide resolved
1 benchmarks reported regressed performance. Please check the benchmark workflow logs for details: https://github.com/shotover/shotover-proxy/actions/runs/1378879865 |
4 benchmarks reported regressed performance. Please check the benchmark workflow logs for details: https://github.com/shotover/shotover-proxy/actions/runs/1379219498 |
1 benchmarks reported regressed performance. Please check the benchmark workflow logs for details: https://github.com/shotover/shotover-proxy/actions/runs/1379259994 |
4 benchmarks reported regressed performance. Please check the benchmark workflow logs for details: https://github.com/shotover/shotover-proxy/actions/runs/1379406911 |
shotover-proxy/src/transforms/distributed/consistent_scatter.rs
Outdated
Show resolved
Hide resolved
shotover-proxy/src/transforms/distributed/consistent_scatter.rs
Outdated
Show resolved
Hide resolved
Probably not, I'd imagine some of them are quite out of date. I can make another PR for updating the examples and testing any that are not already run as part of tests. |
sounds good |
good catch with the rebase :) |
1 benchmarks reported regressed performance. Please check the benchmark workflow logs for details: https://github.com/shotover/shotover-proxy/actions/runs/1383728363 |
transforms are compatible with each other e.g. RedisTimestampTagger -> CassandraDestinationwill make a follow up PR for this as this one is large enough