Skip to content

chore(release): pull release/v1.159.0 into main - #5682

Merged
shekhar-rudder merged 6 commits into
mainfrom
release/v1.159.0
Oct 16, 2026
Merged

shekhar-rudder merged 6 commits into
mainfrom
release/v1.159.0

Conversation

@rudderstack-github-actions

Copy link
Copy Markdown
Contributor

👑 An automated PR

rudder-devbox Bot and others added 6 commits October 14, 2026 10:53
## 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 -->
## 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]>
👑 *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]>
@rudderstack-github-actions
rudderstack-github-actions Bot requested review from a team as code owners October 16, 2026 04:52
@coderabbitai

coderabbitai Bot commented Oct 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
  • Configuration used: Repository UI
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 23d22471-b1c3-4ff5-a7b3-e46816ff3b5f

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

Comment @coderabbitai help to get the list of available commands.

@sonarqubecloud

Copy link
Copy Markdown

@codecov

codecov Bot commented Oct 16, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 92.12%. Comparing base (9702e89) to head (8d0381d).

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

@shekhar-rudder
shekhar-rudder merged commit a1c41b7 into main Oct 16, 2026
47 checks passed
@shekhar-rudder
shekhar-rudder deleted the release/v1.159.0 branch October 16, 2026 05:16
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.

1 participant