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
minor changes to the java CDK test code #35774
minor changes to the java CDK test code #35774
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎ 1 Ignored Deployment
|
This stack of pull requests is managed by Graphite. Learn more about stacking. Join @stephane-airbyte and the rest of your teammates on Graphite |
b51e1c4
to
28b5097
Compare
720fd9e
to
6bf2e0e
Compare
6bf2e0e
to
75c7f97
Compare
...e-cdk/core/src/testFixtures/java/io/airbyte/cdk/extensions/LoggingInvocationInterceptor.java
Outdated
Show resolved
Hide resolved
...e-cdk/core/src/testFixtures/java/io/airbyte/cdk/extensions/LoggingInvocationInterceptor.java
Show resolved
Hide resolved
@@ -157,8 +167,8 @@ public UnexpectedRecord(String streamName, String unexpectedValue) { | |||
|
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.
consider taking the opportunity of turning these into records, they stringify nicer
See this comment inline on Graphite.
for (final TestDataHolder test : testDataHolders) { | ||
database.query(ctx -> { | ||
ctx.fetch(test.getCreateSqlQuery()); | ||
LOGGER.debug("Table " + test.getNameWithTestPrefix() + " is created."); | ||
LOGGER.info("Table {} is created.", test.getNameWithTestPrefix()); |
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.
Suppose the table creation actually fails, will this log message be emitted anyway? Probably not, but worth double checking, in case jooq is lazy (dunno if it is)
75c7f97
to
8b32b67
Compare
e9439f0
to
1adba2a
Compare
1adba2a
to
152c690
Compare
/publish-java-cdk
|
--- <details open="true"><summary>Generated summary (powered by <a href="https://app.graphite.dev">Graphite</a>)</summary> > ## TL;DR > This pull request adds logging for non-public JUnit methods and updates test methods to be public. > > ## What changed > - Added logging for non-public JUnit methods in `LoggingInvocationInterceptor.java`. > - Updated test methods to be public in `CdcSourceTest.java`. > - Updated logging message in `DefaultAirbyteSource.java`. > > ## How to test > No specific testing instructions provided. > > ## Why make this change > - To improve visibility and debugging by logging non-public JUnit methods. > - To ensure consistency and best practices by making test methods public. </details>
Generated summary (powered by Graphite)