-
Notifications
You must be signed in to change notification settings - Fork 1k
Snippet Injection rollback and update test #8669
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
| jvmArgs("-XX:+IgnoreUnrecognizedVMOptions") | ||
| } | ||
| val testSnippetInjection by registering(Test::class) { | ||
| jvmArgs("-Dotel.experimental.javascript-snippet=<script> Test </script>") |
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.
Running all tests twice, once without snippet injection and then with does not seem reasonable. Have you considered moving snippet tests to a separate class so they could be run independently or running the tests always with snippet injection enabled.
|
This pr needs further consideration. |
An update for #7650.
Thanks @laurit for bringing up the test problem at #8390.
The reason for rolling back is that turning snippet into snippet supplier would cost ineffieiency in writing as get snippet would be called multiple times when injecting. (The snippet config is designed to be unchangeable during the OTEL running after user has set the value. )
In order to solve the test problem, the setting of snippet would be done at build.gradle instead of during the test.
Also, the unit test would be run twice, one with the snippet, and the other without the snippet.