Skip to content

fix: prevent client side wrapper test datasystem from colliding with primary connection mode - #394

Merged
joker23 merged 2 commits into
v3from
skz/sdk-2772/fix-wrapper-stream-name-version-test
Jul 30, 2026
Merged

joker23 merged 2 commits into
v3from
skz/sdk-2772/fix-wrapper-stream-name-version-test

Conversation

@joker23

@joker23 joker23 commented Jul 29, 2026 •

Copy link
Copy Markdown
Contributor

This PR will assign distinct connection modes to avoid connection configuration collision on the client entity implementation.


Note

Low Risk
Test-harness-only changes with no production SDK or runtime behavior impact.

Overview
Fixes client-side wrapper streaming tests where a second polling data system was registered under the same streaming connection mode as the primary stream data system. Because SDKDataSystem.Configure() overwrites same-named modes in shared SDKConfigParams, the secondary setup could silently replace the primary streaming endpoints.

Client-side stream wrapper tests now use clientSideSecondaryPollingDataSystem, which registers polling under a distinct polling mode via NewSDKDataSystemCustom, and sets DataSystemOptionInitialConnectionMode("streaming") so the SDK still starts in streaming.

Adds TestClientSideStreamModeSecondaryPollingDataSystemDoesNotCollide with a lightweight fake test-service harness to assert streaming endpoints, initial mode, and a separate polling synchronizer after both configururers run.

Reviewed by Cursor Bugbot for commit da38544. Bugbot is set up for automated code reviews on this repo. Configure here.

@joker23

joker23 commented Jul 29, 2026

Copy link
Copy Markdown
Contributor Author

@cursor review

@cursor cursor Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

✅ Bugbot reviewed your changes and found no new issues!

Comment @cursor review or bugbot run to trigger another review on this PR

Reviewed by Cursor Bugbot for commit dfbc222. Configure here.

@joker23
joker23 marked this pull request as ready for review July 29, 2026 21:02
@joker23
joker23 requested a review from a team as a code owner July 29, 2026 21:02

@devin-ai-integration devin-ai-integration Bot 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.

✅ Devin Review: No Issues Found

Devin Review analyzed this PR and found no bugs or issues to report.

Open in Devin Review

@joker23
joker23 merged commit fb40bc6 into v3 Jul 30, 2026
6 checks passed
@joker23
joker23 deleted the skz/sdk-2772/fix-wrapper-stream-name-version-test branch July 30, 2026 21:07
kinyoklion pushed a commit that referenced this pull request Aug 12, 2026
🤖 I have created a release *beep* *boop*
---


##
[3.2.0-alpha.6](v3.1.1-alpha.6...v3.2.0-alpha.6)
(2026-08-12)


### Features

* Add contract test for streaming connection close on client shutdown
([#403](#403))
([0f91b2a](0f91b2a))
* Add contract tests for client-side secure mode hash (h query param)
([#376](#376))
([3e3012c](3e3012c))
* Add hook-environment-id capability and test
([#412](#412))
([922989a](922989a))
* Add migration op event context redaction tests
([#385](#385))
([34d68e9](34d68e9))
* add tests for handling redacting attributes prefixed with `/`
correctly
([#381](#381))
([ff6929d](ff6929d))
* Verify the in operator keeps booleans and numbers distinct
([fac2879](fac2879))


### Bug Fixes

* Correct privateAttributes JSON tag in context comparison params
([#392](#392))
([d9d2c01](d9d2c01))
* Fix capability guarding custom event redaction
([#387](#387))
([4d3419b](4d3419b))
* Only expect custom-event anonymous redaction for server SDKs
([#389](#389))
([032ae14](032ae14))
* prevent client side wrapper test datasystem from colliding with
primary connection mode
([#394](#394))
([fb40bc6](fb40bc6))

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

<!-- CURSOR_SUMMARY -->
---

> [!NOTE]
> **Overview**
> **Release-only PR** — bumps the package from `3.1.1-alpha.6` to
**`3.2.0-alpha.6`** in `.release-please-manifest.json`, `main.go`
(`versionString`), and adds the matching **CHANGELOG** section.
> 
> No harness or test code changes appear in this diff; the changelog
summarizes work already merged on the branch (new contract tests for
streaming shutdown, client-side secure mode `h` param,
hook-environment-id, migration/context redaction, `/`-prefixed attribute
redaction, and `in` operator type distinction, plus fixes for
`privateAttributes` JSON tagging, custom-event redaction capability
guards, server-only anonymous redaction expectations, and client-side
wrapper datasystem collision).
> 
> <sup>Reviewed by [Cursor Bugbot](https://cursor.com/bugbot) for commit
104ac51. Bugbot is set up for automated
code reviews on this repo. Configure
[here](https://www.cursor.com/dashboard/bugbot).</sup>
<!-- /CURSOR_SUMMARY -->

Co-authored-by: github-actions[bot] <41898282+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