Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
26 commits
Select commit Hold shift + click to select a range
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 2 additions & 3 deletions .github/workflows/instrumented.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,12 @@ concurrency:

jobs:
test:
runs-on: ubuntu-22.04
runs-on: ubuntu-latest

strategy:
fail-fast: false
matrix:
api-level: [ 29 ]
api-level: [ 28 ]
shard: [ 0, 1, 2, 3 ]

steps:
Expand Down Expand Up @@ -53,7 +53,6 @@ jobs:
uses: reactivecircus/android-emulator-runner@v2
with:
api-level: ${{ matrix.api-level }}
avd-name: macOS-avd-arm64-v8a-29
force-avd-creation: false
emulator-options: -no-window -gpu swiftshader_indirect -noaudio -no-boot-anim -camera-back none
disable-animations: true
Expand Down
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ apply plugin: 'kotlin-android'
apply from: 'spec.gradle'

ext {
splitVersion = '5.2.0'
splitVersion = '5.3.0-rc1'
}

android {
Expand Down
2 changes: 1 addition & 1 deletion spec.gradle
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
ext {

// flags spec contains a String with the feature flags specification
flagsSpec = '1.2'
flagsSpec = '1.3'
}
335 changes: 170 additions & 165 deletions src/androidTest/assets/attributes_test_split_change.json
Original file line number Diff line number Diff line change
@@ -1,182 +1,187 @@
{
"splits":[
"ff": {
"splits": [
{
"trafficTypeName":"client",
"name":"workm",
"trafficAllocation":100,
"trafficAllocationSeed":147392224,
"seed":524417105,
"status":"ACTIVE",
"killed":false,
"defaultTreatment":"on",
"changeNumber":1602796638344,
"algo":2,
"configurations":{

},
"conditions":[
{
"conditionType":"ROLLOUT",
"matcherGroup":{
"combiner":"AND",
"matchers":[
{
"keySelector":{
"trafficType":"client",
"attribute":"num_value"
},
"matcherType":"EQUAL_TO",
"negate":false,
"userDefinedSegmentMatcherData":null,
"whitelistMatcherData":null,
"unaryNumericMatcherData":{
"dataType":"NUMBER",
"value":10
},
"betweenMatcherData":null,
"booleanMatcherData":null,
"dependencyMatcherData":null,
"stringMatcherData":null
}
]
},
"partitions":[
{
"treatment":"on_num_10",
"size":100
"trafficTypeName": "client",
"name": "workm",
"trafficAllocation": 100,
"trafficAllocationSeed": 147392224,
"seed": 524417105,
"status": "ACTIVE",
"killed": false,
"defaultTreatment": "on",
"changeNumber": 1602796638344,
"algo": 2,
"configurations": {
},
"conditions": [
{
"conditionType": "ROLLOUT",
"matcherGroup": {
"combiner": "AND",
"matchers": [
{
"keySelector": {
"trafficType": "client",
"attribute": "num_value"
},
{
"treatment":"off",
"size":0
}
],
"label":"rule 1"
}
]
},
{
"conditionType":"ROLLOUT",
"matcherGroup":{
"combiner":"AND",
"matchers":[
{
"keySelector":{
"trafficType":"client",
"attribute":"str_value"
"matcherType": "EQUAL_TO",
"negate": false,
"userDefinedSegmentMatcherData": null,
"whitelistMatcherData": null,
"unaryNumericMatcherData": {
"dataType": "NUMBER",
"value": 10
},
"matcherType":"MATCHES_STRING",
"negate":false,
"userDefinedSegmentMatcherData":null,
"whitelistMatcherData":null,
"unaryNumericMatcherData":null,
"betweenMatcherData":null,
"booleanMatcherData":null,
"dependencyMatcherData":null,
"stringMatcherData":"yes"
}
]
},
"partitions":[
{
"treatment":"on_str_yes",
"size":100
"betweenMatcherData": null,
"booleanMatcherData": null,
"dependencyMatcherData": null,
"stringMatcherData": null
}
]
},
{
"treatment":"off",
"size":0
}
],
"label":"rule 2"
"partitions": [
{
"treatment": "on_num_10",
"size": 100
},
{
"treatment": "off",
"size": 0
}
],
"label": "rule 1"
}
]
},
{
"trafficTypeName":"client",
"name":"workm1",
"trafficAllocation":100,
"trafficAllocationSeed":147392224,
"seed":524417105,
"status":"ACTIVE",
"killed":false,
"defaultTreatment":"on",
"changeNumber":1602796638344,
"algo":2,
"configurations":{

},
"conditions":[
"conditionType": "ROLLOUT",
"matcherGroup": {
"combiner": "AND",
"matchers": [
{
"conditionType":"ROLLOUT",
"matcherGroup":{
"combiner":"AND",
"matchers":[
{
"keySelector":{
"trafficType":"client",
"attribute":"num_value_a"
},
"matcherType":"EQUAL_TO",
"negate":false,
"userDefinedSegmentMatcherData":null,
"whitelistMatcherData":null,
"unaryNumericMatcherData":{
"dataType":"NUMBER",
"value":20
},
"betweenMatcherData":null,
"booleanMatcherData":null,
"dependencyMatcherData":null,
"stringMatcherData":null
}
]
},
"partitions":[
{
"treatment":"on_num_20",
"size":100
},
{
"treatment":"off",
"size":0
}
],
"label":"rule 3"
"keySelector": {
"trafficType": "client",
"attribute": "str_value"
},
"matcherType": "MATCHES_STRING",
"negate": false,
"userDefinedSegmentMatcherData": null,
"whitelistMatcherData": null,
"unaryNumericMatcherData": null,
"betweenMatcherData": null,
"booleanMatcherData": null,
"dependencyMatcherData": null,
"stringMatcherData": "yes"
}
]
]
},
"partitions": [
{
"treatment": "on_str_yes",
"size": 100
},
{
"treatment": "off",
"size": 0
}
],
"label": "rule 2"
},
{
"conditionType":"ROLLOUT",
"matcherGroup":{
"combiner":"AND",
"matchers":[
{
"keySelector":{
"trafficType":"client",
"attribute":"str_value_a"
"trafficTypeName": "client",
"name": "workm1",
"trafficAllocation": 100,
"trafficAllocationSeed": 147392224,
"seed": 524417105,
"status": "ACTIVE",
"killed": false,
"defaultTreatment": "on",
"changeNumber": 1602796638344,
"algo": 2,
"configurations": {
},
"conditions": [
{
"conditionType": "ROLLOUT",
"matcherGroup": {
"combiner": "AND",
"matchers": [
{
"keySelector": {
"trafficType": "client",
"attribute": "num_value_a"
},
"matcherType":"MATCHES_STRING",
"negate":false,
"userDefinedSegmentMatcherData":null,
"whitelistMatcherData":null,
"unaryNumericMatcherData":null,
"betweenMatcherData":null,
"booleanMatcherData":null,
"dependencyMatcherData":null,
"stringMatcherData":"no"
}
]
},
"partitions":[
{
"treatment":"on_str_no",
"size":100
"matcherType": "EQUAL_TO",
"negate": false,
"userDefinedSegmentMatcherData": null,
"whitelistMatcherData": null,
"unaryNumericMatcherData": {
"dataType": "NUMBER",
"value": 20
},
"betweenMatcherData": null,
"booleanMatcherData": null,
"dependencyMatcherData": null,
"stringMatcherData": null
}
]
},
"partitions": [
{
"treatment": "on_num_20",
"size": 100
},
{
"treatment": "off",
"size": 0
}
],
"label": "rule 3"
}
]
},
{
"conditionType": "ROLLOUT",
"matcherGroup": {
"combiner": "AND",
"matchers": [
{
"treatment":"off",
"size":0
"keySelector": {
"trafficType": "client",
"attribute": "str_value_a"
},
"matcherType": "MATCHES_STRING",
"negate": false,
"userDefinedSegmentMatcherData": null,
"whitelistMatcherData": null,
"unaryNumericMatcherData": null,
"betweenMatcherData": null,
"booleanMatcherData": null,
"dependencyMatcherData": null,
"stringMatcherData": "no"
}
],
"label":"rule 3"
]
},
"partitions": [
{
"treatment": "on_str_no",
"size": 100
},
{
"treatment": "off",
"size": 0
}
],
"label": "rule 3"
}
],
"since":1602796638344,
"till":1602796638344
],
"since": 1602796638344,
"till": 1602796638344
},
"rbs": {
"d": [],
"s": 1602796638341,
"t": 1602796638341
}
}
Loading
Loading