Skip to content

refactor debezium harness in CDK, push connector-specific logic down to connectors - #34573

Merged
Octavia The Approver (octavia-approvington) merged 12 commits into
masterfrom
postamar/unentangle-debezium
Jan 27, 2024
Merged

Octavia The Approver (octavia-approvington) merged 12 commits into
masterfrom
postamar/unentangle-debezium

Conversation

@postamar

@postamar Marius Posta (postamar) commented Jan 26, 2024 •

Copy link
Copy Markdown
Contributor

In the course of restructuring the CDK I stumbled on the tangled knot of dependencies that was our debezium harness. This PR untangles it. Debezium-with-mongo code is moved out of the CDK and into source-mongodb-v2, same with postgres and mysql. Stephane Geneix (@stephane-airbyte) had already taken care of mssql.

This is best reviewed commit-by-commit. First we have the version number change boilerplate. The next commits, up to but not including the last, work towards removing the DebeziumConnectorType enum from the debezium harness. This makes it possible to inject mongo-specific-dependencies into AirbyteDebeziumHandler instead of dispatching on that enum value deeper down. Once that is done, the final commit straightforwardly moves the connector-specific source files from the CDK to the respective connectors.

@vercel

vercel Bot commented Jan 26, 2024 •

Copy link
Copy Markdown

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 Jan 27, 2024 0:40am

@github-actions

Copy link
Copy Markdown
Contributor

Before Merging a Connector Pull Request

Wow! What a great pull request you have here! 🎉

To merge this PR, ensure the following has been done/considered for each connector added or updated:

  • PR name follows PR naming conventions
  • Breaking changes are considered. If a Breaking Change is being introduced, ensure an Airbyte engineer has created a Breaking Change Plan.
  • Connector version has been incremented in the Dockerfile and metadata.yaml according to our Semantic Versioning for Connectors guidelines
  • You've updated the connector's metadata.yaml file any other relevant changes, including a breakingChanges entry for major version bumps. See metadata.yaml docs
  • Secrets in the connector's spec are annotated with airbyte_secret
  • All documentation files are up to date. (README.md, bootstrap.md, docs.md, etc...)
  • Changelog updated in docs/integrations/<source or destination>/<name>.md with an entry for the new version. See changelog example
  • Migration guide updated in docs/integrations/<source or destination>/<name>-migrations.md with an entry for the new version, if the version is a breaking change. See migration guide example
  • If set, you've ensured the icon is present in the platform-internal repo. (Docs)

If the checklist is complete, but the CI check is failing,

  1. Check for hidden checklists in your PR description

  2. Toggle the github label checklist-action-run on/off to re-run the checklist CI.

@github-actions

github-actions Bot commented Jan 26, 2024 •

Copy link
Copy Markdown
Contributor

Coverage report for source-postgres

File Coverage [73.05%] ❌
PostgresCdcConnectorMetadataInjector.java 100% 🍏
PostgresCatalogHelper.java 100% 🍏
PostgresReplicationConnection.java 92.31% 🍏
PostgresCdcCtidInitializer.java 89.35% 🍏
PostgresSource.java 88.32% 🍏
PostgresDebeziumStateUtil.java 84.13% 🍏
PostgresCdcTargetPosition.java 77.99% ❌
PostgresCustomLoader.java 76.47% ❌
PostgresCdcProperties.java 48.16% ❌
PostgresConverter.java 33.33% ❌
Total Project Coverage 69.34% 🍏

@postamar
Marius Posta (postamar) marked this pull request as ready for review January 26, 2024 19:05
@postamar
Marius Posta (postamar) requested a review from a team as a code owner January 26, 2024 19:05
@octavia-squidington-iii Octavia Squidington III (octavia-squidington-iii) added area/documentation Improvements or additions to documentation CDK Connector Development Kit labels Jan 26, 2024
@postamar Marius Posta (postamar) changed the title [WIP] debezium harness refactor refactor debezium harness in CDK, push connector-specific logic down to connectors Jan 27, 2024
@postamar

Marius Posta (postamar) commented Jan 27, 2024 •

Copy link
Copy Markdown
Contributor Author

/publish-java-cdk

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

This reverts commit 932032c.
@postamar

Copy link
Copy Markdown
Contributor Author

/approve-and-merge reason="source-mysql has flaky tests, not related to changes here"

@octavia-approvington

Copy link
Copy Markdown
Contributor

This is really good
simply the best

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants