Skip to content

✨ Destinations bigquery+snowflake: Release DV2 - #29783

Merged
Octavia The Approver (octavia-approvington) merged 27 commits into
masterfrom
edgao/dv2/release
Aug 29, 2023
Merged

Octavia The Approver (octavia-approvington) merged 27 commits into
masterfrom
edgao/dv2/release

Conversation

@edgao

@edgao Edward Gao (edgao) commented Aug 23, 2023 •

Copy link
Copy Markdown
Contributor

⚠️ 💀 DO NOT MERGE UNTIL WE ARE CLEARED FOR TAKEOFF 💀 ⚠️

closes #29728. Markdown/yaml changes largely taken from #29683.

Reviewers: Read each commit in sequence. The first two commits (d9aa4d1 + 4d10768) are basically just git checkout evan/bigquery-snowflake-v2 -- <stuff>; the rest are more interesting.

presumably, if anything in here is broken, CI will fail. Not running any interesting tests locally. I did verify that the docker images no longer contain normalization, though.

@github-actions

github-actions Bot commented Aug 23, 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.

@octavia-squidington-iii Octavia Squidington III (octavia-squidington-iii) removed the CDK Connector Development Kit label Aug 23, 2023
@edgao Edward Gao (edgao) changed the title Destinations bigquery+snowflake: Release DV2 ✨ Destinations bigquery+snowflake: Release DV2 Aug 23, 2023
This code isn't actually used by destination-bigquery. It's only used by
destinations that write actual files (e.g. s3/gcs).
disable dv2 for redshift; enable it for snowflake
bigquery isn't on this code path because bigquery doesn't use CSV
@edgao
Edward Gao (edgao) marked this pull request as ready for review August 23, 2023 23:27
@edgao
Edward Gao (edgao) requested a review from a team as a code owner August 23, 2023 23:27
@github-actions

This comment was marked as outdated.

@github-actions

This comment was marked as outdated.

@evantahler

Evan Tahler (evantahler) commented Aug 24, 2023 •

Copy link
Copy Markdown
Contributor

@github-actions

This comment was marked as outdated.

@evantahler

Evan Tahler (evantahler) commented Aug 28, 2023 •

Copy link
Copy Markdown
Contributor

@github-actions

Copy link
Copy Markdown
Contributor

destination-redshift test report (commit 723a13f313) - ❌

⏲️ Total pipeline duration: 43mn39s

Step Result
Java Connector Unit Tests ✅
Build connector tar ✅
Build destination-redshift docker image for platform linux/x86_64 ✅
Build airbyte/normalization-redshift:dev ✅
Java Connector Integration Tests ❌
Validate airbyte-integrations/connectors/destination-redshift/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=destination-redshift test

@github-actions

Copy link
Copy Markdown
Contributor

destination-snowflake test report (commit 723a13f313) - ✅

⏲️ Total pipeline duration: 10mn02s

Step Result
Java Connector Unit Tests ✅
Build connector tar ✅
Build destination-snowflake docker image for platform linux/x86_64 ✅
Java Connector Integration Tests ✅
Validate airbyte-integrations/connectors/destination-snowflake/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=destination-snowflake test

@github-actions

Copy link
Copy Markdown
Contributor

destination-bigquery-denormalized test report (commit 723a13f313) - ❌

⏲️ Total pipeline duration: 18mn39s

Step Result
Java Connector Unit Tests ✅
Build connector tar ✅
Build destination-bigquery-denormalized docker image for platform linux/x86_64 ✅
Java Connector Integration Tests ❌
Validate airbyte-integrations/connectors/destination-bigquery-denormalized/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=destination-bigquery-denormalized test

@github-actions

Copy link
Copy Markdown
Contributor

destination-bigquery test report (commit 723a13f313) - ✅

⏲️ Total pipeline duration: 13mn24s

Step Result
Java Connector Unit Tests ✅
Build connector tar ✅
Build destination-bigquery docker image for platform linux/x86_64 ✅
Java Connector Integration Tests ✅
Validate airbyte-integrations/connectors/destination-bigquery/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=destination-bigquery test

@github-actions

Copy link
Copy Markdown
Contributor

destination-gcs test report (commit 723a13f313) - ❌

⏲️ Total pipeline duration: 14mn07s

Step Result
Java Connector Unit Tests ✅
Build connector tar ✅
Build destination-gcs docker image for platform linux/x86_64 ✅
Java Connector Integration Tests ✅
Validate airbyte-integrations/connectors/destination-gcs/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=destination-gcs test


public GenericData.Record getAvroRecord(final UUID id, final AirbyteRecordMessage recordMessage) throws JsonProcessingException {
final ObjectNode jsonRecord = MAPPER.createObjectNode();
if (TypingAndDedupingFlag.isDestinationV2()) {

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.

I think the wrong block of this conditional is kept?

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.

this is intentional - this file isn't actually used by dv2, it's only used by real file destinations (s3/gcs). e160ad6

public StagingDatabaseCsvSheetGenerator() {
use1s1t = TypingAndDedupingFlag.isDestinationV2();
this.header = use1s1t ? JavaBaseConstants.V2_RAW_TABLE_COLUMN_NAMES : JavaBaseConstants.LEGACY_RAW_TABLE_COLUMNS;
this(false);

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.

true?

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.

this is to maintain v1 behavior in old destinations (i.e. redshift I think?). V2 destinations are all using the new constructor and explicitly passing true.

@github-actions

Copy link
Copy Markdown
Contributor

destination-redshift test report (commit 978220df1a) - ❌

⏲️ Total pipeline duration: 39mn53s

Step Result
Java Connector Unit Tests ✅
Build connector tar ✅
Build destination-redshift docker image for platform linux/x86_64 ✅
Build airbyte/normalization-redshift:dev ✅
Java Connector Integration Tests ✅
Validate airbyte-integrations/connectors/destination-redshift/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=destination-redshift test

@github-actions

Copy link
Copy Markdown
Contributor

destination-gcs test report (commit 978220df1a) - ❌

⏲️ Total pipeline duration: 13mn41s

Step Result
Java Connector Unit Tests ✅
Build connector tar ✅
Build destination-gcs docker image for platform linux/x86_64 ✅
Java Connector Integration Tests ✅
Validate airbyte-integrations/connectors/destination-gcs/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=destination-gcs test

@edgao

Copy link
Copy Markdown
Contributor Author

/approve-and-merge reason="preflight checks all green, let's do this"

@octavia-approvington

Copy link
Copy Markdown
Contributor

Lets do it!
giddddy-up

@github-actions

Copy link
Copy Markdown
Contributor

destination-snowflake test report (commit 978220df1a) - ✅

⏲️ Total pipeline duration: 12mn37s

Step Result
Java Connector Unit Tests ✅
Build connector tar ✅
Build destination-snowflake docker image for platform linux/x86_64 ✅
Java Connector Integration Tests ✅
Validate airbyte-integrations/connectors/destination-snowflake/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=destination-snowflake test

@edgao

Copy link
Copy Markdown
Contributor Author

(for real though: intentionally not publishing gcs/s3, and bigquery-denormalized is going away. snowflake+bigquery are green.)

@github-actions

Copy link
Copy Markdown
Contributor

destination-bigquery test report (commit 978220df1a) - ❌

⏲️ Total pipeline duration: 14mn08s

Step Result
Java Connector Unit Tests ✅
Build connector tar ✅
Build destination-bigquery docker image for platform linux/x86_64 ✅
Java Connector Integration Tests ✅
Validate airbyte-integrations/connectors/destination-bigquery/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=destination-bigquery test

@github-actions

Copy link
Copy Markdown
Contributor

destination-bigquery-denormalized test report (commit 978220df1a) - ❌

⏲️ Total pipeline duration: 18mn51s

Step Result
Java Connector Unit Tests ✅
Build connector tar ✅
Build destination-bigquery-denormalized docker image for platform linux/x86_64 ✅
Java Connector Integration Tests ❌
Validate airbyte-integrations/connectors/destination-bigquery-denormalized/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=destination-bigquery-denormalized test

@github-actions

Copy link
Copy Markdown
Contributor

destination-snowflake test report (commit c8550871dc) - ❌

⏲️ Total pipeline duration: 03mn42s

Step Result
Java Connector Unit Tests ✅
Build connector tar ✅
Build destination-snowflake docker image for platform linux/x86_64 ✅
Java Connector Integration Tests ✅
Validate airbyte-integrations/connectors/destination-snowflake/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=destination-snowflake test

@github-actions

Copy link
Copy Markdown
Contributor

destination-bigquery test report (commit c8550871dc) - ❌

⏲️ Total pipeline duration: 03mn13s

Step Result
Java Connector Unit Tests ✅
Build connector tar ✅
Build destination-bigquery docker image for platform linux/x86_64 ✅
Java Connector Integration Tests ✅
Validate airbyte-integrations/connectors/destination-bigquery/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=destination-bigquery test

@github-actions

Copy link
Copy Markdown
Contributor

destination-redshift test report (commit c8550871dc) - ❌

⏲️ Total pipeline duration: 04mn04s

Step Result
Java Connector Unit Tests ✅
Build connector tar ✅
Build destination-redshift docker image for platform linux/x86_64 ✅
Build airbyte/normalization-redshift:dev ✅
Java Connector Integration Tests ✅
Validate airbyte-integrations/connectors/destination-redshift/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=destination-redshift test

@github-actions

Copy link
Copy Markdown
Contributor

destination-bigquery-denormalized test report (commit c8550871dc) - ❌

⏲️ Total pipeline duration: 13mn09s

Step Result
Java Connector Unit Tests ✅
Build connector tar ✅
Build destination-bigquery-denormalized docker image for platform linux/x86_64 ✅
Java Connector Integration Tests ❌
Validate airbyte-integrations/connectors/destination-bigquery-denormalized/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=destination-bigquery-denormalized test

@github-actions

Copy link
Copy Markdown
Contributor

destination-gcs test report (commit c8550871dc) - ❌

⏲️ Total pipeline duration: 02mn35s

Step Result
Java Connector Unit Tests ✅
Build connector tar ✅
Build destination-gcs docker image for platform linux/x86_64 ✅
Java Connector Integration Tests ✅
Validate airbyte-integrations/connectors/destination-gcs/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=destination-gcs test

Harry Touloupas (harrytou) pushed a commit to KYVENetwork/airbyte that referenced this pull request Sep 1, 2023
Co-authored-by: edgao <edgao@users.noreply.github.com>
Co-authored-by: Evan Tahler <evan@airbyte.io>
Co-authored-by: evantahler <evantahler@users.noreply.github.com>
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.

Real V2 releases for BigQuery and Snowflake

6 participants