Skip to content

test(live): cover amplitude and mixpanel gzip delivery - #5796

Merged
achettyiitr merged 4 commits into
developfrom
harness/INT-7548-test-live-cover-amplitude-and-m-0b4692f3
Nov 17, 2026
Merged

achettyiitr merged 4 commits into
developfrom
harness/INT-7548-test-live-cover-amplitude-and-m-0b4692f3

Conversation

@rudder-devbox

@rudder-devbox rudder-devbox Bot commented Nov 16, 2026 •

Copy link
Copy Markdown
Contributor

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.

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? — local live credentials unavailable; real-vendor CI passed
  • Any documentation changes needed with this change?
  • 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.

@rudder-devbox

rudder-devbox Bot commented Nov 16, 2026

Copy link
Copy Markdown
Contributor Author

👋 I'm rudder-devbox. I opened this PR from task INT-7548.

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 16, 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: e628e595-a63f-44f5-ba0f-69588ed212a5

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

Tip

👋 New to CodeRabbit? Try chatting in this PR!

Ask questions about the changes or discuss a review suggestion by mentioning @coderabbitai in a PR comment or a reply to a CodeRabbit review comment.

Try: @coderabbitai explain the changes in this PR and what I should focus on when reviewing.

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

@rudder-devbox

rudder-devbox Bot commented Nov 16, 2026

Copy link
Copy Markdown
Contributor Author

The Amplitude live job stopped before tests ran. In “Get Vault Secrets,” Vault reported No match data was found for LIVE_SECRET_AM. The workflow expects that field on engineering_shared/data/integrations_team/e2e_test/rudder-transformer.

I could not fix this from the repository: the Amplitude sandbox credential must be provisioned as a valid single-line LiveSecret JSON in Vault, then the failed job rerun. No code change was pushed.

@rudder-devbox

rudder-devbox Bot commented Nov 17, 2026

Copy link
Copy Markdown
Contributor Author

The Amplitude job again stopped before any live test ran. In “Get Vault Secrets,” Vault reported No match data was found for LIVE_SECRET_AM. The workflow reads that field from engineering_shared/data/integrations_team/e2e_test/rudder-transformer.

The credential is still absent, so I could not fix this in the repository. Provision a valid single-line LiveSecret JSON in that Vault field, then rerun the job. No code change was pushed.

@codecov

codecov Bot commented Nov 17, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 92.49%. Comparing base (667a77d) to head (4fe68d0).
⚠️ Report is 3 commits behind head on develop.

Additional details and impacted files
@@           Coverage Diff            @@
##           develop    #5796   +/-   ##
========================================
  Coverage    92.49%   92.49%           
========================================
  Files          742      742           
  Lines        41350    41350           
  Branches      9652     9652           
========================================
  Hits         38246    38246           
  Misses        2921     2921           
  Partials       183      183           

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@achettyiitr
achettyiitr marked this pull request as ready for review November 17, 2026 07:31
@achettyiitr
achettyiitr requested review from a team as code owners November 17, 2026 07:31
@sonarqubecloud

Copy link
Copy Markdown

@achettyiitr
achettyiitr merged commit 8ddb21c into develop Nov 17, 2026
57 checks passed
@achettyiitr
achettyiitr deleted the harness/INT-7548-test-live-cover-amplitude-and-m-0b4692f3 branch November 17, 2026 08:26
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