Repository navigation
fix(braze): abort recommended ecommerce schema failures - #5636
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 |
|
The live Braze failures were caused by three recommended-ecommerce test payloads omitting Braze's required I updated those three delivered-path live scenarios with schema-valid product data. The focused Braze component suite passes all 104 tests, the test TypeScript project passes, and formatting passes. Commit: 5ccc793 |
|
Knowledge distillation completed |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## develop #5636 +/- ##
===========================================
- Coverage 93.33% 93.32% -0.01%
===========================================
Files 703 703
Lines 38759 38742 -17
Branches 9073 9065 -8
===========================================
- Hits 36174 36157 -17
Misses 2381 2381
Partials 204 204 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
|
@rudder-devbox please clean up the leftovers from the removed 296 / warn-only path. None of these should change behavior.
|
|
Cleaned up the removed warning path: deleted the dead ecommerce classifier and transformer Validated with lint, both TypeScript projects, 29 focused unit tests, and 102 Braze component tests. Pushed in 2cb7747. |
|
Knowledge distillation completed |
|
@rudder-devbox thanks for the cleanup. Most of it is done; a few leftovers remain:
|
|
Restored Validation passed: 24 focused unit tests, 102 Braze component tests, lint, both TypeScript checks, and Pushed in 71b372c. |
|
Knowledge distillation completed |
|



What are the changes introduced in this PR?
Braze v1
/users/trackpartial failures now return per-job400for every correlated rejection, including recommended-ecommerce schema validation errors that previously returned296.The Braze-specific delivered-with-warning classification and
braze_delivered_with_warningmetric emission have been removed. Follow-up cleanup keepsHTTP_STATUS_CODES.DELIVERED_WITH_WARNINGexplicitly reserved for rudder-server while removing obsolete ecommerce event-name detection, request-body narrowing, warning terminology, and duplicate test fixtures. Unit and proxy/component coverage verify the abort behavior.What is the related Linear task?
Resolves RUD-3228
Please explain the objectives of your changes below
Ensure payloads rejected by Braze are represented as delivery failures instead of successful deliveries with warnings. Affected jobs will now surface in delivery failures and router aborted events.
Accepted or uncorrelated jobs remain successful, and non-track endpoint handling is unchanged. This PR does not modify rudder-server's treatment of status
296; transformer retains the constant only as a reserved value and no Braze path emits it.Any changes to existing capabilities/behaviour, mention the reason & what are the changes ?
Yes. Correlated recommended-ecommerce schema rejections change from status
296to400. This intentionally makes those jobs customer-visible delivery failures rather than successful deliveries with warnings.The
braze_delivered_with_warningmetric is no longer emitted for Braze. Existing dashboards or alerts depending on that metric may need adjustment. No rollout gate was added.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?
braze_partial_failureandbraze_delivery_abortedremain active.HTTP_STATUS_CODES.DELIVERED_WITH_WARNINGremains reserved for rudder-server and is not used by destination handlers.Validation
npm test -- --runTestsByPath src/v1/destinations/braze/networkHandler.test.ts --no-coverage --runInBand- 24 passednpm run test:ts -- component --destination=braze --no-coverage --runInBand- 102 passednpx tsc --noEmit -p tsconfig.json- passednpx tsc --noEmit -p tsconfig.test.json- passednpm run lint- passedgit diff --check- passedbraze_delivered_with_warningmetric is no longer emitted; owners should confirm that no external dashboards or alerts rely on it.Developer checklist
Reviewer checklist