Skip to content

feat(mp): gate engage and groups gzip by workspace - #5785

Merged
achettyiitr merged 1 commit into
developfrom
harness/INT-6926-feat-mp-gate-engage-and-groups-c28bda44
Nov 16, 2026
Merged

achettyiitr merged 1 commit into
developfrom
harness/INT-6926-feat-mp-gate-engage-and-groups-c28bda44

Conversation

@rudder-devbox

@rudder-devbox rudder-devbox Bot commented Nov 13, 2026

Copy link
Copy Markdown
Contributor

What are the changes introduced in this PR?

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.

@rudder-devbox

rudder-devbox Bot commented Nov 13, 2026

Copy link
Copy Markdown
Contributor Author

👋 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.

@coderabbitai

coderabbitai Bot commented Nov 13, 2026 •

Copy link
Copy Markdown
Contributor

Important

Review skipped

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.

Share

@sonarqubecloud

Copy link
Copy Markdown

@achettyiitr
achettyiitr marked this pull request as ready for review November 16, 2026 07:22
@achettyiitr
achettyiitr requested review from a team as code owners November 16, 2026 07:22
@achettyiitr
achettyiitr merged commit b549f90 into develop Nov 16, 2026
51 checks passed
@achettyiitr
achettyiitr deleted the harness/INT-6926-feat-mp-gate-engage-and-groups-c28bda44 branch November 16, 2026 08:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants