Repository navigation
chore(release): pull release/v1.170.0 into main - #5802
Conversation
## What are the changes introduced in this PR? Mixpanel /import emits GZIP without a capability handshake. Removed the unused shared check and constant, batching-only metadata plumbing, and obsolete test headers. Updated three headerless router expectations without changing their JSON payloads. ## What is the related Linear task? Resolves INT-6925 ## Please explain the objectives of your changes below This change follows the env-flag rollout work in INT-6924 and INT-6926. Removing the header from rudder-server remains a coordinated follow-up. ### Any changes to existing capabilities/behaviour, mention the reason & what are the changes ? Headerless /import requests now receive GZIP. In production the server already advertises gzip support unconditionally. /engage and /groups retain their workspace env-flag gates. ### Any new dependencies introduced with this change? None. ### Any new generic utility introduced or modified. Please explain the changes. Removed the unused IsGzipSupported utility and FEATURE_GZIP_SUPPORT constant; no utility was added. ### Any technical or performance related pointers to consider with the change? Router request metadata remains available to single-event error handling. The secret-path manifest passed byte comparison and was not changed. <hr> ### Developer checklist - [x] My code follows the style guidelines of this project - [x] No breaking changes are being introduced for the stated production server baseline - [x] All related docs linked with the PR? HLD §4.2 and §10 item 4, rudder-specs #94 - [x] All changes manually tested? Validated with automated unit and component tests - [x] Any documentation changes needed with this change? No - [x] Is the PR limited to 10 file changes? Yes, six - [x] Is the PR limited to one linear task? Yes - [x] Are relevant unit and component test-cases added in new readability format? Updated existing coverage and fixtures ### Validation - `npm run lint` — passed. - `npm test -- --testPathPattern="src/v0/destinations/mp/util.test.js" --no-coverage` — 57 passed. - `npm run test:ts -- component --destination=mp` — 83 passed. - `./node_modules/.bin/tsc --noEmit -p tsconfig.json` and `-p tsconfig.test.json` — passed. - Full `npm run check:secret-paths` with integrations-config definitions — passed byte comparison. - `git diff --check` — passed; obsolete-symbol search across `src` and `test` — no matches. - Simplify pass: combined duplicate constant imports; no other worthwhile findings. An additional broad `mp` Jest-pattern run timed out after five minutes; the focused Mixpanel unit suite passed. - Local integration verification: skipped because rudder-transformer uses a sha-pinned service image and its edited source cannot be run by mini in this sandbox. ##⚠️ Known Issues - The broader `mp` Jest-pattern run timed out after five minutes; the focused Mixpanel unit suite and 83 component cases passed. - The `X-Feature-Gzip-Support` header remains in rudder-server pending coordination with that team. - The transformer source change was not exercised against a live mini stack because this service cannot be source-built in this sandbox. ### 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. Co-authored-by: tech-infra-rudderstack <[email protected]>
…n hydrated leads (#5790) Co-authored-by: tech-infra-rudderstack <[email protected]> Co-authored-by: Shashank Shekhar <[email protected]> Co-authored-by: Claude Opus 5.5 (1M context) <[email protected]>
## What are the changes introduced in this PR? Add a shared one-format guard for JSON, JSON_ARRAY, XML, FORM, and GZIP. The post-transformation success handler checks native and CDK v2 processor outputs; router outputs and native batch outputs are also checked before delivery. ## What is the related Linear task? Resolves INT-6922 ## Please explain the objectives of your changes below Prevent ambiguous delivery when a builder emits more than one non-empty body format. This foundational change blocks INT-6924 and INT-6926. ### Any changes to existing capabilities/behaviour, mention the reason & what are the changes ? Router validation checks every 2xx response, including one with an `error` key. A conflicting router response becomes a failure retaining its own metadata and destination. It uses the destination group's existing error details and router stats loop. A conflicting native batch output follows the existing retryable 500 batch failure path, with the failure metadata scoped to its own destination group. Existing router tag precedence and native processor and batch failure metrics are unchanged. Single-format outputs are unchanged. ### Any new dependencies introduced with this change? None. ### Any new generic utility introduced or modified. Please explain the changes. `validateDeliveryRequestBody` checks single or array requests using the proxy's lodash emptiness rule and throws a `PlatformError` naming the conflicting formats. ### Any technical or performance related pointers to consider with the change? A conflicting nested router request fails its enclosing response because nested requests share metadata. In native batch transformation, a conflict goes through the existing batch catch. CDK v2 increments `event_transform_success` before calling the shared processor success handler, so a guard rejection also increments `event_transform_failure`. No builders or transport selection logic were changed. ### Validation - `npm run lint` — passed. - Focused destination service and guard Jest tests — passed. - TypeScript build checks — passed. - Full component suite — 4,144 passed, 2 skipped. - Live mini integration verification skipped: the transformer source change cannot be built from its SHA-pinned Docker base in this sandbox; a stock service would not exercise the edit. ##⚠️ Known Issues - The changed transformer was not exercised end-to-end on mini because its source build is unavailable in this sandbox. Focused and component tests passed; live behavior remains to be checked in a source-capable environment. <hr> ### Developer checklist - [x] 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? - [x] Any documentation changes needed with this change? No. - [x] Is the PR limited to 10 file changes? - [x] Is the PR limited to one linear task? - [x] 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. --------- Co-authored-by: tech-infra-rudderstack <[email protected]> Co-authored-by: Akash Chetty <[email protected]>
👑 *An automated PR*
## What are the changes introduced in this PR? Enroll AM and MP in live GZIP coverage and add opt-in, secret-safe checks for router requests and actual vendor responses. Correct the live harness README’s GZIP description. ## What is the related Linear task? Resolves INT-7548 ## Please explain the objectives of your changes below Exercise AM `/batch`, `/2/httpapi`, `/groupidentify`, and `/usermap`, and MP `/import`, `/engage`, and `/groups` with exclusive GZIP bodies and endpoint-specific acceptance checks. ### Any changes to existing capabilities/behaviour, mention the reason & what are the changes ? Existing scenarios retain their behavior. `expectedRequests` checks endpoints and vendor replies; `bodyFormat: 'GZIP'` opts into exclusive router-body and sent-request gzip checks. The optional payload and Content-Type live assertions were removed because Amplitude’s existing gzip unit test covers the exact FORM encoding and header. ### Any new dependencies introduced with this change? None. ### Any new generic utility introduced or modified. Please explain the changes. The live test registers a response interceptor on the default Axios instance immediately around each observed `/proxy` call, then ejects it in `finally`. It captures fulfilled replies and `error.response` on rejected calls, plus the sent Axios request config, before destination handlers can discard the body. The runner verifies the sent `Content-Encoding`, gzip magic bytes, and exact decompressed payload. This observation assumes one vendor call per `/proxy` delivery. No live-only hook or header runs through the production network adapter. Assertions avoid printing request headers, bytes, or vendor bodies. ### Any technical or performance related pointers to consider with the change? Observation is scoped to one sequential proxy call at a time. AM FORM HTTP 200 `success` does not establish persistence on accounts lacking the applicable add-ons. ### Validation - `npm run lint` and `npx tsc --noEmit -p tsconfig.test.json` — passed. - AM/MP unit tests — 89 passed; focused live-runner and Amplitude gzip tests — 46 passed. - AM/MP component tests — 114 and 83 passed. - On commit 4fe68d0, `live (am)` and `live (mp)` both passed against the real vendor APIs (4/4 and 3/3 scenarios). - Code-simplify review found no further simplifications worth making. ##⚠️ Known Issues - AM FORM HTTP 200 `success` may not prove persistence on a sandbox account without the applicable add-ons. <hr> ### Developer checklist - [x] My code follows the style guidelines of this project - [x] **No breaking changes are being introduced.** - [x] All related docs linked with the PR? - [ ] All changes manually tested? — local live credentials unavailable; real-vendor CI passed - [x] Any documentation changes needed with this change? - [x] Is the PR limited to 10 file changes? - [x] Is the PR limited to one linear task? - [x] 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. --------- Co-authored-by: tech-infra-rudderstack <[email protected]> Co-authored-by: Akash Chetty <[email protected]>
…ses standard (#5801) ## What are the changes introduced in this PR? **Explainer + 2-min walkthrough video (internal):** https://claude.ai/artifact/4rAnmxYf4xqQzthUZbH4qP `BRAZE_AUDIENCE` can now sync through Braze's standard `/users/track` endpoint, chosen per account via a new `trackEndpoint` option: | `trackEndpoint` | Endpoint | Batch cap | Body | | --- | --- | --- | --- | | absent (accounts saved before this option) | `/users/track/bulk` | 1000 | `{ attributes }` (unchanged) | | `bulk` | `/users/track/bulk` | 1000 | `{ attributes }` | | `standard` | `/users/track` | 75 | `{ partner: "RudderStack", attributes }` | - `routerTransform.ts`: resolves the endpoint once per destination in the constructor; `getBatchStrategy` picks the cap from it. - `config.ts`: `TRACK_ENDPOINT_SPECS` — one entry per endpoint (path, records per request, `partner`). Standard's 75 cap and partner name come from the event-stream braze destination's `TRACK_BRAZE_MAX_REQ_COUNT` / `BRAZE_PARTNER_NAME`, so the two cannot drift. - `types.ts`: `trackEndpoint: z.enum(['standard', 'bulk']).optional()` on the account config. - `delivery.ts`: comment only. `/users/track` reports partial failures with the same `errors[].index` shape on a 2xx, so per-record verdicts are unchanged. ## What is the related Linear task? ACT2-1540 ## Please explain the objectives of your changes below `/users/track/bulk` is a Braze limited beta that a Braze workspace must be enrolled in, and Braze is currently not enrolling new workspaces. Every new Braze Audience customer is blocked until then. `/users/track` works on every workspace. Bulk stays the long-term target and the default for existing accounts; standard is offered alongside it. **Dependent change:** rudderlabs/rudder-integrations-config#2910 — adds the `trackEndpoint` account option. **Merge and deploy this PR first.** Without the config change no account carries the field, so behaviour is unchanged. The other way round, an account saved as Standard with a bulk-only key syncs through bulk until this deploys, then starts failing with 403. ### Any changes to existing capabilities/behaviour, mention the reason & what are the changes ? None for existing accounts: an absent `trackEndpoint` keeps the bulk path, pinned by the existing component fixtures (which carry no `trackEndpoint`). **Rollback:** rolling this transformer change back is the risky direction. Accounts that already store `trackEndpoint: "standard"` would go back to `/users/track/bulk`, and those on workspaces without Braze's bulk beta would get 403 until it is redeployed. Rolling back rudderlabs/rudder-integrations-config#2910 is harmless: stored values stay, and only new accounts lose the select. `partner: "RudderStack"` is sent on standard bodies only — it is documented for `/users/track` and already sent by the event-stream braze destination; the bulk schema does not list it. ### 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? Standard sends up to ~13x more requests than bulk for the same audience (75 vs 1000 per request). Braze data-point billing is identical across the two endpoints. Braze prioritises `/users/track` over bulk under load. Existing accounts (saved before the option) have no `trackEndpoint` and keep syncing through Bulk. Editing one in Lookout or the web app now requires choosing a Sync endpoint (nothing preselected, see rudderlabs/rudder-integrations-config#2910), so nothing switches them to Standard by accident. An unknown `trackEndpoint` value fails schema validation (400 per record) rather than silently falling back; config-backend enforces the same enum on the account. ### Remaining gap (small follow-up) An account created **through the API** without `trackEndpoint` syncs through Bulk, because unset means Bulk here. Closing it later: backfill `trackEndpoint: "bulk"` on existing accounts (DB update + per-workspace config cache rebuild, `DELETE /admin/workspaces/:id/config/cache`; a raw update alone is not picked up by the data plane), then make unset mean Standard. ### Testing ``` npm test -- --testPathPattern="braze_audience" --no-coverage 62 passed npm run test:ts -- component --destination=braze_audience 13 passed npm run check:secret-paths passes, no change ``` New: unit cases for absent / bulk / standard endpoint + body, 76 records splitting 75 + 1 on standard vs one request on bulk, unknown value rejected; one standard component router case; one dataDelivery case for a Standard request where Braze rejects some records (2xx + `errors[].index`). ### End-to-end (local stack, real Braze QA workspace with the bulk beta enabled) Accounts created through the account APIs and both account UIs, audiences built and activated from Lookout, syncs run, outbound requests captured with transformer `LOG_LEVEL=event`, attributes read back with `/users/export/ids`: | Account `trackEndpoint` | Request sent | Braze | | --- | --- | --- | | `standard` | `POST /users/track` `{"attributes":[…],"partner":"RudderStack"}` | 201 · attribute on profile · offered as a boolean filter in the segment builder | | `bulk` | `POST /users/track/bulk` `{"attributes":[…]}` | 201 · attribute on profile | | absent (account saved before this option) | `POST /users/track/bulk` `{"attributes":[…]}` | 201 · attribute on profile | `trackEndpoint` reaches `destination.Config` the same way `dataCenter` does; no rudder-server or config-backend change needed. <hr> ### Developer checklist - [x] My code follows the style guidelines of this project - [x] **No breaking changes are being introduced.** - [ ] All related docs linked with the PR? - [x] All changes manually tested? - [ ] Any documentation changes needed with this change? - [x] Is the PR limited to 10 file changes? - [x] Is the PR limited to one linear task? - [x] 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. 🤖 Generated with [Claude Code](https://claude.com/claude-code) --------- Co-authored-by: Claude Opus 5.5 <[email protected]>
|
Important Review skippedAuto reviews are disabled on this repository. Please check the settings in the CodeRabbit UI or the
|
There was a problem hiding this comment.
🟡 Changes recommended
Valid storage events can be rejected, clients without GZIP support lose their fallback, and recoverable transformer errors can become terminal.
8 open issues
Restrict delivery-envelope guard to actual delivery requests · New Return 500 for transformer-generated format conflicts · New Preserve the negotiated JSON_ARRAY fallback · New Isolate conflicting response failures to their own batches · New Use a genuinely oversized ID and captured API response · New Use the standard endpoint for membership cleanup · New Clean up sandbox profiles even when assertions fail · New Apply retries before enforcing vendor response assertions · New
What changed in this PR
This automated PR brings release v1.170.0 into main, updating destination transforms, Facebook lead hydration, and integration-test infrastructure.
Changes:
- Add Braze Audience’s standard
/users/trackoption with endpoint-specific batching and partial-failure coverage. - Include Meta custom disclaimer responses in hydrated Facebook leads.
- Reject conflicting delivery body formats, make Mixpanel imports use GZIP without negotiation, and expand live vendor-response checks.
| File | Description |
|---|---|
test/integrations/live/types.ts |
Defines request expectations and vendor observations. |
test/integrations/live/runPipelineStep.ts |
Adds endpoint, GZIP, and vendor-response assertions. |
test/integrations/live/runPipelineStep.test.ts |
Covers assertions and redacted failure messages. |
test/integrations/live/README.md |
Documents GZIP delivery and request assertions. |
test/integrations/destinations/mp/router/data.ts |
Updates expected import bodies to GZIP. |
test/integrations/destinations/mp/live.ts |
Adds live import, identify, and group scenarios. |
test/integrations/destinations/braze_audience/router/data.ts |
Adds standard-endpoint transform coverage. |
test/integrations/destinations/braze_audience/live/spec.ts |
Adds standard-endpoint membership and partial-failure scenarios. |
test/integrations/destinations/braze_audience/dataDelivery/network.ts |
Adds standard-endpoint response mocks. |
test/integrations/destinations/braze_audience/dataDelivery/data.ts |
Covers indexed standard-endpoint delivery failures. |
test/integrations/destinations/braze_audience/common.ts |
Adds shared standard-endpoint fixtures. |
test/integrations/destinations/am/live.ts |
Adds Amplitude GZIP live scenarios. |
test/integrations/component.live.test.ts |
Captures vendor replies and sent requests. |
src/v0/util/index.js |
Removes the GZIP capability helper. |
src/v0/util/constant.js |
Removes the GZIP capability constant. |
src/v0/destinations/mp/util.test.js |
Updates batching tests for unconditional import GZIP. |
src/v0/destinations/mp/util.js |
Makes imports use GZIP without negotiation. |
src/v0/destinations/mp/transform.js |
Removes batching capability-metadata arguments. |
src/v0/destinations/braze_audience/utils.ts |
Resolves endpoint specifications, URLs, and bodies. |
src/v0/destinations/braze_audience/types.ts |
Validates the optional endpoint selection. |
src/v0/destinations/braze_audience/routerTransform.ts |
Applies endpoint-specific routing and batching. |
src/v0/destinations/braze_audience/delivery.ts |
Updates comments to describe both endpoints. |
src/v0/destinations/braze_audience/config.ts |
Defines endpoint paths, limits, and partner fields. |
src/v0/destinations/braze_audience/__tests__/routerTransform.test.ts |
Tests endpoint selection, limits, and validation. |
src/types/destinationTransformation.ts |
Adds GZIP to delivery body types. |
src/sources/facebook_lead_ads_native/hydrate.ts |
Requests and preserves custom disclaimer responses. |
src/sources/facebook_lead_ads_native/hydrate.test.ts |
Covers disclaimer values, collisions, and malformed responses. |
src/services/destination/validateDeliveryRequestBody.ts |
Rejects multiple non-empty delivery body formats. |
src/services/destination/postTransformation.ts |
Validates processor and router delivery bodies. |
src/services/destination/nativeIntegration.ts |
Validates batch outputs and scopes failure metadata. |
src/services/destination/__tests__/validateDeliveryRequestBody.test.ts |
Tests valid and conflicting body formats. |
src/services/destination/__tests__/postTransformation.test.ts |
Covers router validation and failure reporting. |
src/services/destination/__tests__/nativeIntegration.test.ts |
Covers processor and batch validation failures. |
src/adapters/network.js |
Exports supported delivery body formats. |
package.json |
Bumps the release version to 1.170.0. |
package-lock.json |
Aligns lockfile release metadata. |
CHANGELOG.md |
Records the release features and fixes. |
Review effort: Balanced
|
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #5802 +/- ##
==========================================
- Coverage 92.60% 92.49% -0.12%
==========================================
Files 742 742
Lines 42149 41358 -791
Branches 10071 9654 -417
==========================================
- Hits 39034 38254 -780
- Misses 2849 2921 +72
+ Partials 266 183 -83 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
…ersized id in fixture Follow-up to review comments on the v1.170.0 release PR (#5802): - Live cleanup (and setMembership) now posts to the endpoint the scenario syncs with. The standard scenarios cleaned up through /users/track/bulk, which fails on a key that only holds users.track. - The standard dataDelivery case now sends an external_id over Braze's 988-byte cap, so the mocked EXTERNAL_USER_ID_TOO_LARGE matches an input Braze rejects, and drops the invented transient error (the bulk cases already cover retryable indexed errors through the same handler). Co-Authored-By: Claude Opus 5.5 <[email protected]> Scanned-by: gitleaks 8.30.1
…ersized id in fixture (#5803) ## What are the changes introduced in this PR? Test-only follow-up to the two Braze Audience review comments on the v1.170.0 release PR (#5802, comments r4611958140 and r4611958222). No production code changes. - **Live cleanup uses the scenario's own endpoint** (`live/api.ts`, `live/spec.ts`). `setMembership` takes the endpoint (`standard` / `bulk`, from `TRACK_ENDPOINT_SPECS`, with `partner` on standard), and the two standard scenarios clean up with `clearMembershipVia('standard')`. Before, they cleaned up through `/users/track/bulk`, which fails on a key that only holds `users.track`, and the best-effort cleanup then left the test attribute set. - **Standard dataDelivery case uses a genuinely oversized `external_id`** (`dataDelivery/network.ts`, `data.ts`). The mocked `EXTERNAL_USER_ID_TOO_LARGE` now matches an id over Braze's 988-byte cap, and the invented transient error is dropped; the bulk cases already cover retryable indexed errors through the same delivery handler. The real Braze behaviour stays covered by the live `braze-audience-standard-partial-failure` scenario. ## What is the related Linear task? ACT2-1540 ## Please explain the objectives of your changes below Keep the standard-endpoint tests honest: cleanup must work with the permission a Standard account actually has, and the component fixture should model an input Braze would really reject. ### Any changes to existing capabilities/behaviour, mention the reason & what are the changes ? None. Test code only. ### 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 ### Testing ``` npm test -- --testPathPattern="braze_audience" --no-coverage 62 passed npm run test:ts -- component --destination=braze_audience 13 passed npm run check:secret-paths passes, no change ``` The live job (`live (braze_audience)`) runs on this PR with the CI Braze key. <hr> ### Developer checklist - [x] My code follows the style guidelines of this project - [x] **No breaking changes are being introduced.** - [x] All related docs linked with the PR? - [x] All changes manually tested? - [ ] Any documentation changes needed with this change? - [x] Is the PR limited to 10 file changes? - [x] Is the PR limited to one linear task? - [x] 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. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-authored-by: Claude Opus 5.5 <[email protected]>





👑 An automated PR