Skip to content

✨ Allow configuring "options=" in source-postgres jdbc url - #29534

Merged
Octavia The Approver (octavia-approvington) merged 7 commits into
masterfrom
fix-29238-attempt-3
Aug 23, 2023
Merged

Octavia The Approver (octavia-approvington) merged 7 commits into
masterfrom
fix-29238-attempt-3

Conversation

@postamar

@postamar Marius Posta (postamar) commented Aug 17, 2023 •

Copy link
Copy Markdown
Contributor

What

The postgres source correctly handles the options JDBC URL parameter.

How

Specialize the generic JDBC URL parameter parse logic for the postgres use case, similarly to #25859


Closes #29238

@github-actions

github-actions Bot commented Aug 17, 2023 •

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 Aug 17, 2023 •

Copy link
Copy Markdown
Contributor

Coverage report for source-postgres

File Coverage [88.67%] 🍏
PostgresSource.java 88.67% 🍏
Total Project Coverage 70.19% 🍏

@postamar
Marius Posta (postamar) marked this pull request as ready for review August 17, 2023 20:31
@postamar
Marius Posta (postamar) requested a review from a team as a code owner August 17, 2023 20:31
@github-actions

Copy link
Copy Markdown
Contributor

source-alloydb-strict-encrypt test report (commit 19a3013d30) - ❌

⏲️ Total pipeline duration: 06mn28s

Step Result
Validate airbyte-integrations/connectors/source-alloydb-strict-encrypt/metadata.yaml ✅
Connector version semver check ✅
Connector version increment check ✅
QA checks ✅
Build connector tar ✅
Build source-alloydb-strict-encrypt docker image for platform linux/x86_64 ✅
./gradlew :airbyte-integrations:connectors:source-alloydb-strict-encrypt:integrationTest ✅
Acceptance tests ❌

🔗 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-alloydb-strict-encrypt test

@github-actions

Copy link
Copy Markdown
Contributor

source-alloydb test report (commit 19a3013d30) - ❌

⏲️ Total pipeline duration: 04mn50s

Step Result
Validate airbyte-integrations/connectors/source-alloydb/metadata.yaml ✅
Connector version semver check ✅
Connector version increment check ✅
QA checks ✅
Build connector tar ✅
Build source-alloydb docker image for platform linux/x86_64 ✅
./gradlew :airbyte-integrations:connectors:source-alloydb:integrationTest ✅
Acceptance tests ❌

🔗 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-alloydb test

@github-actions

Copy link
Copy Markdown
Contributor

source-postgres-strict-encrypt test report (commit 19a3013d30) - ❌

⏲️ Total pipeline duration: 06mn34s

Step Result
Validate airbyte-integrations/connectors/source-postgres-strict-encrypt/metadata.yaml ✅
Connector version semver check ✅
Connector version increment check ✅
QA checks ✅
Build connector tar ✅
Build source-postgres-strict-encrypt docker image for platform linux/x86_64 ✅
./gradlew :airbyte-integrations:connectors:source-postgres-strict-encrypt:integrationTest ✅
Acceptance tests ❌

🔗 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-strict-encrypt test

@github-actions

Copy link
Copy Markdown
Contributor

source-postgres test report (commit 19a3013d30) - ✅

⏲️ Total pipeline duration: 12mn44s

Step Result
Validate airbyte-integrations/connectors/source-postgres/metadata.yaml ✅
Connector version semver check ✅
Connector version increment check ✅
QA checks ✅
Build connector tar ✅
Build source-postgres docker image for platform linux/x86_64 ✅
./gradlew :airbyte-integrations:connectors:source-postgres:integrationTest ✅
Acceptance tests ✅

🔗 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

@github-actions

Copy link
Copy Markdown
Contributor

source-alloydb-strict-encrypt test report (commit 19a3013d30) - ❌

⏲️ Total pipeline duration: 06mn10s

Step Result
Validate airbyte-integrations/connectors/source-alloydb-strict-encrypt/metadata.yaml ✅
Connector version semver check ✅
Connector version increment check ✅
QA checks ✅
Build connector tar ✅
Build source-alloydb-strict-encrypt docker image for platform linux/x86_64 ✅
./gradlew :airbyte-integrations:connectors:source-alloydb-strict-encrypt:integrationTest ✅
Acceptance tests ❌

🔗 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-alloydb-strict-encrypt test

@github-actions

Copy link
Copy Markdown
Contributor

source-postgres test report (commit 19a3013d30) - ✅

⏲️ Total pipeline duration: 12mn51s

Step Result
Validate airbyte-integrations/connectors/source-postgres/metadata.yaml ✅
Connector version semver check ✅
Connector version increment check ✅
QA checks ✅
Build connector tar ✅
Build source-postgres docker image for platform linux/x86_64 ✅
./gradlew :airbyte-integrations:connectors:source-postgres:integrationTest ✅
Acceptance tests ✅

🔗 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

@github-actions

Copy link
Copy Markdown
Contributor

source-postgres-strict-encrypt test report (commit 19a3013d30) - ✅

⏲️ Total pipeline duration: 06mn09s

Step Result
Validate airbyte-integrations/connectors/source-postgres-strict-encrypt/metadata.yaml ✅
Connector version semver check ✅
Connector version increment check ✅
QA checks ✅
Build connector tar ✅
Build source-postgres-strict-encrypt docker image for platform linux/x86_64 ✅
./gradlew :airbyte-integrations:connectors:source-postgres-strict-encrypt:integrationTest ✅
Acceptance tests ✅

🔗 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-strict-encrypt test

@github-actions

Copy link
Copy Markdown
Contributor

source-alloydb test report (commit 19a3013d30) - ❌

⏲️ Total pipeline duration: 04mn33s

Step Result
Validate airbyte-integrations/connectors/source-alloydb/metadata.yaml ✅
Connector version semver check ✅
Connector version increment check ✅
QA checks ✅
Build connector tar ✅
Build source-alloydb docker image for platform linux/x86_64 ✅
./gradlew :airbyte-integrations:connectors:source-alloydb:integrationTest ✅
Acceptance tests ❌

🔗 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-alloydb test

@postamar

Copy link
Copy Markdown
Contributor Author

Thanks for the review. I'm still deep-diving into how acceptance tests work. I'll want to make the source-postgres-strict-encrypt acceptance tests meaningful, right now the config yaml is little more than a stub.

@github-actions

Copy link
Copy Markdown
Contributor

source-alloydb test report (commit 2730386ecf) - ❌

⏲️ Total pipeline duration: 07mn46s

Step Result
Java Connector Unit Tests ✅
Build connector tar ✅
Build source-alloydb docker image for platform linux/x86_64 ✅
Java Connector Integration Tests ✅
Acceptance tests ❌
Validate airbyte-integrations/connectors/source-alloydb/metadata.yaml ✅
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-alloydb test

@github-actions

Copy link
Copy Markdown
Contributor

source-alloydb-strict-encrypt test report (commit 2730386ecf) - ❌

⏲️ Total pipeline duration: 06mn22s

Step Result
Java Connector Unit Tests ✅
Build connector tar ✅
Build source-alloydb-strict-encrypt docker image for platform linux/x86_64 ✅
Java Connector Integration Tests ✅
Acceptance tests ❌
Validate airbyte-integrations/connectors/source-alloydb-strict-encrypt/metadata.yaml ✅
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-alloydb-strict-encrypt test

@github-actions

Copy link
Copy Markdown
Contributor

source-postgres-strict-encrypt test report (commit 2730386ecf) - ✅

⏲️ Total pipeline duration: 12mn12s

Step Result
Java Connector Unit Tests ✅
Build connector tar ✅
Build source-postgres-strict-encrypt docker image for platform linux/x86_64 ✅
Java Connector Integration Tests ✅
Acceptance tests ✅
Validate airbyte-integrations/connectors/source-postgres-strict-encrypt/metadata.yaml ✅
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-strict-encrypt test

@github-actions

Copy link
Copy Markdown
Contributor

source-postgres test report (commit 2730386ecf) - ✅

⏲️ Total pipeline duration: 33mn04s

Step Result
Java Connector Unit Tests ✅
Build connector tar ✅
Build source-postgres docker image for platform linux/x86_64 ✅
Java Connector Integration Tests ✅
Acceptance tests ✅
Validate airbyte-integrations/connectors/source-postgres/metadata.yaml ✅
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

@postamar

Copy link
Copy Markdown
Contributor Author

/approve-and-merge reason="source-alloydb is a thin wrapper around source-postgres"

@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.

Allow configuring "options=" in source-postgres jdbc url

4 participants