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

Migrate source-postgres-strict-encrypt logic into source-postgres and make it the default cloud image #31486

Merged
merged 22 commits into from
Oct 18, 2023

Conversation

akashkulk
Copy link
Contributor

Steps taken :

  1. Copy over logic from .*StrictEncrypt.java classes
  2. Update the images in the ported over java test files to use source-postgres instead of the strict encrypt variant
  3. Copy over the expected_spec.json file
  4. Migrate integration tests
  5. Update CAT tests

Future steps :

  1. Remove the source-postgres-strict-encrypt directory
  2. Remove Dockerfile?

@vercel
Copy link

vercel bot commented Oct 17, 2023

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 Oct 18, 2023 6:50pm

@octavia-squidington-iii octavia-squidington-iii added area/connectors Connector related issues area/documentation Improvements or additions to documentation CDK Connector Development Kit connectors/source/postgres labels Oct 17, 2023
@github-actions
Copy link
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.

@akashkulk akashkulk marked this pull request as ready for review October 17, 2023 00:10
@akashkulk akashkulk requested a review from a team as a code owner October 17, 2023 00:10
@airbyte-oss-build-runner
Copy link
Collaborator

source-postgres test report (commit 82cd548048) - ✅

⏲️ Total pipeline duration: 22mn10s

Step Result
Build connector tar
Java Connector Unit Tests
Build source-postgres docker image for platform(s) linux/x86_64
Acceptance tests
Java Connector Integration Tests
Validate metadata for source-postgres
Connector version semver check
Connector version increment check
QA checks

🔗 View the logs here

☁️ View runs for commit in Dagger Cloud

Please note that tests are only run on PR ready for review. Please set your PR to draft mode to not flood the CI engine and upstream service on following commits.
You can run the same pipeline locally on this branch with the airbyte-ci tool with the following command

airbyte-ci connectors --name=source-postgres test

@airbyte-oss-build-runner
Copy link
Collaborator

source-postgres test report (commit aec3f12f8f) - ✅

⏲️ Total pipeline duration: 21mn36s

Step Result
Build connector tar
Java Connector Unit Tests
Build source-postgres docker image for platform(s) linux/x86_64
Acceptance tests
Java Connector Integration Tests
Validate metadata for source-postgres
Connector version semver check
Connector version increment check
QA checks

🔗 View the logs here

☁️ View runs for commit in Dagger Cloud

Please note that tests are only run on PR ready for review. Please set your PR to draft mode to not flood the CI engine and upstream service on following commits.
You can run the same pipeline locally on this branch with the airbyte-ci tool with the following command

airbyte-ci connectors --name=source-postgres test

@akashkulk akashkulk changed the title Akash variant remove/source postgres attempt 2 Migrate source-postgres-strict-encrypt logic into source-postgres and make it the default cloud image Oct 17, 2023
Copy link
Contributor

@bnchrch bnchrch left a comment

Choose a reason for hiding this comment

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

So excited to see this go up for review.

From a connector ops perspective it seems good!

Thanks @akashkulk

goforit

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.

Just a bunch of nits on my end, no objections of principle.

@@ -9,7 +9,7 @@ plugins {
airbyteJavaConnector {
cdkVersionRequired = '0.1.9'
features = ['db-sources']
useLocalCdk = false
useLocalCdk = true
Copy link
Contributor

Choose a reason for hiding this comment

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

Don't forget to publish the CDK, import the new version and set this to false before merging.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Ah yes! Just wanted to do that to make sure tests were passing!

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Am publishing it, making the switch after it's been published and works locally with the newly published version

docs/integrations/sources/postgres.md Outdated Show resolved Hide resolved
@akashkulk
Copy link
Contributor Author

akashkulk commented Oct 18, 2023

/publish-java-cdk dry-run=true

🕑 https://github.com/airbytehq/airbyte/actions/runs/6564341526
❌ Publish Java CDK version=0.1.10 failed!

@airbyte-oss-build-runner
Copy link
Collaborator

source-postgres test report (commit 85a40ed5b0) - ❌

⏲️ Total pipeline duration: 19mn41s

Step Result
Build connector tar
Java Connector Unit Tests
Build source-postgres docker image for platform(s) linux/x86_64
Acceptance tests
Java Connector Integration Tests
Validate metadata for source-postgres
Connector version semver check
Connector version increment check
QA checks

🔗 View the logs here

☁️ View runs for commit in Dagger Cloud

Please note that tests are only run on PR ready for review. Please set your PR to draft mode to not flood the CI engine and upstream service on following commits.
You can run the same pipeline locally on this branch with the airbyte-ci tool with the following command

airbyte-ci connectors --name=source-postgres test

@akashkulk
Copy link
Contributor Author

akashkulk commented Oct 18, 2023

/publish-java-cdk dry-run=true

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

@akashkulk
Copy link
Contributor Author

akashkulk commented Oct 18, 2023

/publish-java-cdk

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

@airbyte-oss-build-runner
Copy link
Collaborator

source-postgres test report (commit db2002cd5a) - ❌

⏲️ Total pipeline duration: 18mn51s

Step Result
Build connector tar
Java Connector Unit Tests
Build source-postgres docker image for platform(s) linux/x86_64
Acceptance tests
Java Connector Integration Tests
Validate metadata for source-postgres
Connector version semver check
Connector version increment check
QA checks

🔗 View the logs here

☁️ View runs for commit in Dagger Cloud

Please note that tests are only run on PR ready for review. Please set your PR to draft mode to not flood the CI engine and upstream service on following commits.
You can run the same pipeline locally on this branch with the airbyte-ci tool with the following command

airbyte-ci connectors --name=source-postgres test

@airbyte-oss-build-runner
Copy link
Collaborator

source-postgres test report (commit e156d376da) - ✅

⏲️ Total pipeline duration: 18mn36s

Step Result
Build connector tar
Java Connector Unit Tests
Build source-postgres docker image for platform(s) linux/x86_64
Acceptance tests
Java Connector Integration Tests
Validate metadata for source-postgres
Connector version semver check
Connector version increment check
QA checks

🔗 View the logs here

☁️ View runs for commit in Dagger Cloud

Please note that tests are only run on PR ready for review. Please set your PR to draft mode to not flood the CI engine and upstream service on following commits.
You can run the same pipeline locally on this branch with the airbyte-ci tool with the following command

airbyte-ci connectors --name=source-postgres test

@akashkulk akashkulk merged commit 52520d0 into master Oct 18, 2023
23 of 26 checks passed
@akashkulk akashkulk deleted the akash-variant-remove/source-postgres-attempt-2 branch October 18, 2023 19:39
ariesgun pushed a commit to ariesgun/airbyte that referenced this pull request Oct 20, 2023
… make it the default cloud image (airbytehq#31486)

Co-authored-by: Ben Church <ben@airbyte.io>
Co-authored-by: akashkulk <akashkulk@users.noreply.github.com>
ariesgun pushed a commit to ariesgun/airbyte that referenced this pull request Oct 23, 2023
… make it the default cloud image (airbytehq#31486)

Co-authored-by: Ben Church <ben@airbyte.io>
Co-authored-by: akashkulk <akashkulk@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/connectors Connector related issues area/documentation Improvements or additions to documentation CDK Connector Development Kit connectors/source/postgres
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

6 participants