Skip to content

chore(release): pull release/v1.157.0 into main - #5648

Merged
achettyiitr merged 12 commits into
mainfrom
release/v1.157.0
Oct 12, 2026
Merged

achettyiitr merged 12 commits into
mainfrom
release/v1.157.0

Conversation

@rudderstack-github-actions

Copy link
Copy Markdown
Contributor

👑 An automated PR

rudder-devbox and others added 12 commits October 5, 2026 19:47
👑 *An automated PR*

Co-authored-by: rudderstack-github-actions[bot] <236995729+rudderstack-github-actions[bot]@users.noreply.github.com>
Co-authored-by: shekhar-rudder <[email protected]>
## What are the changes introduced in this PR?

- Upgrade `@rudderstack/integrations-lib` to `^0.2.78`.
- Use its documented `build/live-test` exports for spec discovery,
secret resolution, polling/retry, OAuth refresh, and rudder-auth
container management.
- Remove duplicate transformer-local helper implementations and OAuth
resolver tests.
- Preserve transformer-specific live-test schemas, types, required-field
diagnostics, and runner behavior.
- Update live-test documentation and authoring guidance.

## What is the related Linear task?

Resolves RUD-3225

## Please explain the objectives of your changes below

This consolidates generic live-test behavior in
`@rudderstack/integrations-lib` while keeping transformer-owned pipeline
and scenario contracts local. It reduces duplicated maintenance and
makes unknown destination selections fail clearly during discovery.

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

Existing enabled live specs continue to execute through the same
transform and proxy pipeline. Unknown destination filters now fail
immediately with a clear `no live-test spec found for` error instead of
silently producing an empty suite.

### Any new dependencies introduced with this change?

No new dependency was introduced. `@rudderstack/integrations-lib` was
upgraded from `^0.2.77` to `^0.2.78`; the existing
`[email protected]` satisfies its optional peer dependency.

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

Added transformer-specific `requiredSecretField` and
`requiredResourceId` wrappers over the library’s generic
`requireLiveField`. Generic helper implementations previously maintained
in the transformer were deleted.

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

The live runner imports helpers from the documented
`@rudderstack/integrations-lib/build/live-test` entry point. OAuth token
payloads remain merged wholesale to preserve integration-specific token
field names.

### Validation

- `npm run lint` — passed
- `npx tsc --noEmit -p tsconfig.test.json` — passed
- Focused live-harness unit tests — 2 suites, 20 tests passed
- Affected destination unit tests — 19 suites, 596 tests passed
- `node .github/scripts/live-test-matrix.js` — passed; generated 11
destinations
- Unknown destination live invocation — failed as expected with `no
live-test spec found for`

## ⚠️ Known Issues

- Real credential-backed live tests were not run because Docker/ECR
access and destination credentials were unavailable.

<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?
- [ ] All changes manually tested?
- [x] Any documentation changes needed with this change?
- [ ] 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.
## What are the changes introduced in this PR?

- Update HubSpot transformer errors and documentation to identify
private app access tokens and Service Keys as supported bearer
credentials.
- Extract the 22 HubSpot live scenarios into a factory and run each once
with the private app token and once with the Service Key, producing 44
unique scenarios.
- Preserve existing scenario overrides, require each configured
credential explicitly, and prevent the live-only `serviceKeyAccessToken`
helper from reaching destination configuration.
- Document the expanded `LIVE_SECRET_HS` shape without the unused
`readback.accessToken` field.

## What is the related Linear task?

Resolves INT-7324

## Please explain the objectives of your changes below

HubSpot Service Keys are bearer tokens compatible with the destination's
existing `accessToken` authentication path. This change updates
user-facing transformer copy and verifies the same delivery behavior
under both credential types without changing destination schemas or
production authentication logic.

Related UI and public-documentation changes belong to the
`rudder-integrations-config` and `rudder-hugo` repositories.

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

Existing private app token behavior remains unchanged. The live suite
now requires both `LIVE_SECRET_HS.config.accessToken` and
`LIVE_SECRET_HS.config.serviceKeyAccessToken` and doubles from 22 to 44
scenarios. Setup, read-back, and cleanup continue using the private app
token; the Service Key is exercised on transformation and delivery.

### 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 HubSpot live suite takes approximately twice as long and may place
additional load on HubSpot rate limits.

## ⚠️ Known Issues

The real HubSpot live suite was not run locally because this checkout
has neither a `.env` file nor `LIVE_SECRET_HS` with both credentials.
Static scenario validation confirmed 44 unique scenarios, override
composition, credential selection, helper-field stripping, and explicit
missing-Service-Key failure.

<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?
- [ ] 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**?

### Validation

- `npm run lint` — passed
- `npx tsc --noEmit -p tsconfig.test.json` — passed
- `npm test -- --testPathPatterns="src/v0/destinations/hs/util.test.ts"
--no-coverage` — passed
- `npm run test:ts -- component --destination=hs` — passed
- Scenario validation script — passed: 44 unique IDs, preserved
legacy/access-token-only/lookup overrides, correct credential
replacement and stripping, and clear missing-Service-Key failure

### 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]>
Co-authored-by: Shashank Shekhar <[email protected]>
Co-authored-by: Claude Opus 5.5 (1M context) <[email protected]>
Co-authored-by: tech-infra-rudderstack <[email protected]>
Co-authored-by: Shashank Shekhar <[email protected]>
Co-authored-by: Claude Opus 5.5 (1M context) <[email protected]>
## What are the changes introduced in this PR?

- Add `ServiceSelector.getDestinationServiceByType(destType,
workspaceId)` and make the existing event-based selector delegate to it.
- Route event-test destination transforms through the shared selector
and initialize the selected service before use.
- Convert missing destination transform modules into descriptive
`ConfigurationError`s while preserving nested dependency failures.
- Add unit coverage for CDK v2/native selection, workspace kill
switches, event-tester routing, and missing handlers.

## What is the related Linear task?

Resolves RUD-3275

## Please explain the objectives of your changes below

Event testing previously hardcoded the native integration service,
causing CDK-v2-only destinations such as HTTP to fail and dual
implementations such as Webhook to exercise behavior different from
production. This change makes the event tester use the same destination
type and workspace routing decision as production.

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

Event tests for destinations with `cdkV2: true`, including Webhook, now
exercise CDK v2 unless disabled by the existing `DISABLE_<DEST>_CDK_V2`
kill switch. This is intentional so tester output matches production.
Native destinations and router-versus-processor capability selection
remain unchanged.

### Any new dependencies introduced with this change?

N/A

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

`ServiceSelector.getDestinationServiceByType` exposes the existing CDK
v2/native routing decision for callers that already hold destination
type and workspace ID as scalar values.

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

Services remain cached singletons. Event-test metadata intentionally
does not fabricate a destination ID for unsaved destinations. Missing
native modules now return a clear configuration error, while nested
module-load failures remain unchanged.

Validation:
- `npm run lint`
- `npm test -- --runTestsByPath
src/helpers/__tests__/serviceSelector.test.ts
src/services/eventTest/__tests__/eventTester.test.ts
src/services/__tests__/misc.test.ts --no-coverage` — exit 0; 3 suites
and 32 tests passed
- `npm run build:test`

## ⚠️ Known Issues

- End-to-end local-stack verification was skipped because
`rudder-transformer` is stock-image-only and cannot run the edited
source in this sandbox. Provenance is therefore unconfirmed; starting
the stock stack would not validate this diff.

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

---------

Co-authored-by: tech-infra-rudderstack <[email protected]>
Co-authored-by: tech-infra-rudderstack <[email protected]>
Co-authored-by: Shashank Shekhar <[email protected]>
Co-authored-by: Claude Opus 5.5 (1M context) <[email protected]>
@rudderstack-github-actions
rudderstack-github-actions Bot requested review from a team as code owners October 12, 2026 08:40
@coderabbitai

coderabbitai Bot commented Oct 12, 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: 50c72300-1bce-47b1-b794-81b394793409

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 12, 2026

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 35.55018% with 533 lines in your changes missing coverage. Please review.
✅ Project coverage is 92.11%. Comparing base (14e73d1) to head (f9a145e).

Files with missing lines Patch % Lines
src/secretPaths/tooling/generate.ts 31.81% 290 Missing and 40 partials ⚠️
src/secretPaths/tooling/harness.ts 29.85% 132 Missing and 16 partials ⚠️
src/secretPaths/tooling/declared.ts 17.91% 50 Missing and 5 partials ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #5648      +/-   ##
==========================================
- Coverage   93.33%   92.11%   -1.22%     
==========================================
  Files         703      708       +5     
  Lines       38759    39529     +770     
  Branches     9073     9264     +191     
==========================================
+ Hits        36174    36412     +238     
- Misses       2381     2852     +471     
- Partials      204      265      +61     

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

@achettyiitr
achettyiitr merged commit d147847 into main Oct 12, 2026
46 checks passed
@achettyiitr
achettyiitr deleted the release/v1.157.0 branch October 12, 2026 09:11
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.

3 participants