rapid-quill-56099
07/31/2024, 3:26 PMmy-ab-boolean
(defaults to false
)
• I clicked "Add an experiment Rule"
• I created a new experiment called test
and left the default 50/50 distribution of users with 100% of users in the experiment. id
is left as the default attribute to split on
• In my test suite, which has been configured to include a random id
attribute for each iteration
• I ran (via the Java SDK) growthBook.evalFeature( 'my-ab-boolean' )
100 times. Each iteration used
◦ A fresh GBContext
◦ with a unique (random) GUID as the id
attribute
◦ a fresh GrowthBook instance using the fresh context
I expected to see ~50% of the evals come back true, and ~50% of the come back false, but instead, every single one returned false. Furthermore, when I inspected the FeatureResult
object, the experiement
and experimentResult
value are null
every time showing no experiment is being used. Furthermore, the source
shows defaultValue
every time as well. I even tried the test on a string feature with 3 variations and a default value with the same result.
What is preventing my experiment from being used?rapid-quill-56099
07/31/2024, 3:26 PMrapid-quill-56099
07/31/2024, 3:27 PMrhythmic-agent-34208
07/31/2024, 10:09 PMrapid-quill-56099
07/31/2024, 10:10 PMrapid-quill-56099
07/31/2024, 10:10 PMrapid-quill-56099
07/31/2024, 10:10 PMrapid-quill-56099
07/31/2024, 10:11 PMrapid-quill-56099
07/31/2024, 10:13 PMrapid-quill-56099
07/31/2024, 10:13 PMrapid-quill-56099
07/31/2024, 10:16 PMrhythmic-agent-34208
07/31/2024, 10:23 PMrhythmic-agent-34208
07/31/2024, 10:26 PMrapid-quill-56099
07/31/2024, 10:27 PMrapid-quill-56099
07/31/2024, 10:27 PMrapid-quill-56099
07/31/2024, 10:27 PMrapid-quill-56099
07/31/2024, 10:27 PMrapid-quill-56099
07/31/2024, 10:28 PMrapid-quill-56099
07/31/2024, 10:28 PMrapid-quill-56099
07/31/2024, 10:29 PMrapid-quill-56099
07/31/2024, 10:33 PMrhythmic-agent-34208
07/31/2024, 10:42 PMrapid-quill-56099
07/31/2024, 10:49 PMrapid-quill-56099
07/31/2024, 10:49 PMrapid-quill-56099
07/31/2024, 10:50 PMrapid-quill-56099
08/01/2024, 5:01 PMrhythmic-agent-34208
08/01/2024, 5:56 PMrapid-quill-56099
08/01/2024, 6:31 PMgrowthBook.evalFeature( 'my-ab-boolean' )
returns the default value, ignoring my experiment
> Does it show the assignment as expected?
No, as per my original post. It does not return the assignment expected. (assuming that by "assignment", you mean "value" as is reported in the feature result object)
> if you check the SDK connection and look up the results for the features
endpoint, do you see the feature flag and assignment rules as expected?
You mean like in the JSON? I already supplied a screenshot of the assignment rules, but the JSON is as follows:
"my-ab-boolean": {
"defaultValue": false,
"rules": [
{
"coverage": 1,
"hashAttribute": "id",
"seed": "test",
"hashVersion": 2,
"variations": [
false,
true
],
"weights": [
0.5,
0.5
],
"key": "test",
"meta": [
{
"key": "0",
"name": "Control"
},
{
"key": "1",
"name": "Variation 1"
}
],
"phase": "0",
"name": "test"
}
]
}
which basically mirrors the information in my screenshot.
So yes, the feature seems to be configured correctly so far as I can tell, but will only evaluate to the default value.rhythmic-agent-34208
08/01/2024, 9:33 PMrapid-quill-56099
08/01/2024, 9:49 PMrhythmic-agent-34208
08/01/2024, 9:55 PMrapid-quill-56099
08/01/2024, 9:58 PMrapid-quill-56099
08/01/2024, 9:59 PMrapid-quill-56099
08/01/2024, 9:59 PMrapid-quill-56099
08/01/2024, 10:00 PMrapid-quill-56099
08/01/2024, 10:00 PMrhythmic-agent-34208
08/01/2024, 10:03 PMrapid-quill-56099
08/01/2024, 10:04 PMrapid-quill-56099
08/01/2024, 10:04 PMrapid-quill-56099
08/01/2024, 10:05 PMrapid-quill-56099
08/01/2024, 10:05 PMrapid-quill-56099
08/14/2024, 5:48 PMcalm-dog-24239
08/15/2024, 8:35 AMcalm-dog-24239
08/15/2024, 9:34 AMcalm-dog-24239
08/15/2024, 9:35 AMcalm-dog-24239
08/15/2024, 9:36 AMrapid-quill-56099
08/15/2024, 3:08 PM0.9.9
which I beleive was the latest version.rapid-quill-56099
08/15/2024, 3:08 PMrapid-quill-56099
08/15/2024, 3:09 PMcalm-dog-24239
08/15/2024, 3:41 PM