Skip to content

chore(release): pull release/v1.166.0 into main - #5736

Merged
krishna2020 merged 10 commits into
mainfrom
release/v1.166.0
Oct 27, 2026
Merged

krishna2020 merged 10 commits into
mainfrom
release/v1.166.0

Conversation

@rudderstack-github-actions

Copy link
Copy Markdown
Contributor

👑 An automated PR

ItsSudip and others added 9 commits October 26, 2026 15:32
## What are the changes introduced in this PR?

Adds focused regression coverage for a codeVersion 1 transformation that
invokes the RudderStack sandbox `log(...)` function from a fail-open
catch block. The test verifies that execution succeeds, the original
event and metadata are preserved, and the log is captured in test mode.

## What is the related Linear task?

Resolves RUD-3167

## Please explain the objectives of your changes below

This confirms that the Jev template's undeclared-`log` security finding
is a static-analysis false positive for the transformer runtime.
codeVersion 1 transformations are delegated through
`customTransformer-v1.js`, and `ivmFactory.js` installs `log` in the
isolate before compiling and evaluating the transformation module.

The remaining Jev findings concern template logic and source metadata
owned by `rudder-control-plane`; they are not addressed in this
repository.

### Any changes to existing capabilities/behaviour, mention the reason &
what are the changes ?

No runtime behavior changes. The existing codeVersion 1 sandbox behavior
is now protected by a service-level regression test.

### 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?

The test exercises `UserTransformService.testTransformRoutine`, which
underpins transformation test execution and enables test-mode log
capture. Production logging remains a no-op as designed.

### Validation

- `npm run lint` — passed
- `NODE_OPTIONS='--no-node-snapshot' node_modules/.bin/jest -c
jest.config.typescript.js test/__tests__/user_transformation_ts.test.ts
--runInBand` — 2 tests passed
- `NODE_OPTIONS='--no-node-snapshot' node_modules/.bin/jest -c
jest.default.config.js test/__tests__/user_transformation.test.js
--runInBand` — 59 tests passed
- `node_modules/.bin/tsc --noEmit -p tsconfig.test.json` — passed
- `git diff --check` — passed
- Inner integration verification: `NODE_OPTIONS='--no-node-snapshot' npx
jest -c jest.config.typescript.js --runInBand
test/__tests__/user_transformation_ts.test.ts` exited 0 with 2/2 tests
passed
- Live stock runtime: `curl ...
http://localhost:19090/transformation/testRun` exited 0 with HTTP 200,
the unchanged event/metadata, and the captured fail-open log

## ⚠️ Known Issues

- The local mini transformer image is SHA-pinned and does not include
the branch test-only change; the exit-0 focused source test validates
the new coverage, while the live stock endpoint confirms the existing
runtime contract.

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


---
<!-- 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?

- Map `integrations.Adjust.adid` to Adjust's platform-neutral `adid`
parameter through the canonical destination integrations lookup.
- Map `context.userAgent` to `user_agent` through the existing Track
mapping configuration.
- Cover Android and iOS identifier combinations in processor fixtures,
including iOS without IDFA, and update router expectations for
`user_agent`.

## What is the related Linear task?

Resolves RUD-3414

## Please explain the objectives of your changes below

Adjust cloud-mode Track requests can now forward an Adjust device
identifier supplied in the event's Adjust integration object and the
event's user agent. `adid` remains independent of platform-specific
`gps_adid`, `idfa`, and `idfv` fields.

### Any changes to existing capabilities/behaviour, mention the reason &
what are the changes ?

Track requests include `adid` when a truthy `integrations.Adjust.adid`
is present, and include `user_agent` when `context.userAgent` is
present. The destination also accepts the canonical Adjust integration
name aliases `ADJ`, `adjust`, and `adj`. Requests without these inputs
remain unchanged. `context.externalId` is not used for `adid`.

### Any new dependencies introduced with this change?

N/A

### Any new generic utility introduced or modified. Please explain the
changes.

N/A. The transform reuses `getIntegrationsObj`.

### Any technical or performance related pointers to consider with the
change?

`adid` is resolved outside the Android and Apple identifier branches,
allowing it to coexist with existing platform-specific identifiers.
`user_agent` uses the standard mapping and serialization path rather
than manual encoding.

### Validation

- `npm run lint` — passed.
- `npm run test:ts -- component --destination=adj` — passed, 22 tests.
- `npm test -- --testPathPattern=adj --no-coverage` — passed, 8 tests.
- Full `check:secret-paths` with integrations config — passed; Adjust
remains `[]`.
- `npm run build:ci` — passed in the initial implementation; no build
changes in this review update.

## ⚠️ Known Issues

- The complete `npm run build` wrapper reaches and passes `build:ci`,
then fails in the asset-copy step because `cpio` is not installed in the
host environment. No source compile or bundling failure was observed.
- Live integration verification was skipped because the local stack uses
a published, SHA-pinned transformer image; starting stock services could
not prove the edited source was running.

<hr>

### Developer checklist

- [x] My code follows the style guidelines of this project
- [x] **No breaking changes are being introduced.**
- [ ] All related docs linked with the PR? N/A; public Adjust mapping
docs require a follow-up update.
- [x] All changes manually tested?
- [ ] Any documentation changes needed with this change? Yes; public
Adjust mapping docs are out of scope here.
- [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]>
## What changed

- pre-commit no longer runs the jest suites. The test-case generation
check and lint-staged stay.
- The pre-commit hook sets `-e` itself, as husky v9 does. A failed
test-case generation blocks the commit under any hooks runner.

## Why

A full test run on every commit takes minutes. CI already runs the same
suite on every pull request.

## How to verify

- Commit a staged change: lint-staged runs and jest does not.

## What is not covered

- A `core.hooksPath` that an earlier `husky install` left in
`.git/config` still overrides a global one. `git-hooks scan-local` from
rudderlabs/git-hooks removes it.

🤖 Generated with [Claude Code](https://claude.com/claude-code)
@rudderstack-github-actions
rudderstack-github-actions Bot requested review from a team and a balanced review from Copilot October 27, 2026 09:48
@rudderstack-github-actions
rudderstack-github-actions Bot requested review from a team as code owners October 27, 2026 09:48
@coderabbitai

coderabbitai Bot commented Oct 27, 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: 67a03fe6-fc3a-4b15-9239-e9f06f5503d0

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.

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟡 Changes recommended

Intercom’s email-present mapped external-ID flow can bypass contact lookup and issue a create request instead of updating an existing contact.

1 open issue
What changed in this PR

Merges release v1.166.0 into main, bringing integration fixes, Adjust field mappings, regression coverage, and commit-hook updates.

Changes:

  • Adds Adjust adid and user-agent mappings and preserves Intercom’s mapped external ID.
  • Classifies Facebook error 613 as throttling and rejects unmappable Refiner webhooks.
  • Updates release metadata, regression tests, and pre-commit behavior.
File Description
test/​integrations/​sources/​refiner/​data.ts Tests rejection of unmappable webhooks.
test/​integrations/​destinations/​intercom/​processor/​validationTestData.ts Tests missing identify identifiers.
test/​integrations/​destinations/​intercom/​processor/​identifyTestData.ts Adds mapped external-ID scenarios.
test/​integrations/​destinations/​fb_custom_audience/​network.ts Mocks Facebook hourly-limit responses.
test/​integrations/​destinations/​fb_custom_audience/​dataDelivery/​other.ts Tests throttling classification.
test/​integrations/​destinations/​adj/​router/​data.ts Updates user-agent expectations.
test/​integrations/​destinations/​adj/​processor/​data.ts Covers adid and user-agent output.
test/​__tests__/​user_transformation_ts.test.ts Tests sandbox logging in fail-open handling.
src/​v0/​util/​facebookUtils/​networkHandler.test.ts Covers error code 613.
src/​v0/​util/​facebookUtils/​networkHandler.js Maps error 613 to throttling.
src/​v0/​destinations/​adj/​transform.js Reads Adjust adid from integration options.
src/​v0/​destinations/​adj/​data/​ADJUSTTrackConfig.json Maps the user agent.
src/​sources/​refiner/​transform.js Rejects webhooks without mapped properties.
src/​constants/​destinationCanonicalNames.js Registers Adjust aliases.
src/​cdk/​v2/​destinations/​intercom/​procWorkflow.yaml Preserves mapped external IDs.
package.json Bumps version and simplifies pre-commit script.
package-lock.json Synchronizes release version.
CHANGELOG.md Documents release changes.
.husky/​pre-commit Enables immediate exit on command failure.

Review effort: Balanced

@codecov

codecov Bot commented Oct 27, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 92.40%. Comparing base (f847ede) to head (e326cdb).

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #5736      +/-   ##
==========================================
+ Coverage   92.36%   92.40%   +0.04%     
==========================================
  Files         737      737              
  Lines       40853    40859       +6     
  Branches     9589     9586       -3     
==========================================
+ Hits        37732    37754      +22     
+ Misses       2859     2844      -15     
+ Partials      262      261       -1     

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

maheshkutty
maheshkutty previously approved these changes Oct 27, 2026

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟢 Approval recommended

Static review found no blocking issues in the localized changes and regression coverage; automated tests were not run.

No open issues 🎉

1 resolved since last review

Review effort: Balanced

@sonarqubecloud

Copy link
Copy Markdown

@krishna2020
krishna2020 merged commit e76ea41 into main Oct 27, 2026
50 checks passed
@krishna2020
krishna2020 deleted the release/v1.166.0 branch October 27, 2026 13:12
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.

5 participants