Skip to content

test: Probe initial flag snapshots before checking configuration sync - #38714

Open
aljoscha wants to merge 1 commit into
MaterializeInc:mainfrom
aljoscha:sql-685-flag-propagation
Open

test: Probe initial flag snapshots before checking configuration sync#38714
aljoscha wants to merge 1 commit into
MaterializeInc:mainfrom
aljoscha:sql-685-flag-propagation

Conversation

@aljoscha

@aljoscha aljoscha commented Sep 8, 2026

Copy link
Copy Markdown
Contributor

Motivation

SQL-685 reports stale flag values in the configuration-sync integration test. A successful management API update followed by a fixed three-second sleep does not establish SDK visibility. The boot-only assertion cannot converge after reading a stale initial snapshot because its periodic sync loop is disabled.

Changes

Replace the sleep with a bounded readiness probe after targeting changes. Open fresh SDK streams until an initial root snapshot contains at least the environment-specific flag version returned by the management API. Close stale streams rather than waiting for patches, retry transient transport and server failures, and report expected and observed versions on timeout. Allow 120 seconds for the live SQL assertions, including streaming reconnect backoff.

Coverage and limits

The existing launchdarkly workflow retains its boot-only, persisted-value, live-update, kill-switch and scoped-override assertions. The probe uses the same snapshot endpoint as boot, but does not claim a consistency guarantee across separate connections. This is a test-readiness fix, not a demonstrated explanation of every historical failure or the separate production bootstrap/recovery gaps recorded on SQL-685.

Related: SQL-685

Release notes

None.

@aljoscha
aljoscha requested a review from bosconi September 8, 2026 13:42
@aljoscha
aljoscha marked this pull request as ready for review September 8, 2026 13:42
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