Skip to content

enable spotbugs for CDK core and dependencies submodule #36612

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

stephane-airbyte
Copy link
Contributor

No description provided.

Copy link

vercel bot commented Mar 28, 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 Apr 3, 2024 6:00pm

@octavia-squidington-iii octavia-squidington-iii added the CDK Connector Development Kit label Mar 28, 2024
@stephane-airbyte stephane-airbyte force-pushed the stephane/03-28-enable_spotbugs_for_cdk_core_submodule branch 3 times, most recently from ef51c54 to 2692351 Compare March 28, 2024 22:24
@stephane-airbyte stephane-airbyte changed the title enable spotbugs for CDK core submodule enable spotbugs for CDK core and dependencies submodule Mar 28, 2024
@stephane-airbyte stephane-airbyte marked this pull request as ready for review March 28, 2024 22:24
@stephane-airbyte stephane-airbyte requested review from a team as code owners March 28, 2024 22:24
@@ -51,10 +51,10 @@ class SshBastionContainer : AutoCloseable {
}

@Throws(IOException::class, InterruptedException::class)
fun getTunnelMethod(tunnelMethod: SshTunnel.TunnelMethod?, innerAddress: Boolean): JsonNode? {
fun getTunnelMethod(tunnelMethod: SshTunnel.TunnelMethod, innerAddress: Boolean): JsonNode? {
Copy link
Contributor

Choose a reason for hiding this comment

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

Why nullable JsonNode ? does Jsons.jsonNode doesn't guarantee empty JsonNode instead of null ?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

you're right. This is actually reported as a compiler warning. I only focused on the spotbugs in this PR

Copy link
Contributor

@postamar postamar left a comment

Choose a reason for hiding this comment

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

I have a few minor requests but nothing which should block this,

@@ -33,7 +33,7 @@ import org.testcontainers.containers.PostgreSQLContainer
import org.testcontainers.utility.MountableFile

internal class TestJdbcUtils {
private var dbName: String? = null
private var dbName: String = "dummy"
Copy link
Contributor

Choose a reason for hiding this comment

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

could this be a legitimate lateinit?

.stream()
.findFirst()
.get()
.value
.ipAddress
)
)!!
Copy link
Contributor

Choose a reason for hiding this comment

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

IMO this needs to be addressed as part of this PR.

Copy link
Contributor

Choose a reason for hiding this comment

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

suggestion: instead of stream().findFirst()... use kotlin constructs

if (process != null) {
TestHarnessUtils.cancelProcess(process)
}
process?.let { TestHarnessUtils.cancelProcess(process) }
Copy link
Contributor

Choose a reason for hiding this comment

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

This ? works now that process is lateinit a non-nullable type? Surprising.

@@ -119,25 +119,24 @@ class DbtTransformationRunner(
emptyMap(),
*dbtArguments.toTypedArray<String>()
)
this.process = process
Copy link
Contributor

Choose a reason for hiding this comment

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

Why not assign to this.process directly? Evidently there's a reason but for my own information I'd like to understand.

@stephane-airbyte stephane-airbyte force-pushed the stephane/03-28-enable_spotbugs_for_cdk_core_submodule branch 4 times, most recently from 95af1a0 to d8b4502 Compare April 3, 2024 16:28
Copy link
Contributor Author

stephane-airbyte commented Apr 3, 2024

Merge activity

@stephane-airbyte stephane-airbyte force-pushed the stephane/03-28-enable_spotbugs_for_cdk_core_submodule branch from d8b4502 to 78f46b4 Compare April 3, 2024 17:57
@stephane-airbyte stephane-airbyte merged commit 6c8ca12 into master Apr 3, 2024
@stephane-airbyte stephane-airbyte deleted the stephane/03-28-enable_spotbugs_for_cdk_core_submodule branch April 3, 2024 18:43
msaffitz added a commit to Encore-Post-Sales/airbyte-magnify that referenced this pull request Apr 3, 2024
* master: (1562 commits)
  ✨ source-google-drive: migrate to poetry  (airbytehq#36581)
  enable spotbugs for CDK core and dependencies submodule (airbytehq#36612)
  ✨ Source Salesforce, Shopify: add maxSecondsBetweenMessages in metadata (airbytehq#36723)
  java-cdk: re-export airbyte-api dependency (airbytehq#36759)
  Source Google Sheets: address dependency conflict and update CDK (airbytehq#36515)
  Airbyte CI: rename incorrectly named pipelines (airbytehq#36722)
  Source Azure Blob Storage: add integration tests (airbytehq#36542)
  Salesforce: retry on download_data and create_stream_job (airbytehq#36385)
  ✨Source Monday: Bumped CDK version dependency (airbytehq#36746)
  airbyte-ci: burst gradle task cache on new java cdk release (airbytehq#36480)
  chore(connectors): remove tasks.py and top-level requirements.txt (airbytehq#36738)
  airbyte-ci: fix pull-request-number option for migrate_to_base_image (airbytehq#36779)
  🤖 Bump patch version of Python CDK
  add backward compatibility for an old close slice logic (airbytehq#36774)
  Bump Airbyte version from 0.57.0 to 0.57.1
  🤖 Bump patch version of Python CDK
  low-code: Fix cursor pagination instantiation if the stop_condition is a string (airbytehq#36760)
  fix rabbitmq icon and simplify docs registry code (airbytehq#36767)
  Update azure-entra-id.md (airbytehq#36758)
  re-enable rabbitmq on OSS (airbytehq#36749)
  ...
nurikk pushed a commit to nurikk/airbyte that referenced this pull request Apr 4, 2024
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.

4 participants