Repository navigation
chore(release): pull release/v1.159.0 into main - #5682
Conversation
## What are the changes introduced in this PR? Inject the documented `log` runtime function when resetting cached V1 isolated-vm contexts. Add focused context-reset coverage and an end-to-end regression proving a Jev-style fail-open branch returns the original event on both cache miss and cache hit. ## What is the related Linear task? Resolves MAR-2930 ## Please explain the objectives of your changes below Runtime reproduction showed that the first V1 execution succeeds because `ivmFactory.js` defines `log`, but the second execution with `USE_IVM_CACHE=true` failed with `ReferenceError: log is not defined` because context reset did not restore it. This change restores parity without changing the broader sandbox architecture. The remaining Jev template findings—including Unicode-safe redaction, identify traits, Bot Management merge semantics, response validation, credential behavior, and upstream byte identity—belong to the dependent `rudder-control-plane` change. ### Any changes to existing capabilities/behaviour, mention the reason & what are the changes ? Cached V1 transformations can now call `log(...)` after context reset. In production it remains a non-throwing no-op, matching fresh V1 isolates. ### Any new dependencies introduced with this change? N/A ### Any new generic utility introduced or modified. Please explain the changes. The cached-isolate context reset now restores the existing V1 `log` runtime global alongside the other sandbox APIs. ### Any technical or performance related pointers to consider with the change? The injected function is a no-op and is recreated once per reset context. No logging payload is retained or transferred. <hr> ### Developer checklist - [x] My code follows the style guidelines of this project - [x] **No breaking changes are being introduced.** - [x] All related docs linked with the PR? N/A; runtime documentation already lists `log`. - [x] All changes manually tested? - [x] Any documentation changes needed with this change? No. - [x] Is the PR limited to 10 file changes? - [x] Is the PR limited to one linear task? - [x] 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. ## Validation - `npm run lint` — passed. - `NODE_OPTIONS='--no-node-snapshot' npx jest -c jest.default.config.js test/__tests__/ivmCache/contextReset.test.js test/__tests__/user_transformation.test.js --runInBand --no-coverage` — passed. - `NODE_OPTIONS='--no-node-snapshot' npx jest -c jest.default.config.js test/__tests__/user_transformation.test.js --runInBand -t "keeps log available"` — exit 0; 1 focused test passed after reproducing `ReferenceError: log is not defined` on the unmodified runtime. --- <!-- harness-preview:start --> ### 🔭 Live preview - webapp: https://preview.dev.rudderlabs.com/preview/01a0dccc-067a-7ca8-930b-97a01140c297/svc/webapp - all services: https://preview.dev.rudderlabs.com/preview/01a0dccc-067a-7ca8-930b-97a01140c297 - login details: available on the service index _Resumable while this task is open._ <!-- harness-preview:end -->
…5647) Co-authored-by: Claude Opus 5.5 (1M context) <[email protected]>
## What are the changes introduced in this PR? Narrow Intercom's retryable `/contacts` 409 handling so archived-contact conflicts preserve status 409 and are terminated by the router. Add deterministic v0 and v1 data-delivery coverage for the archived variant while preserving the existing transient conflict tests. ## What is the related Linear task? Resolves RUD-3345 ## Please explain the objectives of your changes below Prevent permanent archived-contact conflicts from retrying for the full router retry window or entering the event-order barrier. Non-archived conflicts remain retryable because they can result from Intercom's eventually consistent contact search index. ### Any changes to existing capabilities/behaviour, mention the reason & what are the changes ? Archived-contact `POST /contacts` conflicts now fall through as status 409 without retryable stat tags. Other contact conflicts remain status 500/retryable, and all other response handling is unchanged. ### Any new dependencies introduced with this change? N/A ### Any new generic utility introduced or modified. Please explain the changes. N/A ### Any technical or performance related pointers to consider with the change? Detection depends on Intercom including the word `archived` in an error message. Matching is case-insensitive and scans all error entries to tolerate minor wording and envelope variations. Validation: - `npm run lint` — passed - `npm test -- --testPathPattern="intercom" --no-coverage` — passed (1 suite, 54 tests) - `npm run test:ts -- component --destination=intercom` — passed (1 suite, 70 tests; archived and ordinary v0/v1 conflict scenarios passed) - Full `npm run generate:secret-paths` with integrations-config — passed; no manifest change - Local mini integration verification — skipped because rudder-transformer is SHA-pinned and cannot serve the edited source in this sandbox; stock-image behavior was not claimed as validation ##⚠️ Known Issues - Live-stack provenance could not be established for this source change because rudder-transformer is SHA-pinned in the local mini stack. Repository-scoped unit and component coverage is green. <hr> ### Developer checklist - [x] My code follows the style guidelines of this project - [x] **No breaking changes are being introduced.** - [x] All related docs linked with the PR? - [x] All changes manually tested? - [x] Any documentation changes needed with this change? - [x] Is the PR limited to 10 file changes? - [x] Is the PR limited to one linear task? - [x] 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. Co-authored-by: tech-infra-rudderstack <[email protected]>
Co-authored-by: tech-infra-rudderstack <[email protected]>
👑 *An automated PR* Co-authored-by: rudderstack-github-actions[bot] <236995729+rudderstack-github-actions[bot]@users.noreply.github.com> Co-authored-by: Aris Plakias <[email protected]>
|
Important Review skippedAuto reviews are disabled on this repository. Please check the settings in the CodeRabbit UI or the ⚙️ Run configuration
You can disable this status message by setting the Use the checkbox below for a quick retry:
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. Comment |
|
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #5682 +/- ##
==========================================
- Coverage 92.12% 92.12% -0.01%
==========================================
Files 713 713
Lines 39590 39600 +10
Branches 9282 9278 -4
==========================================
+ Hits 36473 36481 +8
- Misses 2852 2934 +82
+ Partials 265 185 -80 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|



👑 An automated PR