Skip to content

refactor(live-tests): use shared integrations-lib helpers - #5634

Merged
maheshkutty merged 2 commits into
developfrom
harness/RUD-3225-refactor-live-tests-use-shared-1cb3c571
Oct 7, 2026
Merged

maheshkutty merged 2 commits into
developfrom
harness/RUD-3225-refactor-live-tests-use-shared-1cb3c571

Conversation

@rudder-devbox

@rudder-devbox rudder-devbox Bot commented Oct 6, 2026

Copy link
Copy Markdown
Contributor

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.

Developer checklist

  • My code follows the style guidelines of this project
  • No breaking changes are being introduced.
  • All related docs linked with the PR?
  • All changes manually tested?
  • Any documentation changes needed with this change?
  • Is the PR limited to 10 file changes?
  • Is the PR limited to one linear task?
  • 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.

@rudder-devbox

rudder-devbox Bot commented Oct 6, 2026

Copy link
Copy Markdown
Contributor Author

👋 I'm rudder-devbox. I opened this PR from a Linear ticket.

Mention @devbox or @rudder-devbox and I'll act on it — on a top-level PR comment,
in a review summary, or on an inline comment on the diff. Without a mention I won't see it.

@coderabbitai

coderabbitai Bot commented Oct 6, 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: 9a199b8c-c310-448b-9512-8fdf7ef9cd40

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
  • Autopilot · 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.

@rudder-devbox

rudder-devbox Bot commented Oct 6, 2026

Copy link
Copy Markdown
Contributor Author

The Braze live job failed because braze-identify-dedup-existing exhausted its setup polling with pollUntil: dedup user searchable not satisfied after 7 attempts. Those attempts stopped around 63 seconds, while another profile read-back in the same run took about 79.7 seconds, confirming Braze indexing exceeded the setup window.

I aligned both Braze prerequisite-profile polls with the existing read-back policy: 9 attempts with capped exponential backoff, covering roughly 79 seconds while staying within the 120-second step timeout. TypeScript, Prettier, and the retained live-harness tests (20/20) pass. The fix is pushed in a466498.

@rudder-devbox

rudder-devbox Bot commented Oct 6, 2026

Copy link
Copy Markdown
Contributor Author

Knowledge distillation completed

@maheshkutty
maheshkutty marked this pull request as ready for review October 6, 2026 16:24
@maheshkutty
maheshkutty requested review from a team as code owners October 6, 2026 16:24
@codecov

codecov Bot commented Oct 6, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 93.33%. Comparing base (de4fed1) to head (a466498).

Additional details and impacted files
@@           Coverage Diff            @@
##           develop    #5634   +/-   ##
========================================
  Coverage    93.33%   93.33%           
========================================
  Files          703      703           
  Lines        38759    38759           
  Branches      9015     9073   +58     
========================================
  Hits         36174    36174           
+ Misses        2400     2381   -19     
- Partials       185      204   +19     

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

@sonarqubecloud

sonarqubecloud Bot commented Oct 6, 2026

Copy link
Copy Markdown

@maheshkutty
maheshkutty merged commit 938e883 into develop Oct 7, 2026
47 checks passed
@maheshkutty
maheshkutty deleted the harness/RUD-3225-refactor-live-tests-use-shared-1cb3c571 branch October 7, 2026 05:06
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.

2 participants