diff --git a/providers/flagd/CONTRIBUTING.md b/providers/flagd/CONTRIBUTING.md
index ab3c56253..0b742756f 100644
--- a/providers/flagd/CONTRIBUTING.md
+++ b/providers/flagd/CONTRIBUTING.md
@@ -23,7 +23,7 @@ In vscode for instance, the following settings are recommended:
The continuous integration runs a set of [gherkin e2e tests](https://github.com/open-feature/test-harness/blob/main/features/evaluation.feature) using [`flagd`](https://github.com/open-feature/flagd). These tests do not run with the default maven profile. If you'd like to run them locally, you can start the flagd testbed with
```
-docker-compose up -d
+docker-compose up
```
and then run
```
diff --git a/providers/flagd/docker-compose.yaml b/providers/flagd/docker-compose.yaml
index 71a14c025..080b60afc 100644
--- a/providers/flagd/docker-compose.yaml
+++ b/providers/flagd/docker-compose.yaml
@@ -1,25 +1,17 @@
services:
flagd:
- build:
- context: test-harness
- dockerfile: flagd/Dockerfile
+ image: ghcr.io/open-feature/flagd-testbed:v0.5.4
ports:
- 8013:8013
flagd-unstable:
- build:
- context: test-harness
- dockerfile: flagd/Dockerfile.unstable
+ image: ghcr.io/open-feature/flagd-testbed-unstable:v0.5.4
ports:
- 8014:8013
flagd-sync:
- build:
- context: test-harness
- dockerfile: sync/Dockerfile
+ image: ghcr.io/open-feature/sync-testbed:v0.5.4
ports:
- 9090:9090
flagd-sync-unstable:
- build:
- context: test-harness
- dockerfile: sync/Dockerfile.unstable
+ image: ghcr.io/open-feature/sync-testbed-unstable:v0.5.4
ports:
- 9091:9090
\ No newline at end of file
diff --git a/providers/flagd/pom.xml b/providers/flagd/pom.xml
index 7067d7a46..8684f1fe6 100644
--- a/providers/flagd/pom.xml
+++ b/providers/flagd/pom.xml
@@ -64,7 +64,7 @@
io.netty
netty-transport-native-epoll
- 4.1.111.Final
+ 4.1.110.Final
linux-x86_64
diff --git a/providers/flagd/src/main/java/dev/openfeature/contrib/providers/flagd/resolver/process/targeting/Fractional.java b/providers/flagd/src/main/java/dev/openfeature/contrib/providers/flagd/resolver/process/targeting/Fractional.java
index 675ac7f36..33693b62f 100644
--- a/providers/flagd/src/main/java/dev/openfeature/contrib/providers/flagd/resolver/process/targeting/Fractional.java
+++ b/providers/flagd/src/main/java/dev/openfeature/contrib/providers/flagd/resolver/process/targeting/Fractional.java
@@ -67,8 +67,11 @@ public Object evaluate(List arguments, Object data) throws JsonLogicEvaluationEx
return distributeValue(bucketBy, propertyList, totalWeight);
}
- private static String distributeValue(final String hashKey, final List propertyList, int totalWeight)
- throws JsonLogicEvaluationException {
+ private static String distributeValue(
+ final String hashKey,
+ final List propertyList,
+ int totalWeight
+ ) throws JsonLogicEvaluationException {
byte[] bytes = hashKey.getBytes(StandardCharsets.UTF_8);
int mmrHash = MurmurHash3.hash32x86(bytes, 0, bytes.length, 0);
float bucket = (Math.abs(mmrHash) * 1.0f / Integer.MAX_VALUE) * 100;
@@ -113,7 +116,7 @@ protected final void finalize() {
}
variant = (String) array.get(0);
- if(array.size() >= 2) {
+ if (array.size() >= 2) {
// second element must be a number
if (!(array.get(1) instanceof Number)) {
throw new JsonLogicException("Second element of the fraction property is not a number");