Skip to content

feat: migrate cloud destinations to v2 sdk - #5916

Merged
cisse21 merged 43 commits into
masterfrom
feat.migrateCloudDestinationToSDKV2
Jun 13, 2025
Merged

cisse21 merged 43 commits into
masterfrom
feat.migrateCloudDestinationToSDKV2

Conversation

@cisse21

@cisse21 cisse21 commented May 28, 2025 •

Copy link
Copy Markdown
Member

Description

Migrates all the cloud destinations to v2 SDK
Update the common error handling package to handle smithy-go errors
Got rid of tests which were validating the input as the Validate function is no longer exposed

Linear Ticket

Fixes PIPE-2109
Fixes PIPE-2106

Security

  • The code changed/added as part of this pull request won't create any security issues with how the software is being used.

@cisse21
cisse21 marked this pull request as ready for review June 2, 2025 09:23
@cisse21
cisse21 requested review from atzoum and koladilip and removed request for atzoum June 2, 2025 09:23
@codecov

codecov Bot commented Jun 2, 2025 •

Copy link
Copy Markdown

Codecov Report

Attention: Patch coverage is 72.22222% with 140 lines in your changes missing coverage. Please review.

Project coverage is 76.63%. Comparing base (3e0dc6f) to head (c8c06a7).
Report is 6 commits behind head on master.

Files with missing lines Patch % Lines
services/streammanager/common/switcher.go 19.23% 19 Missing and 2 partials ⚠️
...ammanager/wunderkind/wunderkindmanager_switcher.go 30.76% 17 Missing and 1 partial ⚠️
...ervices/streammanager/kinesis/kinesismanager_v2.go 74.60% 12 Missing and 4 partials ⚠️
...vices/streammanager/firehose/firehosemanager_v2.go 75.47% 10 Missing and 3 partials ⚠️
...streammanager/eventbridge/eventbridgemanager_v2.go 78.57% 9 Missing and 3 partials ⚠️
services/streammanager/lambda/lambdamanager_v2.go 80.39% 8 Missing and 2 partials ⚠️
...streammanager/personalize/personalizemanager_v2.go 85.24% 7 Missing and 2 partials ⚠️
...vices/streammanager/wunderkind/wunderkind_utils.go 35.71% 6 Missing and 3 partials ⚠️
...s/streammanager/wunderkind/wunderkindmanager_v2.go 86.15% 7 Missing and 2 partials ⚠️
services/streammanager/common/common.go 69.23% 7 Missing and 1 partial ⚠️
... and 8 more
Additional details and impacted files
@@            Coverage Diff             @@
##           master    #5916      +/-   ##
==========================================
- Coverage   76.84%   76.63%   -0.22%     
==========================================
  Files         495      514      +19     
  Lines       68528    69028     +500     
==========================================
+ Hits        52663    52899     +236     
- Misses      12991    13252     +261     
- Partials     2874     2877       +3     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

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

My main concern is that there is no viable rollout strategy for this change.
We shouldn't be needing to revert a release due to a bug in awsv2 destination managers, nor should a release be blocked in an environment because it contains sdkv2 changes.

At least during the rollout period, we should be able to control whether awsSdkV2 or awsSdkV1 destination managers should be used in any given deployment (defaulting to v1). Post rollout we could remove this configuration option.

@cisse21
cisse21 requested a review from atzoum June 5, 2025 13:23
@ktgowtham
ktgowtham self-requested a review June 9, 2025 08:34
@cisse21
cisse21 requested a review from atzoum June 11, 2025 05:12
Comment thread go.mod Resolved
Comment thread go.mod Resolved
@cisse21
cisse21 requested a review from atzoum June 11, 2025 10:22
Produce(jsonData json.RawMessage, _ interface{}) (int, string, string)
}

func NewProducer(conf *config.Config, log logger.Logger) (WunderkindManager, error) {

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.

can't we use the common switcher here as well?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

here we can't because the signature is different. I missed personalise so will do make the changes over there

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.

we can update original producer to follow common pattern, shall raise pr against this branch?

@ktgowtham
ktgowtham requested a review from atzoum June 12, 2025 11:02
@cisse21
cisse21 merged commit 93d64f5 into master Jun 13, 2025
@cisse21
cisse21 deleted the feat.migrateCloudDestinationToSDKV2 branch June 13, 2025 06:10
This was referenced Jun 16, 2025
itsmihir pushed a commit that referenced this pull request Jun 16, 2025
🤖 I have created a release *beep* *boop*
---


##
[1.52.0-rc.1](v1.51.0...v1.52.0-rc.1)
(2025-06-16)


### Features

* capture bot metrics post deduplication
([#5956](#5956))
([94f40c8](94f40c8))
* detect and handle memory-fenced responses in rudder-server
([#5935](#5935))
([af45808](af45808))
* migrate cloud destinations to v2 sdk
([#5916](#5916))
([93d64f5](93d64f5))
* shutdown server on non-reloadable config change
([#5941](#5941))
([985d3f9](985d3f9))


### Bug Fixes

* duplicates in snowpipe streaming due to stale channel cache
([#5957](#5957))
([4badd49](4badd49))
* gcs file deletion timing out
([#5951](#5951))
([e4abe53](e4abe53))
* update and extend async event delivery time metrics tests for
JobParameters logic
([#5975](#5975))
([01483d5](01483d5))
* warehouse transformations deep copying arguments
([#5979](#5979))
([28d15ac](28d15ac))


### Miscellaneous

* add conversionTime iso 8601 validation for bingads oc
([#5858](#5858))
([3e0dc6f](3e0dc6f))
* create new backoff on every reporting request
([#5993](#5993))
([7e3715a](7e3715a))
* **deps:** bump the go-deps group across 1 directory with 21 updates
([#5983](#5983))
([aa3ee66](aa3ee66))
* remove golang.org/x/crypto v0.32.0
([#5986](#5986))
([6fbb5a3](6fbb5a3))
* sync release v1.51.0 to main branch
([#5971](#5971))
([b9b1a21](b9b1a21))

---
This PR was generated with [Release
Please](https://github.com/googleapis/release-please). See
[documentation](https://github.com/googleapis/release-please#release-please).
itsmihir pushed a commit that referenced this pull request Jun 17, 2025
🤖 I have created a release *beep* *boop*
---


##
[1.52.0](v1.51.0...v1.52.0)
(2025-06-16)


### Features

* capture bot metrics post deduplication
([#5956](#5956))
([94f40c8](94f40c8))
* detect and handle memory-fenced responses in rudder-server
([#5935](#5935))
([af45808](af45808))
* migrate cloud destinations to v2 sdk
([#5916](#5916))
([93d64f5](93d64f5))
* shutdown server on non-reloadable config change
([#5941](#5941))
([985d3f9](985d3f9))


### Bug Fixes

* duplicates in snowpipe streaming due to stale channel cache
([#5957](#5957))
([4badd49](4badd49))
* gcs file deletion timing out
([#5951](#5951))
([e4abe53](e4abe53))
* update and extend async event delivery time metrics tests for
JobParameters logic
([#5975](#5975))
([01483d5](01483d5))
* warehouse transformations deep copying arguments
([#5979](#5979))
([28d15ac](28d15ac))


### Miscellaneous

* add conversionTime iso 8601 validation for bingads oc
([#5858](#5858))
([3e0dc6f](3e0dc6f))
* create new backoff on every reporting request
([#5993](#5993))
([7e3715a](7e3715a))
* **deps:** bump the go-deps group across 1 directory with 21 updates
([#5983](#5983))
([aa3ee66](aa3ee66))
* remove golang.org/x/crypto v0.32.0
([#5986](#5986))
([6fbb5a3](6fbb5a3))
* sync release v1.51.0 to main branch
([#5971](#5971))
([b9b1a21](b9b1a21))

---
This PR was generated with [Release
Please](https://github.com/googleapis/release-please). See
[documentation](https://github.com/googleapis/release-please#release-please).
This was referenced Jun 23, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants