-
Notifications
You must be signed in to change notification settings - Fork 140
Add dynamic signal types system test support #3373
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
MichelLosier
merged 64 commits into
elastic:main
from
MichelLosier:add-dynamic-signal-types-system-test-support
Mar 31, 2026
Merged
Changes from all commits
Commits
Show all changes
64 commits
Select commit
Hold shift + click to select a range
b14c465
Add DynamicSignalTypes to PolicyTemplate struct
MichelLosier 0375356
Refactor scenarioTest to have dataStreams slice
MichelLosier 7987669
Add discoverDataStreams
MichelLosier 5821366
Incorporate datastream discovery for dynamic_signal_types into prepar…
MichelLosier fcd8e0f
Loop over datastreams in validateTestScenario
MichelLosier 7e97891
Have system tests artifact creation handle multiple datastreams
MichelLosier 6c7d972
Add support for in system tests to narrow test scope
MichelLosier 0e42d25
Add tests for discoverDataStreams
MichelLosier 29a8599
Add helper for building datastream name with explicit type
MichelLosier 800a16c
Extract scenarioDataStream building into own method on tester
MichelLosier 9db5c35
Add test coverage for tester.buildDataStreamScenarios
MichelLosier c1fc11f
Update tests, fix index template name bug
MichelLosier f59adbe
Update system_testing.md with signal_types config opt
MichelLosier 4a100ee
Add sql_server_input_otel as test package
MichelLosier 362cb71
Simplify dataStreamDataType string extraction
MichelLosier 40bc8a7
Add debug line that lists all datastreams to be tested together
MichelLosier ab697ed
Remove use of in policy for sql_server_input_otel test package
MichelLosier 3e431e3
Add ForDuration in wait module
MichelLosier 64e7d1f
Discover datastreams in two phases
MichelLosier 3ec5d6f
Have dynamicSignalTypesTTL be configurable
MichelLosier 1720977
Add tests waitForAllDataStreams
MichelLosier 50be1b6
Move scenario.deprecationWarnings into scenarioDataStream
MichelLosier b8f860d
Extract datastream doc verification into own method
MichelLosier 03c3f09
Add discoverDataStreamsCh to enable concurrent stream discovery and v…
MichelLosier 3932568
Add discoverAndVerifyDataStreams to concurrently run ds discovery and…
MichelLosier 932a022
Incorporate discoverAndVerifyDataStreams into prepareScenario
MichelLosier 94b72ac
Have sync package as direct dep
MichelLosier 7e93b2b
Formatting
MichelLosier 12ef3c7
Add test-all-signals system test for sql_server_input_otel test package
MichelLosier a1a3bad
Handle multiple sample_events for docs
MichelLosier 2307067
Add getSampleEventPaths
MichelLosier 83c3253
Update verifySampleEvent to handle multiple sample events
MichelLosier 86444e1
Add test for multiple sample event handling for docs
MichelLosier fb71771
Add tests for multi sample file handling in static test runner
MichelLosier 2a0aab0
Have datastream discovery and verification synchronous
MichelLosier 2b8b0b4
Remove unused imports
MichelLosier cf11b62
Match only on namespace when doing datastream discovery
MichelLosier b2a129f
Have sync as indirect dep
MichelLosier 65d7882
When signal_types is used, use discovery with wildcard dataset
MichelLosier cced5a1
Have dynamic_signal_types discovery run through 5s of search after ea…
MichelLosier 2add311
Formatting
MichelLosier 4157304
Edit logging wording
MichelLosier e4c2b26
Increase discovery TTL count to 10
MichelLosier eb74594
Use underscore as separator for sample event types
MichelLosier ca09f4a
Extract iterated ops in verifySampleEvents into own method, update st…
MichelLosier c2c7f42
Remove old dot separated sample events
MichelLosier 5df7435
Formatting
MichelLosier b54f341
Change DynamicSignalTypesSearchPollCount to friendlier WaitForDynamic…
MichelLosier ccb6cad
Update docs handling of sample events
MichelLosier e6509ad
Remove unused request mock
MichelLosier f2187f5
Handle having both plain and named sample events for readme rendering
MichelLosier b080c76
Add event template in ReadMe for sql_server_input_otel
MichelLosier 036f8de
Rename sampleEventSignalType to sampleEventName, add sort
MichelLosier 70467ae
Add test case for rendering both named and unnamed sample events
MichelLosier 1d4fbb8
Restore docs sample_event handling with main
MichelLosier e8a3144
Render only one sample_event, with fallback to named sample events
MichelLosier 4787e2b
Update readme tests
MichelLosier 86cd021
Remove all streams in namespace for scenario cleanup
MichelLosier 74974e1
Update Readme with sample event for sql_server_input_otel
MichelLosier 670b486
Use datastream discovery when input package is otelcol and type traces
MichelLosier 74d56a5
Add debug logging
MichelLosier 275bf5b
Formatting
MichelLosier 366e17a
Merge branch 'main' into add-dynamic-signal-types-system-test-support
MichelLosier 10beacf
Merge branch 'main' into add-dynamic-signal-types-system-test-support
MichelLosier 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.
I'm not totally sure about how these sample event files should be rendered. For now, I'd prefer to keep rendering just one file (as it is currently done in main) and let's see how this could be improved later in some follow-up.
As a proposal, it could be rendered the
sample_event.jsonfile if that file exists (as it is done currently in main). If that file does not exist but othersample_event_*.jsonfiles exist, then render just the first of those files ordered lexicographical by name. This will ensure that the same sample_event file is picked up always to render the README.In any case, static tests must keep validating all of them as it is performed in this PR now.
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.
Sounds good, seems like if we wanted to support multiple renderings later, it maybe be better addressed during or after the implementing story for elastic/package-spec#582