Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: launchdarkly/openfeature-python-server
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: 0.7.0
Choose a base ref
...
head repository: launchdarkly/openfeature-python-server
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: 0.8.0
Choose a head ref
  • 2 commits
  • 9 files changed
  • 3 contributors

Commits on Aug 31, 2026

  1. feat: Add a start wait timeout for initialization (#59)

    Adds a `start_wait` parameter to `LaunchDarklyProvider`, defaulting to
    the LaunchDarkly SDK's five seconds.
    
    Closes
    [#55](#55).
    
    - The value is passed to `LDClient(config, start_wait)` and bounds the
    whole of initialization once: with a positive value `initialize` reports
    the outcome the constructor already waited for rather than waiting
    again, so a five second start wait cannot become a ten second wait for
    `set_provider_and_wait`.
    - Initialization fails when the client did not become ready in time; the
    provider keeps reporting status afterward, so a later connection still
    makes it ready.
    - Zero does not block the constructor at all, and `initialize` then
    waits without a deadline for the data source to become valid or to fail
    permanently.
    - Flips the README feature matrix's Initialization row to supported,
    since this is the change that makes it true.
    
    <details>
    <summary>Implementation details</summary>
    
    ```python
    # With a start wait the client constructor has already waited, so the outcome is whatever it is now.
    if self.__start_wait <= 0:
        ready_event.wait()
    ```
    
    **Requirements**
    
    - [x] I have added test coverage for new or changed functionality
    - [x] I have followed the repository's [pull request submission
    guidelines](../blob/main/CONTRIBUTING.md#submitting-pull-requests)
    - [x] I have validated my changes against all supported platform
    versions
    
    **Related issues**
    
    
    [#55](#55),
    and the matching Java change in
    [openfeature-java-server#61](launchdarkly/openfeature-java-server#61).
    Related spec change:
    [sdk-specs#257](launchdarkly/sdk-specs#257).
    
    **Describe the solution you've provided**
    
    `main` has since merged
    [#56](#56),
    [#57](#57)
    and
    [#58](#58);
    those are merged into this branch, so `start_wait` composes with the
    wrapper information now passed to `LDClient`, and a failed
    initialization raises `ProviderNotReadyError` rather than a fatal error.
    
    **Describe alternatives you've considered**
    
    Waiting on the ready event for `start_wait` seconds inside `initialize`
    as well: that doubled the effective wait, since the client constructor
    had already waited the same amount.
    
    **Additional context**
    
    Testing: `make test` (84 passed) and `make lint`. Tests cover the
    default matching the SDK default and initialization failing without
    waiting a second time; the timing assertion fails rather than hanging CI
    if the double wait comes back.
    
    </details>
    
    
    Link to Devin session:
    https://app.devin.ai/sessions/38a6eaf69fcf41109e136a1d0fe5e899
    Open in Devin Desktop:
    https://app.devin.ai/desktop/session/38a6eaf69fcf41109e136a1d0fe5e899?variant=devin
    Requested by: @kinyoklion
    
    <!-- CURSOR_SUMMARY -->
    ---
    
    > [!NOTE]
    > <sup>[Cursor Bugbot](https://cursor.com/bugbot) is generating a
    summary for commit 69390f7. Configure
    [here](https://www.cursor.com/dashboard/bugbot).</sup>
    <!-- /CURSOR_SUMMARY -->
    
    ---------
    
    Co-authored-by: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
    kinyoklion and devin-ai-integration[bot] authored Aug 31, 2026
    Configuration menu
    Copy the full SHA
    c8708fd View commit details
    Browse the repository at this point in the history
  2. chore(main): release 0.8.0 (#60)

    🤖 I have created a release *beep* *boop*
    ---
    
    
    ##
    [0.8.0](0.7.0...0.8.0)
    (2026-08-31)
    
    
    ### Features
    
    * Add a start wait timeout for initialization
    ([#59](#59))
    ([c8708fd](c8708fd))
    
    ---
    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 0.8.0** — mechanical version bump from **0.7.0** across the
    release manifest, `pyproject.toml`, `ld_openfeature/version.py`, and
    Sphinx `docs/conf.py`, plus a new **CHANGELOG** section dated
    2026-08-31.
    > 
    > The changelog records one user-facing item for this tag:
    **configurable start wait timeout for provider initialization** ([#59]),
    which was already landed on `main` and is not part of this diff.
    > 
    > <sup>Reviewed by [Cursor Bugbot](https://cursor.com/bugbot) for commit
    7537919. 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>
    github-actions[bot] authored Aug 31, 2026
    Configuration menu
    Copy the full SHA
    1584451 View commit details
    Browse the repository at this point in the history
Loading