-
Notifications
You must be signed in to change notification settings - Fork 51
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 integration tests for BraveTracingProvider #93
Conversation
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.
Thank you for the PR!
Yeah, tracing feature works in end-to-end from producer to processor, so integration test would be meaningful to check if it works correctly.
I added some feedbacks. Please take a look and give your opinions.
brave/src/it/java/com/linecorp/decaton/processor/runtime/BraveTracingTest.java
Outdated
Show resolved
Hide resolved
brave/src/it/java/com/linecorp/decaton/processor/runtime/BraveTracingTest.java
Show resolved
Hide resolved
brave/src/it/java/com/linecorp/decaton/processor/runtime/BraveTracingTest.java
Outdated
Show resolved
Hide resolved
brave/src/it/java/com/linecorp/decaton/processor/runtime/BraveTracingTest.java
Outdated
Show resolved
Hide resolved
} | ||
})) | ||
.producerSupplier( | ||
bootstrapServers -> kafkaTracing.producer(TestUtils.producer(bootstrapServers))) |
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.
Is that necessary to pass producerSupplier ?
.producerDecorator(kafkaTracing::producer)
more natural?
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 thought there might be future tests where we wanted to supply a completely new producer (e.g. a mock/stub, different configuration parameters) rather than just wrap the existing one.
brave/src/it/java/com/linecorp/decaton/processor/runtime/BraveTracingTest.java
Show resolved
Hide resolved
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.
Added minor comment, but almost looks good.
testing/src/main/java/com/linecorp/decaton/testing/processor/ProcessorTestSuite.java
Outdated
Show resolved
Hide resolved
I think build failure is a known flaky test? |
Oh, it's not known but shouldn't be related to this PR's change... |
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.
LGTM, nice!
We already have an integration test for tracing in general, but it's good to confirm that the specific integration with Brave also works