Skip to content

fix: false sanity check failure due to empty response - #6762

Merged
itsmihir merged 2 commits into
masterfrom
feature/pipe-2836-fix-sanity-check-bug-on-rudder-server
Mar 16, 2026
Merged

itsmihir merged 2 commits into
masterfrom
feature/pipe-2836-fix-sanity-check-bug-on-rudder-server

Conversation

@itsmihir

@itsmihir itsmihir commented Mar 13, 2026 •

Copy link
Copy Markdown
Contributor

Description

  • Fix false positive UT mirroring sanity check failures caused by isUserTransformMirroringEnabled returning true while the mirror client had no URL configured, producing empty responses that were compared against real
    transformer output
  • Move mirror URL validation into isUserTransformMirroringEnabled so mirroring is disabled early when USER_TRANSFORM_MIRROR_URL or PYTHON_TRANSFORM_MIRROR_URL is not set for the given transformation language
  • Simplify userTransformURL by removing mirroring skip branches and the skippedEventsForMirroring stat (now dead code)

Linear Ticket

PIPE-2836

Security

  • The code changed/added as part of this pull request won't create any security issues with how the software is being used.

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

changes look good. pl look at the checks failing.

handle.log = log.Child("user_transformer")
handle.stat = stat
handle.client = transformerclient.NewClient(transformerutils.TransformerClientConfig(conf, "UserTransformer"))
handle.config.userTransformationURL = handle.conf.GetStringVar(handle.conf.GetStringVar("http://localhost:9090", "DEST_TRANSFORM_URL"), "USER_TRANSFORM_URL")

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.

noticed this wile reviewing. it shouldn't be pointing to DEST_TRANSFORM_URL rt?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Yeah, it shouldn't, but it's just used as a default value.

@ktgowtham
ktgowtham self-requested a review March 15, 2026 12:44
@codecov

codecov Bot commented Mar 15, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 79.73%. Comparing base (5022fbd) to head (e6a9f4c).
⚠️ Report is 1 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #6762      +/-   ##
==========================================
- Coverage   80.05%   79.73%   -0.33%     
==========================================
  Files         565      565              
  Lines       63267    63258       -9     
==========================================
- Hits        50651    50441     -210     
- Misses       9631     9851     +220     
+ Partials     2985     2966      -19     

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

@mihir20 mihir20 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

@itsmihir
itsmihir merged commit 0384603 into master Mar 16, 2026
142 of 146 checks passed
@itsmihir
itsmihir deleted the feature/pipe-2836-fix-sanity-check-bug-on-rudder-server branch March 16, 2026 06:24
itsmihir pushed a commit that referenced this pull request Mar 16, 2026
🤖 I have created a release *beep* *boop*
---


##
[1.70.0-rc.1](v1.69.0...v1.70.0-rc.1)
(2026-03-16)


### Features

* add a scheduled release cut workflow to cut release branches
([#6739](#6739))
([ab887ac](ab887ac))
* infer OAuth type from account definition when destination supports
accounts
([#6718](#6718))
([00d1755](00d1755))


### Bug Fixes

* false sanity check failure due to empty response
([#6762](#6762))
([0384603](0384603))
* gateway request blocked in store jobs blocking all other requests
([#6760](#6760))
([ca4d514](ca4d514))
* respect context cancellation in gateway rate limiter
([#6751](#6751))
([589251a](589251a))
* update prerelease branch versioning format in scheduled release
workflow
([#6745](#6745))
([fede9e4](fede9e4))


### Miscellaneous

* add check for pseudo-version dependencies in rudderlabs modules
([#6737](#6737))
([55ecd10](55ecd10))
* bump rudder-go-kit to 0.73.0
([#6753](#6753))
([1743f6b](1743f6b))
* remove gunicorn and add darwin compatibility
([#6742](#6742))
([392d1f4](392d1f4))
* use latest retryablehttp client
([#6754](#6754))
([629f036](629f036))
* user rudo docker image for partition migration integration tests
([#6757](#6757))
([5022fbd](5022fbd))

---
This PR was generated with [Release
Please](https://github.com/googleapis/release-please). See
[documentation](https://github.com/googleapis/release-please#release-please).

Co-authored-by: rudderstack-github-actions[bot] <236995729+rudderstack-github-actions[bot]@users.noreply.github.com>
itsmihir pushed a commit that referenced this pull request Mar 17, 2026
🤖 I have created a release *beep* *boop*
---


##
[1.70.0](v1.69.0...v1.70.0)
(2026-03-16)


### Features

* add a scheduled release cut workflow to cut release branches
([#6739](#6739))
([ab887ac](ab887ac))
* infer OAuth type from account definition when destination supports
accounts
([#6718](#6718))
([00d1755](00d1755))


### Bug Fixes

* false sanity check failure due to empty response
([#6762](#6762))
([0384603](0384603))
* gateway request blocked in store jobs blocking all other requests
([#6760](#6760))
([ca4d514](ca4d514))
* respect context cancellation in gateway rate limiter
([#6751](#6751))
([589251a](589251a))
* update prerelease branch versioning format in scheduled release
workflow
([#6745](#6745))
([fede9e4](fede9e4))


### Miscellaneous

* add check for pseudo-version dependencies in rudderlabs modules
([#6737](#6737))
([55ecd10](55ecd10))
* bump rudder-go-kit to 0.73.0
([#6753](#6753))
([1743f6b](1743f6b))
* remove gunicorn and add darwin compatibility
([#6742](#6742))
([392d1f4](392d1f4))
* use latest retryablehttp client
([#6754](#6754))
([629f036](629f036))
* user rudo docker image for partition migration integration tests
([#6757](#6757))
([5022fbd](5022fbd))

---
This PR was generated with [Release
Please](https://github.com/googleapis/release-please). See
[documentation](https://github.com/googleapis/release-please#release-please).

Co-authored-by: rudderstack-github-actions[bot] <236995729+rudderstack-github-actions[bot]@users.noreply.github.com>
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