Skip to content

fix: Send the initial retry delay with the default streaming synchronizer - #638

Merged
kinyoklion merged 1 commit into
v3from
rlamb/v3-initial-retry-delay
Nov 16, 2026
Merged

kinyoklion merged 1 commit into
v3from
rlamb/v3-initial-retry-delay

Conversation

@kinyoklion

@kinyoklion kinyoklion commented Nov 16, 2026 •

Copy link
Copy Markdown
Member

The data system replaces dataSystem.synchronizers when it configures the SDK, so a WithStreamingSynchronizer configurer that only set initialRetryDelayMs was lost. The "initial retry delay is applied" test and the ignored-event validation tests therefore never sent the delay they meant to test. DataSystemOptionStreamingInitialRetryDelay sets the delay on the default streaming synchronizer, and those tests use it.

Testing: no result changes on the full v3 suite against Go, Java, Node, Python (sync and async), Ruby, .NET, Rust (rustls and OpenSSL), C++ (both network backends), Flutter, browser (native and fetch EventSource), Vue and Node client. React did not run here.

Opened from termag


Note

Overview
Fixes a test harness bug where initialRetryDelayMs never reached the SDK when tests built clients with NewSDKDataSystem plus a separate WithStreamingSynchronizer configurer. The data system's Configure rebuilds synchronizers from mocks, so standalone streaming params were dropped.

Adds DataSystemOptionStreamingInitialRetryDelay (mirroring poll interval options): streaming synchronizers store initialRetryDelayMS, options apply at creation time in buildDataSystem / buildMode, and buildServiceDefComponents emits InitialRetryDelayMS on SDKConfigStreamingParams.

Updates stream retry and stream validation tests to set the delay through the data system option instead of WithStreamingSynchronizer, so those cases actually exercise retry timing and no-reconnect behavior.

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

…izer

The data system replaces dataSystem.synchronizers when it configures the
SDK, so a WithStreamingSynchronizer configurer that only set
initialRetryDelayMs was lost. "initial retry delay is applied" and the
ignored-event validation tests therefore never sent the delay. Add
DataSystemOptionStreamingInitialRetryDelay and use it there.

Generated-by: termag
@kinyoklion
kinyoklion marked this pull request as ready for review November 16, 2026 21:14
@kinyoklion
kinyoklion requested a review from a team as a code owner November 16, 2026 21:14

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

Risk: low. Approved. Cursor Bugbot completed with no findings requiring human review; Cursor Security Agent was not present. This is a narrow test-harness plumbing change so streaming tests actually send initialRetryDelayMs.

Open in Web View Automation 

Sent by Cursor Approval Agent: SDK - Pull Request Router and Approver

@kinyoklion
kinyoklion merged commit afd82c3 into v3 Nov 16, 2026
9 checks passed
@kinyoklion
kinyoklion deleted the rlamb/v3-initial-retry-delay branch November 16, 2026 21:49
kinyoklion pushed a commit that referenced this pull request Nov 16, 2026
🤖 I have created a release *beep* *boop*
---


##
[3.2.0-alpha.18](v3.2.0-alpha.17...v3.2.0-alpha.18)
(2026-11-16)


### Features

* Add evaluation tests that send flag JSON exactly as written
([#642](#642))
([02262ea](02262ea))
* Add server-side event tests for tracking rules, experiments and index
events
([#643](#643))
([8270594](8270594))
* Add tests that a listener is not notified after it is unregistered
([#641](#641))
([552d6f1](552d6f1))
* Test that an override file with a deleted entry fails the reload
([#599](#599))
([d3c185a](d3c185a))


### Bug Fixes

* Check the order of client-side prerequisite feature events
([#634](#634))
([9676858](9676858))
* Decode characters outside the Basic Multilingual Plane in test service
responses
([#631](#631))
([960fb18](960fb18))
* Give the events-disabled tests an events URI so that they detect sent
events
([#639](#639))
([af47688](af47688))
* Infer typed defaults from v3 server-side flag data
([#640](#640))
([fbe1fdd](fbe1fdd))
* Make the sampling, identify and PHP header event tests check what they
are named for
([#633](#633))
([a6bc5c1](a6bc5c1))
* Make the wrapper and tags header-absence checks detect a sent header
([#632](#632))
([61d1024](61d1024))
* Name localhost in the subjectAltName of the harness TLS certificate
([#630](#630))
([b0c3778](b0c3778))
* Request the detail in the beforeEvaluation hook tests with detail
([#635](#635))
([c551622](c551622))
* Run the all-flags error reason test only on SDKs that support reasons
([#636](#636))
([7ed439e](7ed439e))
* Send only the intended flags in the large payload polling test
([#637](#637))
([0102985](0102985))
* Send the initial retry delay with the default streaming synchronizer
([#638](#638))
([afd82c3](afd82c3))

---
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**
> Bumps the SDK test harness to **3.2.0-alpha.18** across
`.release-please-manifest.json`, `main.go` (`versionString`), and a new
**CHANGELOG** section for 2026-11-16.
> 
> The changelog records what ships in this alpha: **new contract tests**
for exact flag JSON in evaluation, server-side tracking/experiment/index
events, listener behavior after unregister, and override-file reload
failures; plus **test-harness fixes** around BMP decoding, TLS
`localhost` SAN, typed defaults from v3 flag data, event/header/sampling
assertions, streaming retry delay, polling payload scope, and
capability-guarded reason tests.
> 
> <sup>Reviewed by [Cursor Bugbot](https://cursor.com/bugbot) for commit
1486c4c. 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.

1 participant