Repository navigation
test(everflow): mint a fresh click per live run - #5779
Conversation
The success scenario replayed one transaction_id stored in Vault. Once its click aged past the offer's attribution window, Everflow rejected every conversion with a bodyless 204, failing live (everflow) on every branch. Mint a click per run via the tracking domain's /sdk/click endpoint in a setup action and seed the conversion with its transaction_id. The secret now carries the stable offerId/affiliateId instead. Co-Authored-By: Claude Opus 5.5 (1M context) <[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
The live integration setup derives the tracking domain from the postback URL, causing click creation to fail when the postback and tracking hosts differ.
1 open issue
What changed in this PR
Updates Everflow’s live conversion test to create a fresh click each run instead of reusing a transaction ID that expires.
Changes:
- Adds a click-minting setup action and uses its transaction ID for the conversion.
- Requires stable offer and affiliate IDs in the live secret; leaves the random-transaction rejection scenario unchanged.
- Documents per-run creation of expiring partner IDs.
| File | Description |
|---|---|
test/integrations/destinations/everflow/live.ts |
Creates and registers a fresh click before delivering the conversion. |
.claude/skills/live-integration-test/SKILL.md |
Adds guidance for creating expiring partner IDs per run. |
Review effort: Balanced
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## develop #5779 +/- ##
========================================
Coverage 92.45% 92.45%
========================================
Files 741 741
Lines 41158 41172 +14
Branches 9684 9610 -74
========================================
+ Hits 38052 38065 +13
- Misses 2923 2924 +1
Partials 183 183 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
…ecorded A postback that lands before Everflow has recorded the just-minted click gets a 204 and records nothing, so retrying it is safe. Seen once in CI, where the click-to-postback round trip is ~200ms. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
|
lvrach
left a comment
There was a problem hiding this comment.
Note: this review is part of an experiment, the #proj-auto-approve auto-approval process. No human looked at this PR. Auto-approve category: tests, logs and metrics.
Approve. mint click runs once, and each retry of deliver conversion reads the same registered id. A transformer that builds a wrong postback gets a 204 on every attempt, delivery.ts:25 treats 204 as a rejection, and all 3 attempts fail. The rejection scenario still uses a random id from ctx.identity. Query parameters are encoded, and taking the origin of postbackUrl keeps http or https. Only oid and affid can reach a log, inside an AxiosError, and neither is a credential. The skill sentence is accurate. CI is green, including Live Integration Tests.
Should-fix
everflow/live.ts:15-27: the click call has notimeout. A tracking domain that accepts the connection and never answers leaves the request pending until the jest timeout, with no message naming the cause. Addtimeout: 15000, as vero, criteo_audience and gainsight_px do.live.ts:28: a 200 with bodynullthrows a bare TypeError, and{"transaction_id": true}passes and registers a bad id. Check for a non-empty string before registering, and throw a fixed message that leaves out the body.
Nits
live.ts:14: a missingconfig.postbackUrlbecomesnew URL('undefined')("Invalid URL"). NameLIVE_SECRET_EVERFLOW.config.postbackUrlin the error.live.ts:69: if an attempt records a conversion but the step counts it as failed (for example a 5xx), the retry can post a second conversion. That is unlikely in a sandbox. A short delay before one attempt would avoid it, if you prefer.




What
live (everflow)fails on every branch: the success scenario replays a singletransactionIdstored inLIVE_SECRET_EVERFLOW, and that click no longer converts — Everflow rejects the postback with a bodyless 204 (which our delivery spec correctly treats as a rejection). Re-runs fail the same way; it is not caused by any PR.This makes the scenario self-sustaining:
mint clicksetup action calls the tracking domain's/sdk/click?oid=&affid=&async=jsonendpoint (the one Everflow's JS SDK uses, no API key) and registers the returnedtransaction_id. The tracking domain is the origin ofconfig.postbackUrl, since Everflow serves clicks and postbacks from the same network tracking domain.deliver conversionstep seeds the event with that fresh id, withretries: 2: a postback that lands before Everflow has recorded the just-minted click gets a 204 and records nothing (no conversion event on the transaction), so a retry is safe. Seen once in CI, where the click-to-postback round trip is ~200ms.resourceIds.offerId/resourceIds.affiliateIdinstead of atransactionIdthat expires.live-integration-testskill: one sentence noting that partner ids which expire (clicks, sessions) must be minted per run, not stored.The random-transaction rejection scenario is unchanged.
Vault (done)
LIVE_SECRET_EVERFLOWhas been updated:resourceIds.offerId/resourceIds.affiliateIdadded,transactionIdremoved, andconfig.postbackUrlpointed at the sandbox network's current tracking domain (the previously stored domain no longer accepted clicks or conversions for the test offer).Testing
npx tsc --noEmit -p tsconfig.test.jsonclean; prettier clean.test:live --destination=everflowagainst the sandbox account with the corrected secret: 3/3 pass on every run (mint click → deliver conversion → reject random transaction ID).live (everflow)with the updated secret: 3/3 pass on rerun; one earlier attempt hit the click-not-yet-recorded 204 thatretriesnow covers.mint clickwith messages naming theLIVE_SECRET_EVERFLOWkey to fix.🤖 Generated with Claude Code