-
Notifications
You must be signed in to change notification settings - Fork 2k
feat(component validation): add sink validator #17980
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
Merged
neuronull
merged 31 commits into
master
from
neuronull/component_validation_sink_component_spec
Feb 5, 2024
Merged
Changes from all commits
Commits
Show all changes
31 commits
Select commit
Hold shift + click to select a range
09c562a
add fix and small refactor
neuronull 1e0e6e7
fix compilation errors
neuronull 63a9581
3 ticks
neuronull c6af43e
dont compute expected metrics in validator
neuronull 55a3518
cleanup
neuronull 8ec87b3
cleanup
neuronull 4b3b721
clippy
neuronull f9854bf
feedback tz: sent_eventssssss
neuronull 0577ee6
feedback tz: fix telemetry shutdown finishing logic
neuronull 51e9ab4
3 ticks
neuronull 99a2d20
Merge branch 'master' into neuronull/draft_component_validation_bette…
neuronull e8cdf11
small reorg to add sinks
neuronull c460a49
mini refactor of the component spec validators
neuronull 3daced5
attempt to set expected values from the resource
neuronull b7a7bd3
feedback tz- from not try_from
neuronull af7e9b2
Merge branch 'neuronull/draft_component_validation_better_validation'…
neuronull 0ce0e25
back to 3 ticks
neuronull 35efd5a
fix incorrect expected values
neuronull 1f4ea02
Even more reduction
neuronull e8b17af
clippy
neuronull cdeab8f
add the discarded events total check
neuronull a0f7a65
Merge branch 'master' into neuronull/draft_component_validation_bette…
neuronull 0a6c056
Merge branch 'neuronull/draft_component_validation_better_validation'…
neuronull 77c110b
Merge branch 'master' into neuronull/component_validation_sink_compon…
neuronull 006db51
workaround the new sync issues
neuronull 4745a2f
Merge branch 'master' into neuronull/component_validation_sink_compon…
neuronull 1a43e8b
check events
neuronull f54bdac
Merge branch 'master' into neuronull/component_validation_sink_compon…
neuronull f6aa019
partial feedback
neuronull a2689fe
thought i removed that
neuronull 3ff66e0
use ref
neuronull File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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 makes sense, yeah.
I think what we probably want is to trigger the shutdown of the topology once we know all events on the input side have been sent or consumed. Once the events are in the topology, we should be "safe", in terms of knowing that the topology won't actually shutdown until those events make it through to the sink and are processed.
So for an HTTP server external resource, we'd want the shutdown signal to basically tell it to shutdown but only after all events have been sent to the source, which in this case would be essentially waiting until the
http_clientsource has queried the HTTP server enough times, etc. For a push-based source, we'd only care that it managed to send out all events and that we'd gotten a response for all of them.So we'd essentially update external input resources to have that behavior, and then the shutdown code in the runner would be like
Does that make sense?
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 makes sense yes. I want to say I started down this path and then decided to table it for the time being. I will take a look at it.
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.
I think this is isolated enough to put in a separate PR. I opened a ticket to track that. If it's alright I would probably tag you on the review for that as well as you understand the architecture of this framework.