Skip to content

feat: introduce e2e tests UT - #4686

Merged
cisse21 merged 11 commits into
developfrom
feat.introduceE2Etests
Oct 8, 2025
Merged

cisse21 merged 11 commits into
developfrom
feat.introduceE2Etests

Conversation

@cisse21

@cisse21 cisse21 commented Sep 29, 2025 •

Copy link
Copy Markdown
Member

What are the changes introduced in this PR?

This PR aims at introducing e2e tests for the /customTransform endpoint
We use a mock config backend server and a mock external server and return the appropriate code for the required modules by storing them in a json
All the calls are made to /customTransform endpoint and the responses are validated against test data

What is the related Linear task?

Fixes PIPE-2435

Please explain the objectives of your changes below

Put down any required details on the broader aspect of your changes. If there are any dependent changes, mandatorily mention them here

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

N/A

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?

N/A

@coderabbitai review


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.

@coderabbitai

coderabbitai Bot commented Sep 29, 2025 •

Copy link
Copy Markdown
Contributor

Summary by CodeRabbit

  • Chores
    • Codebase cleanup by removing obsolete commented configuration reference, reducing clutter and improving maintainability. No impact on functionality, performance, or user experience. No changes to settings, APIs, or workflows. This is a non-functional maintenance update requiring no action from users or administrators. Release behavior remains identical across environments and deployment processes.

Walkthrough

Removed a single commented-out backend URL alias from src/util/customTransforrmationsStore-v1.js. No functional changes; no exports modified.

Changes

Cohort / File(s) Summary
Cleanup: remove commented-out URL
src/util/customTransforrmationsStore-v1.js
Deleted a redundant commented alias for CONFIG_BACKEND_URL; active configuration remains unchanged.

Estimated code review effort

🎯 1 (Trivial) | ⏱️ ~2 minutes

Suggested reviewers

  • maheshkutty
  • sivashanmukh

Suggestions

  • Consider running a linter or code cleanup rule to systematically remove stale comments to keep the codebase tidy.

Pre-merge checks and finishing touches

❌ Failed checks (2 warnings)
Check name Status Explanation Resolution
Title Check ⚠️ Warning The pull request title indicates the introduction of end-to-end tests, but the actual changeset only removes a commented-out backend URL alias and contains no test code, so the title does not reflect the primary change. Please update the title to accurately describe the removal of the commented backend URL alias or extend the changeset to include the intended e2e test files and related logic so that the title matches the actual content.
Description Check ⚠️ Warning The description template has been applied and sections populated, but the objectives section still contains the placeholder prompt rather than concrete details, and the described e2e tests are not present in the code changes. Please fill in the objectives section with specific information about the test implementation, remove any placeholder text, and ensure the description accurately reflects the actual code changes or update the code to match the described testing functionality.
✅ Passed checks (1 passed)
Check name Status Explanation
Docstring Coverage ✅ Passed No functions found in the changes. Docstring coverage check skipped.
✨ Finishing touches
  • 📝 Generate docstrings
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Post copyable unit tests in a comment
  • Commit unit tests in branch feat.introduceE2Etests

📜 Recent review details

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between b8d180a and dca8c92.

⛔ Files ignored due to path filters (10)
  • test/__tests__/user_transformation.e2e.test.ts is excluded by !**/test/**
  • test/mocks/config-backend-server.ts is excluded by !**/test/**
  • test/mocks/external-api-server.ts is excluded by !**/test/**
  • test/mocks/user_transformation/test-data/README.md is excluded by !**/*.md, !**/test/**
  • test/mocks/user_transformation/test-data/external-api-mocks.ts is excluded by !**/test/**
  • test/mocks/user_transformation/test-data/index.ts is excluded by !**/test/**
  • test/mocks/user_transformation/test-data/library-mocks.ts is excluded by !**/test/**
  • test/mocks/user_transformation/test-data/rudder-library-mocks.ts is excluded by !**/test/**
  • test/mocks/user_transformation/test-data/transformation-mocks.ts is excluded by !**/test/**
  • test/mocks/user_transformation/utils/test-helpers.ts is excluded by !**/test/**
📒 Files selected for processing (1)
  • src/util/customTransforrmationsStore-v1.js (0 hunks)
💤 Files with no reviewable changes (1)
  • src/util/customTransforrmationsStore-v1.js

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 and usage tips.

Comment thread test/mocks/external-api-server.js Fixed
@devops-github-rudderstack

Copy link
Copy Markdown
Contributor

Allure Test reports for this run are available at:

1 similar comment
@devops-github-rudderstack

Copy link
Copy Markdown
Contributor

Allure Test reports for this run are available at:

@cisse21
cisse21 force-pushed the feat.introduceE2Etests branch from 8220433 to 5eb447a Compare September 29, 2025 07:24
@devops-github-rudderstack

Copy link
Copy Markdown
Contributor

Allure Test reports for this run are available at:

@cisse21
cisse21 force-pushed the feat.introduceE2Etests branch from 5eb447a to 9cc5968 Compare September 29, 2025 07:43
@devops-github-rudderstack

Copy link
Copy Markdown
Contributor

Allure Test reports for this run are available at:

@cisse21
cisse21 force-pushed the feat.introduceE2Etests branch from 9cc5968 to 4878db2 Compare September 29, 2025 08:27
@devops-github-rudderstack

Copy link
Copy Markdown
Contributor

Allure Test reports for this run are available at:

1 similar comment
@devops-github-rudderstack

Copy link
Copy Markdown
Contributor

Allure Test reports for this run are available at:

@cisse21
cisse21 force-pushed the feat.introduceE2Etests branch from a300c37 to dc3082d Compare September 30, 2025 09:12
@devops-github-rudderstack

Copy link
Copy Markdown
Contributor

Allure Test reports for this run are available at:

@cisse21
cisse21 requested a review from atzoum September 30, 2025 09:44
@ktgowtham
ktgowtham self-requested a review September 30, 2025 11:03
ktgowtham
ktgowtham previously approved these changes Oct 1, 2025

@ktgowtham ktgowtham left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

looks great! thanks for covering all the cases.
You mentioned offline about tests around global vars, is that in the ivmCache PR?

Comment thread test/mocks/test-data/api-responses.js Resolved
@cisse21
cisse21 requested a review from ktgowtham October 1, 2025 09:23
@devops-github-rudderstack

Copy link
Copy Markdown
Contributor

Allure Test reports for this run are available at:

ktgowtham
ktgowtham previously approved these changes Oct 1, 2025
Comment thread test/mocks/config-backend-server.js Resolved
Comment thread test/mocks/external-api-server.js Resolved
@devops-github-rudderstack

Copy link
Copy Markdown
Contributor

Allure Test reports for this run are available at:

@devops-github-rudderstack

Copy link
Copy Markdown
Contributor

Allure Test reports for this run are available at:

@codecov

codecov Bot commented Oct 1, 2025 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 91.90%. Comparing base (892ebd7) to head (dca8c92).
⚠️ Report is 7 commits behind head on develop.

Additional details and impacted files
@@             Coverage Diff             @@
##           develop    #4686      +/-   ##
===========================================
+ Coverage    91.79%   91.90%   +0.10%     
===========================================
  Files          645      650       +5     
  Lines        34086    34486     +400     
  Branches      8050     8099      +49     
===========================================
+ Hits         31290    31694     +404     
+ Misses        2544     2543       -1     
+ Partials       252      249       -3     

☔ View full report in Codecov by Sentry.
📢 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.

@cisse21
cisse21 requested a review from atzoum October 1, 2025 12:40
@devops-github-rudderstack

Copy link
Copy Markdown
Contributor

Allure Test reports for this run are available at:

@cisse21
cisse21 requested a review from ktgowtham October 1, 2025 13:34
@devops-github-rudderstack

Copy link
Copy Markdown
Contributor

Allure Test reports for this run are available at:

@devops-github-rudderstack

Copy link
Copy Markdown
Contributor

Allure Test reports for this run are available at:

@sonarqubecloud

sonarqubecloud Bot commented Oct 7, 2025

Copy link
Copy Markdown

@fracasula fracasula left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

LGTM

Comment thread test/mocks/external-api-server.ts Resolved
@cisse21
cisse21 marked this pull request as ready for review October 8, 2025 03:34
@cisse21
cisse21 requested review from a team as code owners October 8, 2025 03:34
@cisse21
cisse21 merged commit fead46a into develop Oct 8, 2025
@cisse21
cisse21 deleted the feat.introduceE2Etests branch October 8, 2025 09:29
ItsSudip added a commit that referenced this pull request Nov 12, 2025
* feat: introduce e2e tests UT (#4686)

* chore: update slack notification list (#4706)

* chore: skip pushing docker images for dependabot (#4714)

* chore: skip building images for debendabot

* chore: review comments

* chore: skip docker login for dependabot

* chore: skip docker login for dependabot

* chore: misc

* chore: misc

* chore: misc

* chore: misc

* chore: review comments

* chore: review comments

* chore: review comments

* chore: review comments

* chore: review comments

* chore: add dub to new test structure (#4717)

* chore: add readme for campaign_manager (#4710)

* chore: update GAOC readme with quota link (#4723)

* chore: apply security best practices (#4708)

[StepSecurity] Apply security best practices

Signed-off-by: StepSecurity Bot <[email protected]>

* feat: add validation of diff in staging deployment workflow (#4722)

* chore(deps-dev): bump commander from 10.0.1 to 14.0.2

Bumps [commander](https://github.com/tj/commander.js) from 10.0.1 to 14.0.2.
- [Release notes](https://github.com/tj/commander.js/releases)
- [Changelog](https://github.com/tj/commander.js/blob/master/CHANGELOG.md)
- [Commits](tj/commander.js@v10.0.1...v14.0.2)

---
updated-dependencies:
- dependency-name: commander
  dependency-version: 14.0.2
  dependency-type: direct:development
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <[email protected]>

* chore(deps-dev): bump supertest from 6.3.4 to 7.1.4 (#4525)

---
updated-dependencies:
- dependency-name: supertest
  dependency-version: 7.1.4
  dependency-type: direct:development
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* chore: add env vars for controlling the connection pooling on python transformations (#4738)

* chore: update facebook conversion api version from 22.0 to 24.0 (#4734)

* chore: update facebook conversion api version from 22.0 to 23.0

* chore: update facebook conversion api version from 23.0 to 45.0

* chore: fix typo

* chore: update facebook custom audience api version from 22.0 to 23.0 (#4735)

* chore: update facebook custom audience api version from 22.0 to 23.0

* chore: update facebook custom audience api version from 23.0 to 24.0

* chore: update facebook custom audience api version from 24.0 to 23.0 as it has some breaking changes

* chore: update facebook pixel api version from 22.0 to 24.0 (#4737)

* chore: update facebook pixel api version from 22.0 to 24.0

* chore: update facebook app events api version from 22.0 to 24.0 (#4736)

* chore: move rs-ai memory bank to transformer

* chore: add nodemon for hot reloading (#4748)

* chore: refactor code to update variable name in more readable format (#4747)

* feat: source transformation endpoint for facebook_lead_ads_native source (#4746)

* chore: disable clustering in nodemon configuration (#4749)

* chore: run format check on all files (#4750)

* fix: intercom rETL flow when user_id only provided as identifier (#4739)

* chore: apply security best practices from step security (#4727)

[StepSecurity] Apply security best practices

Signed-off-by: StepSecurity Bot <[email protected]>
Co-authored-by: stepsecurity-app[bot] <188008098+stepsecurity-app[bot]@users.noreply.github.com>

* chore(deps): bump actions/setup-node from 5.0.0 to 6.0.0

Bumps [actions/setup-node](https://github.com/actions/setup-node) from 5.0.0 to 6.0.0.
- [Release notes](https://github.com/actions/setup-node/releases)
- [Commits](actions/setup-node@v5.0.0...v6.0.0)

---
updated-dependencies:
- dependency-name: actions/setup-node
  dependency-version: 6.0.0
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <[email protected]>

* chore: remove logs logging request/response body (#4754)

* chore: disable pyroscope for primary process in cluster mode (#4756)

* feat(reddit): onboard v3 api (#4699)

* feat(reddit): onboard v3 api

* chore: implement router batching flow

* feat: enable batching scenario

* chore: add test cases

* chore: address coderabbit comments

* chore: add mock for timestamp

* chore: add documentation for reddit

* fix: use crypto for hashing

* chore: address coderabbit comment

* chore: address comments

* chore: add validation and remove double type assertion

* chore: remove undefined files from final palyload

* chore: fix test case

* feat(reddit): onboard v3 api

* chore: implement router batching flow

* feat: enable batching scenario

* chore: add test cases

* chore: address coderabbit comments

* chore: add mock for timestamp

* chore: add documentation for reddit

* fix: use crypto for hashing

* chore: address coderabbit comment

* chore: address comments

* chore: add validation and remove double type assertion

* chore: remove undefined files from final palyload

* chore: fix test case

* chore: apply format

* chore: apply format

* chore(deps): bump actions/checkout from 4.3.0 to 5.0.0

Bumps [actions/checkout](https://github.com/actions/checkout) from 4.3.0 to 5.0.0.
- [Release notes](https://github.com/actions/checkout/releases)
- [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md)
- [Commits](actions/checkout@v4.3.0...08c6903)

---
updated-dependencies:
- dependency-name: actions/checkout
  dependency-version: 5.0.0
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <[email protected]>

* feat: add advertiser_tracking_enabled mapping for pinterest without featureFlag (#4740)

* chore(deps): bump actions/stale from 10.0.0 to 10.1.0

Bumps [actions/stale](https://github.com/actions/stale) from 10.0.0 to 10.1.0.
- [Release notes](https://github.com/actions/stale/releases)
- [Changelog](https://github.com/actions/stale/blob/main/CHANGELOG.md)
- [Commits](actions/stale@v10.0.0...v10.1.0)

---
updated-dependencies:
- dependency-name: actions/stale
  dependency-version: 10.1.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <[email protected]>

* chore: handle breaking changes for commander

* chore: fix breaking commander changes

* chore(release): 1.112.0

---------

Signed-off-by: StepSecurity Bot <[email protected]>
Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: Rohith BCS <[email protected]>
Co-authored-by: Vinay Teki <[email protected]>
Co-authored-by: Mahesh Kutty <[email protected]>
Co-authored-by: Sudip Paul <[email protected]>
Co-authored-by: stepsecurity-app[bot] <188008098+stepsecurity-app[bot]@users.noreply.github.com>
Co-authored-by: Krishna Chaitanya <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Jayachand Mopidevi <[email protected]>
Co-authored-by: GitHub Actions <[email protected]>
Co-authored-by: shekhar-rudder <[email protected]>
@coderabbitai coderabbitai Bot mentioned this pull request Jan 6, 2026
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.

8 participants