Repository navigation
test(live): cover amplitude and mixpanel gzip delivery - #5796
achettyiitr merged 4 commits into
Conversation
|
👋 I'm rudder-devbox. I opened this PR from task Mention |
|
Important Review skippedAuto reviews are disabled on this repository. Please check the settings in the CodeRabbit UI or the
|
|
The Amplitude live job stopped before tests ran. In “Get Vault Secrets,” Vault reported I could not fix this from the repository: the Amplitude sandbox credential must be provisioned as a valid single-line |
|
The Amplitude job again stopped before any live test ran. In “Get Vault Secrets,” Vault reported The credential is still absent, so I could not fix this in the repository. Provision a valid single-line |
Codecov Report✅ All modified and coverable lines are covered by tests. 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. 🚀 New features to boost your workflow:
|
|



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/groupswith 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.
expectedRequestschecks 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
/proxycall, then ejects it infinally. It captures fulfilled replies anderror.responseon rejected calls, plus the sent Axios request config, before destination handlers can discard the body. The runner verifies the sentContent-Encoding, gzip magic bytes, and exact decompressed payload. This observation assumes one vendor call per/proxydelivery. 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
successdoes not establish persistence on accounts lacking the applicable add-ons.Validation
npm run lintandnpx tsc --noEmit -p tsconfig.test.json— passed.live (am)andlive (mp)both passed against the real vendor APIs (4/4 and 3/3 scenarios).successmay not prove persistence on a sandbox account without the applicable add-ons.Developer checklist
Reviewer checklist