Repository: open-feature/java-sdk
Pull request #181 (2022-11-16 18:41:06)

chore(deps): update dependency dev.openfeature.contrib.providers:flagd to v0.5.2
[![Mend Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com)

This PR contains the following updates:

| Package | Change | Age | Adoption | Passing | Confidence |
|---|---|---|---|---|---|
| [dev.openfeature.contrib.providers:flagd](https://openfeature.dev) ([source](https://togithub.com/open-feature/java-sdk-contrib)) | `0.5.0` -> `0.5.2` | [![age](https://badges.renovateapi.com/packages/maven/dev.openfeature.contrib.providers:flagd/0.5.2/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/dev.openfeature.contrib.providers:flagd/0.5.2/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/dev.openfeature.contrib.providers:flagd/0.5.2/compatibility-slim/0.5.0)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/dev.openfeature.contrib.providers:flagd/0.5.2/confidence-slim/0.5.0)](https://docs.renovatebot.com/merge-confidence/) |

---

### Configuration

📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).

🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied.

♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

🔕 **Ignore**: Close this PR and you won't be reminded about this update again.

---

 - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box

---

This PR has been generated by [Mend Renovate](https://www.mend.io/free-developer-tools/renovate/). View repository job log [here](https://app.renovatebot.com/dashboard#github/open-feature/java-sdk).
<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNC4yNi4yIiwidXBkYXRlZEluVmVyIjoiMzQuMzAuNCJ9-->


codecov-commenter: # [Codecov](https://codecov.io/gh/open-feature/java-sdk/pull/181?src=pr&el=h1&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=open-feature) Report
> Merging [#181](https://codecov.io/gh/open-feature/java-sdk/pull/181?src=pr&el=desc&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=open-feature) (d0141bd) into [main](https://codecov.io/gh/open-feature/java-sdk/commit/ea14348edcfa09b2c389271ff88b9a359aef2b0d?el=desc&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=open-feature) (ea14348) will **not change** coverage.
> The diff coverage is `n/a`.

```diff
@@            Coverage Diff            @@
##               main     #181   +/-   ##
=========================================
  Coverage     91.60%   91.60%           
  Complexity      187      187           
=========================================
  Files            20       20           
  Lines           417      417           
  Branches         22       22           
=========================================
  Hits            382      382           
  Misses           23       23           
  Partials         12       12           
```

| Flag | Coverage Δ | |
|---|---|---|
| unittests | `91.60% <ø> (ø)` | |

Flags with carried forward coverage won't be shown. [Click here](https://docs.codecov.io/docs/carryforward-flags?utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=open-feature#carryforward-flags-in-the-pull-request-comment) to find out more.


:mega: We’re building smart automated test selection to slash your CI/CD build times. [Learn more](https://about.codecov.io/iterative-testing/?utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=open-feature)

renovate[bot]: ### Edited/Blocked Notification

Renovate will not automatically rebase this PR, because it does not recognize the last commit author and assumes somebody else may have edited the PR.
You can manually request rebase by checking the rebase/retry box above.

 ⚠ **Warning**: custom changes will be lost.
toddbaert: FYI with this version of flagd we introduce some default timeouts that are occaisionally being hit on test runs. I've set the timeout more generously in the integration suite to resolve this.

Patch:
diff --git a/pom.xml b/pom.xml
index bd8743a..a5517f6 100644
--- a/pom.xml
+++ b/pom.xml
@@ -141,7 +141,7 @@
     <dependency>
       <groupId>dev.openfeature.contrib.providers</groupId>
       <artifactId>flagd</artifactId>
-      <version>0.5.0</version>
+      <version>0.5.3</version>
       <scope>test</scope>
     </dependency>
   </dependencies>


Test patch:
diff --git a/src/test/java/dev/openfeature/sdk/integration/StepDefinitions.java b/src/test/java/dev/openfeature/sdk/integration/StepDefinitions.java
index 892dc34..10d72c0 100644
--- a/src/test/java/dev/openfeature/sdk/integration/StepDefinitions.java
+++ b/src/test/java/dev/openfeature/sdk/integration/StepDefinitions.java
@@ -45,7 +45,9 @@ public class StepDefinitions {
 
     @BeforeAll()
     public static void setup() {
-        OpenFeatureAPI.getInstance().setProvider(new FlagdProvider());
+        FlagdProvider provider = new FlagdProvider();
+        provider.setDeadline(3000); // set a generous deadline, to prevent timeouts in actions
+        OpenFeatureAPI.getInstance().setProvider(provider);
         client = OpenFeatureAPI.getInstance().getClient();
     }