Skip to content

fix: mirroring round trip comparison - #6813

Merged
fracasula merged 3 commits into
release/1.71.xfrom
fix.mirroringRoundTrip
Mar 26, 2026
Merged

fracasula merged 3 commits into
release/1.71.xfrom
fix.mirroringRoundTrip

Conversation

@fracasula

Copy link
Copy Markdown
Collaborator

Description

The mirroring comparison in processor.go applied a JSON round-trip to the primary response (to create a deep copy for later comparison) but compared the mirror response directly from HTTP deserialization.

Go's jsonrs.Marshal normalizes values (typed nils → untyped nils, omitempty zero values, etc.), so identical HTTP responses produced different Go structs depending on whether they went through the round-trip.

Proposed fix: apply the same Marshal → Unmarshal normalization to the mirror response before comparing.

Linear Ticket

< Fixes PIPE-2870 >

Security

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

@fracasula
fracasula marked this pull request as ready for review March 26, 2026 16:07
@fracasula
fracasula requested review from atzoum and itsmihir March 26, 2026 16:11
Comment thread processor/processor.go Resolved
@fracasula
fracasula merged commit ffc11e2 into release/1.71.x Mar 26, 2026
65 of 66 checks passed
@fracasula
fracasula deleted the fix.mirroringRoundTrip branch March 26, 2026 16:44
fracasula pushed a commit that referenced this pull request Mar 26, 2026
🤖 I have created a release *beep* *boop*
---


##
[1.71.2](v1.71.1...v1.71.2)
(2026-03-26)


### Bug Fixes

* mirroring round trip comparison
([#6813](#6813))
([ffc11e2](ffc11e2))

---
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>
fracasula added a commit that referenced this pull request Mar 26, 2026
# Description

Syncing patch release v1.71.2 to main branch

**↓↓ Please review and edit commit overrides before merging ↓↓**

BEGIN_COMMIT_OVERRIDE
fix: language label (#6809)
fix: mirroring round trip comparison (#6813)
END_COMMIT_OVERRIDE

---------

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


##
[1.72.0-rc.1](v1.71.0...v1.72.0-rc.1)
(2026-03-30)


### Features

* **jobsdb:** migration optimizations for large number of datasets
([#6786](#6786))
([641f9fd](641f9fd))


### Bug Fixes

* language label
([#6809](#6809))
([ac501c8](ac501c8))
* mirroring round trip comparison
([#6813](#6813))
([57a079b](57a079b))


### Miscellaneous

* partition migration stress test and improvements
([#6802](#6802))
([419818a](419818a))
* sync release v1.71.0 to main branch
([#6801](#6801))
([6a6ee90](6a6ee90))

---
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>
This was referenced Mar 30, 2026
itsmihir pushed a commit that referenced this pull request Mar 30, 2026
🤖 I have created a release *beep* *boop*
---


##
[1.72.0-rc.2](v1.71.0...v1.72.0-rc.2)
(2026-03-30)


### Features

* **jobsdb:** migration optimizations for large number of datasets
([#6786](#6786))
([641f9fd](641f9fd))


### Bug Fixes

* language label
([#6809](#6809))
([ac501c8](ac501c8))
* mirroring round trip comparison
([#6813](#6813))
([57a079b](57a079b))
* sanity checks
([#6817](#6817))
([2969e3e](2969e3e))


### Miscellaneous

* partition migration stress test and improvements
([#6802](#6802))
([419818a](419818a))
* sync release v1.71.0 to main branch
([#6801](#6801))
([6a6ee90](6a6ee90))

---
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 31, 2026
🤖 I have created a release *beep* *boop*
---


##
[1.72.0](v1.71.0...v1.72.0)
(2026-03-30)


### Features

* **jobsdb:** migration optimizations for large number of datasets
([#6786](#6786))
([641f9fd](641f9fd))


### Bug Fixes

* language label
([#6809](#6809))
([ac501c8](ac501c8))
* mirroring round trip comparison
([#6813](#6813))
([57a079b](57a079b))
* sanity checks
([#6817](#6817))
([2969e3e](2969e3e))


### Miscellaneous

* partition migration stress test and improvements
([#6802](#6802))
([419818a](419818a))
* sync release v1.71.0 to main branch
([#6801](#6801))
([6a6ee90](6a6ee90))

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

2 participants