Repository navigation
chore: migrate google sheets test to new format - #4432
Conversation
Summary by CodeRabbit
Summary by CodeRabbit
WalkthroughThis update introduces new Zod schemas for validating streaming response objects and their lists in the codebase. Specifically, schemas for processor and router streaming responses are added, each with custom validation logic to ensure appropriate fields are present based on the HTTP status code. Changes
Sequence Diagram(s)sequenceDiagram
participant Client
participant Validator (Zod Schemas)
Client->>Validator (ProcessorStreamingResponseSchema): Validate streaming response
alt Status code is 2XX
Validator->>Validator: Check 'output' is present and non-empty
else Status code is not 2XX
Validator->>Validator: Check 'statTags' or 'error' is present and non-empty
end
Validator-->>Client: Validation result
Client->>Validator (RouterStreamingResponseSchema): Validate streaming response
alt Status code is 2XX
Validator->>Validator: Check 'batchedRequest' is present and non-empty
else Status code is not 2XX
Validator->>Validator: Check 'statTags' or 'error' is present and non-empty
end
Validator-->>Client: Validation result
Suggested reviewers
Suggestions for Improvements:
📜 Recent review detailsConfiguration used: .coderabbit.yaml 📥 CommitsReviewing files that changed from the base of the PR and between 98a2244d88e9336df4d76c4b975f4155b3a39c2b and 01fe962. ⛔ Files ignored due to path filters (5)
📒 Files selected for processing (1)
🚧 Files skipped from review as they are similar to previous changes (1)
⏰ Context from checks skipped due to timeout of 90000ms (8)
✨ Finishing Touches
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
SupportNeed help? Create a ticket on our support page for assistance with any issues or questions. Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
Documentation and Community
|
|
Allure Test reports for this run are available at:
|
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## develop #4432 +/- ##
===========================================
- Coverage 91.22% 91.21% -0.01%
===========================================
Files 639 639
Lines 33588 33611 +23
Branches 7931 7937 +6
===========================================
+ Hits 30640 30658 +18
- Misses 2681 2716 +35
+ Partials 267 237 -30 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
There was a problem hiding this comment.
Actionable comments posted: 3
📜 Review details
Configuration used: .coderabbit.yaml
Review profile: CHILL
Plan: Pro
📥 Commits
Reviewing files that changed from the base of the PR and between 8f87ba0 and 9df5a7a77c228992bfe5599858a8cc22ee24f93b.
⛔ Files ignored due to path filters (5)
test/integrations/component.test.tsis excluded by!**/test/**test/integrations/destinations/googlesheets/processor/data.tsis excluded by!**/test/**test/integrations/destinations/googlesheets/router/data.tsis excluded by!**/test/**test/integrations/testTypes.tsis excluded by!**/test/**test/integrations/testUtils.tsis excluded by!**/test/**
📒 Files selected for processing (1)
src/types/zodTypes.ts(1 hunks)
🧰 Additional context used
🧠 Learnings (1)
📓 Common learnings
Learnt from: maheshkutty
PR: rudderlabs/rudder-transformer#4380
File: src/v0/destinations/google_adwords_remarketing_lists/config.js:3-5
Timestamp: 2025-06-04T07:24:58.591Z
Learning: User maheshkutty prefers to handle Google Ads API version upgrades for different destinations in separate pull requests rather than bundling multiple destinations together in a single PR.
🧬 Code Graph Analysis (1)
src/types/zodTypes.ts (1)
src/v0/util/index.js (1)
isDefinedAndNotNullAndNotEmpty(52-52)
🪛 GitHub Actions: Verify
src/types/zodTypes.ts
[error] 43-43: ESLint: Define a constant instead of duplicating this literal 4 times (sonarjs/no-duplicate-string)
⏰ Context from checks skipped due to timeout of 90000ms (10)
- GitHub Check: Build Transformer Docker Image - PR / Build Transformer Docker Image ARM64
- GitHub Check: Build Transformer Docker Image - PR / Build Transformer Docker Image AMD64
- GitHub Check: Build User Transformer Docker Image - PR / Build Transformer Docker Image AMD64
- GitHub Check: Build User Transformer Docker Image - PR / Build Transformer Docker Image ARM64
- GitHub Check: Code Coverage
- GitHub Check: test_and_publish
- GitHub Check: UT Tests
- GitHub Check: Analyze (javascript-typescript)
- GitHub Check: Analyze (actions)
- GitHub Check: Analyze (go)
🔇 Additional comments (3)
src/types/zodTypes.ts (3)
283-319: Verify intentional difference in batchedRequest field structure.The
batchedRequestfield in this streaming schema is defined asz.record(z.unknown())(required), while inRouterTransformationResponseSchemait's optional and can be either an array or singleProcessorTransformationOutputSchema.Please verify this structural difference is intentional for streaming responses.
321-321: LGTM!Follows the established pattern for list schemas correctly.
244-321: Verify PR scope matches actual changes.The PR objectives mention migrating "Google Sheets test to new format," but the actual changes are adding new Zod schemas for streaming responses. Please verify that these changes align with the intended scope of the PR.
Likely an incorrect or invalid review comment.
|
Allure Test reports for this run are available at:
|
1 similar comment
|
Allure Test reports for this run are available at:
|
4a1b73f to
1f37b34
Compare
|
Allure Test reports for this run are available at:
|
|
Allure Test reports for this run are available at:
|
a328f5a to
98a2244
Compare
|
Allure Test reports for this run are available at:
|
98a2244 to
01fe962
Compare
|
Allure Test reports for this run are available at:
|
|
* chore: migrate google sheets test to new format * feat: add zod test for streaming dest * feat: add zod test for streaming dest * chore: review comments * fix: review comments



What are the changes introduced in this PR?
New custom test types for the processor and router were added specifically for streaming destination types. eg: googlesheets, Kafka, Kinesis, etc.
We need to define a new test type because the streaming destination is not following the existing types.
Added new array
STREAMING_DEST_WITH_UPDATED_TEST_STRUCTUREto enable different Zod validation for streaming destinationsWhat is the related Linear task?
Resolves INT-3762
Please explain the objectives of your changes below
Put down any required details on the broader aspect of your changes. If there are any dependent changes, mandatorily mention them here
Any changes to existing capabilities/behaviour, mention the reason & what are the changes ?
N/A
Any new dependencies introduced with this change?
N/A
Any new generic utility introduced or modified. Please explain the changes.
N/A
Any technical or performance related pointers to consider with the change?
N/A
@coderabbitai review
Developer checklist
My code follows the style guidelines of this project
No breaking changes are being introduced.
All related docs linked with the PR?
All changes manually tested?
Any documentation changes needed with this change?
Is the PR limited to 10 file changes?
Is the PR limited to one linear task?
Are relevant unit and component test-cases added in new readability format?
Reviewer checklist
Is the type of change in the PR title appropriate as per the changes?
Verified that there are no credentials or confidential data exposed with the changes.