Skip to content
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

Conversation

stephane-airbyte
Copy link
Contributor

@stephane-airbyte stephane-airbyte commented Mar 2, 2024


Generated summary (powered by Graphite)

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.

Copy link

vercel bot commented Mar 2, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

1 Ignored Deployment
Name Status Preview Comments Updated (UTC)
airbyte-docs ⬜️ Ignored (Inspect) Visit Preview Mar 4, 2024 10:28pm

Copy link
Contributor Author

stephane-airbyte commented Mar 2, 2024

This stack of pull requests is managed by Graphite. Learn more about stacking.

Join @stephane-airbyte and the rest of your teammates on Graphite Graphite

@stephane-airbyte stephane-airbyte force-pushed the stephane/03-02-minor_changes_to_the_java_CDK_test_code branch from b51e1c4 to 28b5097 Compare March 2, 2024 21:26
@stephane-airbyte stephane-airbyte marked this pull request as ready for review March 2, 2024 21:27
@stephane-airbyte stephane-airbyte force-pushed the stephane/03-02-minor_changes_to_the_java_CDK_test_code branch 7 times, most recently from 720fd9e to 6bf2e0e Compare March 3, 2024 21:51
@stephane-airbyte stephane-airbyte force-pushed the stephane/03-02-minor_changes_to_the_java_CDK_test_code branch from 6bf2e0e to 75c7f97 Compare March 4, 2024 14:55
@@ -157,8 +167,8 @@ public UnexpectedRecord(String streamName, String unexpectedValue) {

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[Re: line 163]

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());
Copy link
Contributor

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)

@stephane-airbyte stephane-airbyte force-pushed the stephane/03-02-minor_changes_to_the_java_CDK_test_code branch from 75c7f97 to 8b32b67 Compare March 4, 2024 20:32
@stephane-airbyte stephane-airbyte force-pushed the stephane/03-02-minor_changes_to_the_java_CDK_test_code branch 2 times, most recently from e9439f0 to 1adba2a Compare March 4, 2024 22:23
@stephane-airbyte stephane-airbyte force-pushed the stephane/03-02-minor_changes_to_the_java_CDK_test_code branch from 1adba2a to 152c690 Compare March 4, 2024 22:28
Copy link
Contributor Author

stephane-airbyte commented Mar 4, 2024

/publish-java-cdk

🕑 https://github.com/airbytehq/airbyte/actions/runs/8148358329
✅ Successfully published Java CDK version=0.23.13!

@stephane-airbyte stephane-airbyte merged commit e11f0fe into master Mar 4, 2024
26 checks passed
@stephane-airbyte stephane-airbyte deleted the stephane/03-02-minor_changes_to_the_java_CDK_test_code branch March 4, 2024 23:34
xiaohansong pushed a commit that referenced this pull request Mar 7, 2024
 

---

<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>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CDK Connector Development Kit
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants