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

feat(source-sendgrid): Upgrade to latest manifest-only CDK version to enable concurrency for all streams #49812

Conversation

brianjlai
Copy link
Contributor

@brianjlai brianjlai commented Dec 16, 2024

What

Sendgrid is currently our only certified connector that uses the new(ish) AsyncRetriever. In order to test the component migration to make async job streams concurrent, we want to release it to this connector.

The contacts stream is the only async stream. But we've made some improvements for SimpleRetriever to be stateless which should not impact things under the hood.

User Impact

n/a

Can this PR be safely reverted and rolled back?

  • YES 💚
  • NO ❌

Copy link

vercel bot commented Dec 16, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
airbyte-docs ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jan 9, 2025 11:38pm

@octavia-squidington-iii octavia-squidington-iii added the area/documentation Improvements or additions to documentation label Dec 30, 2024
@brianjlai brianjlai marked this pull request as ready for review December 30, 2024 23:55
@octavia-squidington-iv octavia-squidington-iv requested a review from a team December 30, 2024 23:56
@brianjlai brianjlai changed the title [source-sendgrid] Upgrade to latest manifest-only CDK version [source-sendgrid] Upgrade to latest manifest-only CDK version to enable concurrency for all streams Dec 31, 2024
@brianjlai
Copy link
Contributor Author

regression test notes:

  • Mismatch records full refresh streams: lists, singlesend_stats, templates, campaigns, and singlesends. This is interesting because looking at the customer connection on cloud, the target counts match and for some reason the control is registered all with 0 records which seems incorrect. I tested this again locally with the candidate the it matches what's reported in cloud
  • catalog changes is_resumable -> false. Expected because we're moving to concurrent where full refresh streams aren't resumable.

acceptance test notes:

  • There is a type mismatch where we're now emitting the epoch based created cursor values as strings instead of ints in CDK v5. I double checked this and this already exists in the current latest version of the CDK and unrelated to my changes. It's probably a result of moving to concurrent streams and if we haven't observed issues in other connectors this shouldn't be an issue since regression test results with state are matching

Despite the mismatches, I believe this upgrade is working as expected

@@ -640,6 +640,8 @@ definitions:
path: "{{stream_slice['url']}}"
url_base: ""
http_method: GET
download_extractor:
type: ResponseToFileExtractor
Copy link
Contributor Author

Choose a reason for hiding this comment

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

There was a subtle change in this PR: https://github.com/airbytehq/airbyte-python-cdk/pull/50/files#diff-1d9bc4ca384e5c00867da05e9db9d919aba908c59bb73aab83883b9ed20def05L2040

Where we no longer automatically used the ResponseToFileExtractor if download_extractor was not defined. Instead we defaulted to the JsonDecoder which broke sendgrid. Since this was the only use of AsyncRetriever, its easy enough to just fix it here instead of a full breaking change.

@brianjlai
Copy link
Contributor Author

brianjlai commented Dec 31, 2024

/approve-regression-tests validated mismatches and mentioned in above notes

Check job output.

✅ Approving regression tests

Copy link
Collaborator

@artem1205 artem1205 left a comment

Choose a reason for hiding this comment

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

changes looks safe to merge.

Copy link
Collaborator

@lazebnyi lazebnyi left a comment

Choose a reason for hiding this comment

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

lgtm 

@brianjlai brianjlai changed the title [source-sendgrid] Upgrade to latest manifest-only CDK version to enable concurrency for all streams feat(source-sendgrid): Upgrade to latest manifest-only CDK version to enable concurrency for all streams Jan 9, 2025
@brianjlai
Copy link
Contributor Author

closed in favor of #48238

@brianjlai brianjlai closed this Jan 15, 2025
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 connectors/source/sendgrid
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants