Repository navigation
test: Run the client-level tests on the FDv2 data system - #570
Merged
Merged
Conversation
The evaluation, events, hooks, listeners, fork, singleton, migration and async client tests no longer inject data through the FDv1 data system. They use FDv2 daemon mode over the test's store, or TestDataV2 as a synchronizer. Tests that check FDv1 behavior on purpose stay until FDv1 is removed. Also add client-level FDv2 tests over a real HTTP server: streaming, polling and the default strategy, retry after a recoverable error, a 401 at start, TLS settings, HTTP proxies, offline and daemon modes, and evaluation with the FDv2 file data source and TestDataV2. Two tests are marked xfail: a network error during polling removes the polling synchronizer.
jsonbailey
approved these changes
Nov 10, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Moves the client-level tests off the FDv1 data system so they keep their coverage when FDv1 is removed. The evaluation, events, hooks, listeners, fork, singleton, migration and async client tests now use FDv2 daemon mode over the test's store, or TestDataV2 as a synchronizer. Six tests still use FDv1 on purpose: four that check the FDv1 processor types, and two
use_lddfork tests. Those are removed or moved when FDv1 is removed.Adds client-level FDv2 tests, sync and async, that run against a real HTTP server:
Two tests are strict xfails for a bug where a network error during polling removes the polling synchronizer. The fix is #569 on main. The xfail markers are removed when main is merged into this branch.
Note
Overview
Migrates client-level tests from FDv1 (
MockUpdateProcessor,update_processor_class, manual store init) to FDv2 viadatasystem_config: daemon mode over an in-memory store for store-driven scenarios, TestDataV2 synchronizers for flag setup, and shared helpers (_test_data_config,_daemon_config,make_client).Adds sync and async E2E suites (
test_ldclient_end_to_end_fdv2.py,test_async_ldclient_end_to_end_fdv2.py) against a mock HTTP server covering streaming/polling/default bootstrap, 401 fail-fast, TLS and proxy behavior, offline/daemon, file and TestDataV2 evaluation. Listener and singleton tests now drive/sdk/streamwith FDv2 SSE payloads instead of legacy put events.The dependency-ordering test uses a custom FDv2 initializer +
ChangeSetBuilderinstead of anUpdateProcessor. Cached-data warning tests use daemon/read-only semantics instead of a fake “uninitialized” processor. Hook tests switch fromTestDatato TestDataV2; fork tests mostly use FDv2 with a dedicatedmake_ldd_clientstill on FDv1 foruse_lddbehavior.Two strict xfails document known polling retry bugs (sync and async) pending fix on main.
Reviewed by Cursor Bugbot for commit f8d04a2. Bugbot is set up for automated code reviews on this repo. Configure here.