Skip to content

🐛 Destination Snowflake: Merge old snowflake work - #27935

Merged
Octavia The Approver (octavia-approvington) merged 47 commits into
masterfrom
joseph.bell/27714/snowflake-merging
Jul 6, 2023
Merged

Octavia The Approver (octavia-approvington) merged 47 commits into
masterfrom
joseph.bell/27714/snowflake-merging

Conversation

@jbfbell

Copy link
Copy Markdown
Contributor
  • Adds data as JsonNode to pass through, running into memory issues so add JVM args to attach VisualVM
  • JsonNode
  • Lowers the optimal batch size to see if this improvements movement
  • Fixes NPE by checking if PartialAirbyteMessage contains a PartialAirbyteRecord
  • Fixes config switch when config is not explicitly set (config migration needed)
  • Adds logic to check if queue has elements before getting timeOfLastMessage
  • Add PartialSerialisedMessage test. (Add PartialSerialisedMessage test. #27452)
  • 🤖 Auto format destination-snowflake code [skip ci]
  • Cleans up code w/o JVM args & rebase
  • 🤖 Auto format destination-snowflake code [skip ci]
  • Adds breadcrumb on the STATE message deviation and where the deserialize/serialize is done to unpack
  • 🤖 Auto format destination-snowflake code [skip ci]
  • Adds back line formatter removed and comment describing rational for lower batchSize
  • Bumps Snowflake version and type checks
  • Added note to remove PartialAirbyteRecordMessage with low resource testing
  • Automated Commit - Format and Process Resources Changes
  • Fix issue with multiple namespaces in snowflake not writing to the correct staging schema
  • Fix issue with multiple namespaces in snowflake not writing to the correct staging schema
  • remove stage name maniuplating method

What

Describe what the change is solving
It helps to add screenshots if it affects the frontend.

How

Describe the solution

Recommended reading order

  1. x.java
  2. y.python

🚨 User Impact 🚨

Are there any breaking changes? What is the end result perceived by the user?

For connector PRs, use this section to explain which type of semantic versioning bump occurs as a result of the changes. Refer to our Semantic Versioning for Connectors guidelines for more information. Breaking changes to connectors must be documented by an Airbyte engineer (PR author, or reviewer for community PRs) by using the Breaking Change Release Playbook.

If there are breaking changes, please merge this PR with the 🚨🚨 emoji so changelog authors can further highlight this if needed.

Pre-merge Actions

Expand the relevant checklist and delete the others.

New Connector

Community member or Airbyter

  • Community member? Grant edit access to maintainers (instructions)
  • Unit & integration tests added and passing. Community members, please provide proof of success locally e.g: screenshot or copy-paste unit, integration, and acceptance test output. To run acceptance tests for a Python connector, follow instructions in the README. For java connectors run ./gradlew :airbyte-integrations:connectors:<name>:integrationTest.
  • Connector version is set to 0.0.1
    • Dockerfile has version 0.0.1
  • Documentation updated
    • Connector's README.md
    • Connector's bootstrap.md. See description and examples
    • docs/integrations/<source or destination>/<name>.md including changelog with an entry for the initial version. See changelog example
    • docs/integrations/README.md

Airbyter

If this is a community PR, the Airbyte engineer reviewing this PR is responsible for the below items.

  • Create a non-forked branch based on this PR and test the below items on it
  • Build is successful
  • If new credentials are required for use in CI, add them to GSM. Instructions.
Updating a connector

Community member or Airbyter

  • Grant edit access to maintainers (instructions)
  • Unit & integration tests added

Airbyter

If this is a community PR, the Airbyte engineer reviewing this PR is responsible for the below items.

  • Create a non-forked branch based on this PR and test the below items on it
  • Build is successful
  • If new credentials are required for use in CI, add them to GSM. Instructions.
Connector Generator
  • Issue acceptance criteria met
  • PR name follows PR naming conventions
  • If adding a new generator, add it to the list of scaffold modules being tested
  • The generator test modules (all connectors with -scaffold in their name) have been updated with the latest scaffold by running ./gradlew :airbyte-integrations:connector-templates:generator:testScaffoldTemplates then checking in your changes
  • Documentation which references the generator is updated as needed

Ryan Fu (ryankfu) and others added 25 commits June 21, 2023 14:24
* Test deserialise.

* Add tests.

* Simplify and fix tests.

* Format.

* Adds tests for deserializeAirbyteMessage

* Adds tests for deserializeAirbyteMessage with bad data

* Cleans up deserializeAirbyteMessage and throws Exception when invalid message

* More code cleanup

---------

Co-authored-by: ryankfu <ryan.fu@airbyte.io>
@octavia-squidington-iii

Copy link
Copy Markdown
Contributor

source-instagram test report (commit 7f77448fea) - ❌

⏲️ Total pipeline duration: 10mn14s

Step Result
Validate airbyte-integrations/connectors/source-instagram/metadata.yaml ✅
Connector version semver check ✅
QA checks ✅
Code format checks ✅
Connector package install ✅
Build source-instagram docker image for platform linux/x86_64 ✅
Unit tests ✅
Integration tests ✅
Acceptance tests ❌

🔗 View the logs here

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-instagram test

@octavia-squidington-iii

Copy link
Copy Markdown
Contributor

source-pipedrive test report (commit 7f77448fea) - ❌

⏲️ Total pipeline duration: 06mn01s

Step Result
Validate airbyte-integrations/connectors/source-pipedrive/metadata.yaml ✅
Connector version semver check ✅
Connector version increment check ❌
QA checks ✅
Code format checks ✅
Connector package install ✅
Build source-pipedrive docker image for platform linux/x86_64 ✅
Unit tests ✅
Integration tests ✅
Acceptance tests ❌

🔗 View the logs here

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-pipedrive test

@octavia-squidington-iii

Copy link
Copy Markdown
Contributor

source-pinterest test report (commit 7f77448fea) - ❌

⏲️ Total pipeline duration: 15mn21s

Step Result
Validate airbyte-integrations/connectors/source-pinterest/metadata.yaml ✅
Connector version semver check ✅
Connector version increment check ❌
QA checks ✅
Code format checks ✅
Connector package install ✅
Build source-pinterest docker image for platform linux/x86_64 ✅
Unit tests ✅
Acceptance tests ✅

🔗 View the logs here

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-pinterest test

@octavia-squidington-iii

Copy link
Copy Markdown
Contributor

source-zendesk-chat test report (commit 7f77448fea) - ❌

⏲️ Total pipeline duration: 08mn33s

Step Result
Validate airbyte-integrations/connectors/source-zendesk-chat/metadata.yaml ✅
Connector version semver check ✅
QA checks ✅
Code format checks ✅
Connector package install ✅
Build source-zendesk-chat docker image for platform linux/x86_64 ✅
Unit tests ✅
Acceptance tests ❌

🔗 View the logs here

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-zendesk-chat test

@octavia-squidington-iii

Copy link
Copy Markdown
Contributor

source-stripe test report (commit 7f77448fea) - ✅

⏲️ Total pipeline duration: 13mn37s

Step Result
Validate airbyte-integrations/connectors/source-stripe/metadata.yaml ✅
Connector version semver check ✅
QA checks ✅
Code format checks ✅
Connector package install ✅
Build source-stripe docker image for platform linux/x86_64 ✅
Unit tests ✅
Acceptance tests ✅

🔗 View the logs here

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-stripe test

@octavia-squidington-iii

Copy link
Copy Markdown
Contributor

source-zendesk-talk test report (commit 7f77448fea) - ✅

⏲️ Total pipeline duration: 05mn24s

Step Result
Validate airbyte-integrations/connectors/source-zendesk-talk/metadata.yaml ✅
Connector version semver check ✅
QA checks ✅
Code format checks ✅
Connector package install ✅
Build source-zendesk-talk docker image for platform linux/x86_64 ✅
Unit tests ✅
Acceptance tests ✅

🔗 View the logs here

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-zendesk-talk test

@octavia-squidington-iii

Copy link
Copy Markdown
Contributor

source-xero test report (commit 7f77448fea) - ✅

⏲️ Total pipeline duration: 18mn15s

Step Result
Validate airbyte-integrations/connectors/source-xero/metadata.yaml ✅
Connector version semver check ✅
QA checks ✅
Code format checks ✅
Connector package install ✅
Build source-xero docker image for platform linux/x86_64 ✅
Unit tests ✅
Acceptance tests ✅

🔗 View the logs here

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-xero test

@octavia-squidington-iii

Copy link
Copy Markdown
Contributor

destination-e2e-test test report (commit 6921b3ab36) - ❌

⏲️ Total pipeline duration: 04mn59s

Step Result
Validate airbyte-integrations/connectors/destination-e2e-test/metadata.yaml ✅
Connector version semver check ✅
QA checks ✅
Build connector tar ✅
Build destination-e2e-test docker image for platform linux/x86_64 ✅
./gradlew :airbyte-integrations:connectors:destination-e2e-test:integrationTest ❌

🔗 View the logs here

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=destination-e2e-test test

@octavia-squidington-iii

Copy link
Copy Markdown
Contributor

source-e2e-test-cloud test report (commit 6921b3ab36) - ❌

⏲️ Total pipeline duration: 03mn51s

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

🔗 View the logs here

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-e2e-test-cloud test

@octavia-squidington-iii

Copy link
Copy Markdown
Contributor

source-elasticsearch test report (commit 6921b3ab36) - ❌

⏲️ Total pipeline duration: 03mn44s

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

🔗 View the logs here

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-elasticsearch test

public static boolean useAsyncSnowflake(final JsonNode config) {
// this is how we toggle async snowflake on.
// final Set<String> stagingLoadingMethods = Collections.emptySet();
final Set<String> stagingLoadingMethods = Set.of("standard", "internal staging", "internal-staging", "internal_staging");

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Davin Chia (@davinchia) Should this be on? In the other PR this was set to off

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

hmm which pr did you previously see this from?

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

note: from the spec.json, I believe this should only be Internal Staging. We don't want to turn this on for 'standard'.

@edgao Edward Gao (edgao) left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

rubberstamp 🤷 lgtm assuming other conversations get resolved

@davinchia Davin Chia (davinchia) left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

One comment on turning this on only for Internal Staging.

Otherwise, :shipit:

@jbfbell

Copy link
Copy Markdown
Contributor Author

/approve-and-merge

@octavia-approvington

Copy link
Copy Markdown
Contributor

Trying to merge your PR using a bot?
Comment this on the PR:

/approve-and-merge reason="<STATE YOUR REASON HERE>"

Make sure you've reviewed the docs!

@davinchia

Copy link
Copy Markdown
Contributor

Joe Bell (@jbfbell) if you are trying to use the slash command you are missing a 'reason' parameter

@jbfbell

Copy link
Copy Markdown
Contributor Author

Joe Bell (@jbfbell) if you are trying to use the slash command you are missing a 'reason' parameter

Davin Chia (@davinchia) dang, thank you

@jbfbell

Copy link
Copy Markdown
Contributor Author

/approve-and-merge reason="Snowflake Destination tests passing, only publishing snowflake destination"

@octavia-approvington

Copy link
Copy Markdown
Contributor

Our work here is done
done

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.