Repository navigation
fix(event-test): select CDK v2 destination service - #5646
achettyiitr merged 2 commits into
Conversation
|
👋 I'm rudder-devbox. I opened this PR from a Linear ticket. Mention |
|
Important Review skippedAuto reviews are disabled on this repository. Please check the settings in the CodeRabbit UI or the ⚙️ Run configuration
You can disable this status message by setting the Use the checkbox below for a quick retry:
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. Comment |
|
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## develop #5646 +/- ##
========================================
Coverage 92.11% 92.11%
========================================
Files 708 708
Lines 39526 39529 +3
Branches 9262 9267 +5
========================================
+ Hits 36409 36412 +3
Misses 2852 2852
Partials 265 265 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|



What are the changes introduced in this PR?
ServiceSelector.getDestinationServiceByType(destType, workspaceId)and make the existing event-based selector delegate to it.ConfigurationErrors while preserving nested dependency failures.What is the related Linear task?
Resolves RUD-3275
Please explain the objectives of your changes below
Event testing previously hardcoded the native integration service, causing CDK-v2-only destinations such as HTTP to fail and dual implementations such as Webhook to exercise behavior different from production. This change makes the event tester use the same destination type and workspace routing decision as production.
Any changes to existing capabilities/behaviour, mention the reason & what are the changes ?
Event tests for destinations with
cdkV2: true, including Webhook, now exercise CDK v2 unless disabled by the existingDISABLE_<DEST>_CDK_V2kill switch. This is intentional so tester output matches production. Native destinations and router-versus-processor capability selection remain unchanged.Any new dependencies introduced with this change?
N/A
Any new generic utility introduced or modified. Please explain the changes.
ServiceSelector.getDestinationServiceByTypeexposes the existing CDK v2/native routing decision for callers that already hold destination type and workspace ID as scalar values.Any technical or performance related pointers to consider with the change?
Services remain cached singletons. Event-test metadata intentionally does not fabricate a destination ID for unsaved destinations. Missing native modules now return a clear configuration error, while nested module-load failures remain unchanged.
Validation:
npm run lintnpm test -- --runTestsByPath src/helpers/__tests__/serviceSelector.test.ts src/services/eventTest/__tests__/eventTester.test.ts src/services/__tests__/misc.test.ts --no-coverage— exit 0; 3 suites and 32 tests passednpm run build:testrudder-transformeris stock-image-only and cannot run the edited source in this sandbox. Provenance is therefore unconfirmed; starting the stock stack would not validate this diff.Developer checklist
Reviewer checklist