You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
feat(mp): gate engage and groups gzip by workspace - #5785
Add independent, default-off workspace-scoped gzip flags for Mixpanel /engage and /groups router batches, with unit and component fixtures. Existing flag-off fixtures are unchanged.
What is the related Linear task?
Resolves INT-6926
Please explain the objectives of your changes below
Roll out Mixpanel compression gradually through flags set on the transformer deployment (INT-7547). Dependency: INT-6922’s shared one-format guard must land before rollout. Compression metrics are tracked under INT-6923; live delivery tests under INT-7548.
Any changes to existing capabilities/behaviour, mention the reason & what are the changes ?
Enabled workspaces emit body.GZIP.payload instead of populated body.JSON_ARRAY.batch for the corresponding endpoint. /import still requires the gzip-support handshake; its removal is INT-6925.
Any new dependencies introduced with this change?
No package dependencies. Rollout depends on INT-6922.
Any new generic utility introduced or modified. Please explain the changes.
N/A — the existing isFeatureEnabled utility is reused.
Any technical or performance related pointers to consider with the change?
The proxy performs compression and sets Content-Encoding: gzip; the router only selects its body format. The flags must be configured on transformer.
Validation
npm run lint — passed.
npm test -- --testPathPattern="mp/util.test.js" --no-coverage --runInBand — 60 passed.
npm run test:ts -- component --destination=mp --feature=router --runInBand — 4 passed, including existing flag-off fixtures.
npx tsc --noEmit -p tsconfig.test.json and npm run build:ci — passed.
Regenerated MP secret paths; the MP entry remained []. Restored the full artifact because destination-filtered generation writes an MP-only file. git diff --check passed.
Simplify pass: removed repeated construction of test events; retained the small flag lookup and avoided unneeded allowlist caching.
Local stack verification skipped: the transformer source change cannot be run through mini in this sandbox; its service uses a stock image and has no source-linked build.
⚠️ Known Issues
INT-6922’s prerequisite one-format guard is not present in this checkout: the shared proxy currently selects the last populated body format. Do not enable the rollout flags until that guard lands. Live Mixpanel delivery was not exercised without credentials.
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? Live vendor delivery remains under INT-7548.
Any documentation changes needed with this change? No.
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.
⚠️ Auto-review unresolved
Adversarial self-review surfaced findings that were not auto-fixed. Each carries its disposition — please evaluate before merging.
medium: Gzip rollout is ahead of its required one-format proxy guard — src/v0/destinations/mp/util.js:323 — implementer declined: The finding identifies a release dependency, not a defect in the Mixpanel change: the builder populates only one body format, while the shared one-format guard belongs to INT-6922 and is absent from this checkout. Confirming that INT-6922 has landed on the target branch before merge or flag enablement is a release decision; adding the shared guard here would expand this change beyond its scope.
👋 I'm rudder-devbox. I opened this PR from task INT-6926.
Mention @devbox or @rudder-devbox and I'll act on it — on a top-level PR comment,
in a review summary, or on an inline comment on the diff. Without a mention I won't see it.
Auto reviews are disabled on this repository. Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.
Run configuration
Source mode: Auto
Repository: Unavailable
Branch: Unavailable
File: No configuration file from this repository applied
Commit: Unavailable
Layers: Repository UI
Review profile: CHILL
Plan: Advanced
Run ID: ac827298-9758-4888-bc77-1dbfe82a3631
You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.
Use the checkbox below for a quick retry:
Trigger review
Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts
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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What are the changes introduced in this PR?
Add independent, default-off workspace-scoped gzip flags for Mixpanel
/engageand/groupsrouter batches, with unit and component fixtures. Existing flag-off fixtures are unchanged.What is the related Linear task?
Resolves INT-6926
Please explain the objectives of your changes below
Roll out Mixpanel compression gradually through flags set on the transformer deployment (INT-7547). Dependency: INT-6922’s shared one-format guard must land before rollout. Compression metrics are tracked under INT-6923; live delivery tests under INT-7548.
Any changes to existing capabilities/behaviour, mention the reason & what are the changes ?
Enabled workspaces emit
body.GZIP.payloadinstead of populatedbody.JSON_ARRAY.batchfor the corresponding endpoint./importstill requires the gzip-support handshake; its removal is INT-6925.Any new dependencies introduced with this change?
No package dependencies. Rollout depends on INT-6922.
Any new generic utility introduced or modified. Please explain the changes.
N/A — the existing
isFeatureEnabledutility is reused.Any technical or performance related pointers to consider with the change?
The proxy performs compression and sets
Content-Encoding: gzip; the router only selects its body format. The flags must be configured on transformer.Validation
npm run lint— passed.npm test -- --testPathPattern="mp/util.test.js" --no-coverage --runInBand— 60 passed.npm run test:ts -- component --destination=mp --feature=router --runInBand— 4 passed, including existing flag-off fixtures.npx tsc --noEmit -p tsconfig.test.jsonandnpm run build:ci— passed.[]. Restored the full artifact because destination-filtered generation writes an MP-only file.git diff --checkpassed.INT-6922’s prerequisite one-format guard is not present in this checkout: the shared proxy currently selects the last populated body format. Do not enable the rollout flags until that guard lands. Live Mixpanel delivery was not exercised without credentials.
Developer checklist
Reviewer checklist
Adversarial self-review surfaced findings that were not auto-fixed. Each carries its disposition — please evaluate before merging.
src/v0/destinations/mp/util.js:323— implementer declined: The finding identifies a release dependency, not a defect in the Mixpanel change: the builder populates only one body format, while the shared one-format guard belongs to INT-6922 and is absent from this checkout. Confirming that INT-6922 has landed on the target branch before merge or flag enablement is a release decision; adding the shared guard here would expand this change beyond its scope.