diff --git a/seed/requirements.txt b/seed/requirements.txt index 786d8316..5c1c7e58 100644 --- a/seed/requirements.txt +++ b/seed/requirements.txt @@ -1,3 +1,3 @@ -ecdsa -protobuf -pycodestyle \ No newline at end of file +ecdsa>=0.17.0 +protobuf<4 +pycodestyle>=2.8.0 \ No newline at end of file diff --git a/seed/seed.json b/seed/seed.json index 969ebf49..d96520aa 100644 --- a/seed/seed.json +++ b/seed/seed.json @@ -1,6 +1,173 @@ { "version": "1", "studies": [ + { + "name": "Default1pBlockingStudy", + "experiments": [ + { + "name": "Enabled", + "probability_weight": 0, + "feature_association": { + "enable_feature": ["BraveAdblockDefault1pBlocking"] + } + }, + { + "name": "Disabled", + "probability_weight": 100, + "feature_association": { + "disable_feature": ["BraveAdblockDefault1pBlocking"] + } + }, + { + "name": "Default", + "probability_weight": 0 + } + ], + "filter": { + "min_version": "92.1.30.57", + "channel": ["NIGHTLY", "BETA"], + "platform": ["WINDOWS", "MAC", "LINUX", "ANDROID"] + } + }, + { + "name": "Default1pBlockingStudy", + "experiments": [ + { + "name": "Enabled", + "probability_weight": 0, + "feature_association": { + "enable_feature": ["BraveAdblockDefault1pBlocking"] + } + }, + { + "name": "Disabled", + "probability_weight": 100, + "feature_association": { + "disable_feature": ["BraveAdblockDefault1pBlocking"] + } + }, + { + "name": "Default", + "probability_weight": 0 + } + ], + "filter": { + "min_version": "92.1.30.57", + "channel": ["RELEASE"], + "platform": ["WINDOWS", "MAC", "LINUX", "ANDROID"] + } + }, + { + "name": "DeAMPStudy", + "experiments": [ + { + "name": "Enabled", + "probability_weight": 100, + "feature_association": { + "enable_feature": ["BraveDeAMP"] + } + }, + { + "name": "Disabled", + "probability_weight": 0, + "feature_association": { + "disable_feature": ["BraveDeAMP"] + } + }, + { + "name": "Default", + "probability_weight": 0 + } + ], + "filter": { + "min_version": "100.1.39.5", + "channel": ["NIGHTLY", "BETA"], + "platform": ["WINDOWS", "MAC", "LINUX", "ANDROID"] + } + }, + { + "name": "CookieListDefaultStudy", + "experiments": [ + { + "name": "Enabled", + "probability_weight": 0, + "feature_association": { + "enable_feature": ["BraveAdblockCookieListDefault"] + } + }, + { + "name": "Disabled", + "probability_weight": 100, + "feature_association": { + "disable_feature": ["BraveAdblockCookieListDefault"] + } + }, + { + "name": "Default", + "probability_weight": 0 + } + ], + "filter": { + "min_version": "97.1.35.39", + "channel": ["NIGHTLY", "BETA"], + "platform": ["WINDOWS", "MAC", "LINUX", "ANDROID"] + } + }, + { + "name": "NativeCosmeticFilteringStudy", + "experiments": [ + { + "name": "Enabled", + "probability_weight": 100, + "feature_association": { + "enable_feature": ["BraveAdblockCosmeticFilteringNative"] + } + }, + { + "name": "Disabled", + "probability_weight": 0, + "feature_association": { + "disable_feature": ["BraveAdblockCosmeticFilteringNative"] + } + }, + { + "name": "Default", + "probability_weight": 0 + } + ], + "filter": { + "min_version": "91.1.26.74", + "channel": ["NIGHTLY", "BETA", "RELEASE"], + "platform": ["WINDOWS", "MAC", "LINUX"] + } + }, + { + "name": "VulkanStudy", + "experiments": [ + { + "name": "Enabled", + "probability_weight": 0, + "feature_association": { + "enable_feature": ["Vulkan"] + } + }, + { + "name": "Disabled", + "probability_weight": 100, + "feature_association": { + "disable_feature": ["Vulkan"] + } + }, + { + "name": "Default", + "probability_weight": 0 + } + ], + "filter": { + "channel": ["NIGHTLY", "BETA", "RELEASE"], + "platform": ["ANDROID"] + } + }, { "name": "EphemeralStorageStudy", "experiments": [ @@ -140,14 +307,14 @@ "experiments": [ { "name": "Enabled", - "probability_weight": 50, + "probability_weight": 100, "feature_association": { "enable_feature": ["PermissionLifetime"] } }, { "name": "Disabled", - "probability_weight": 50, + "probability_weight": 0, "feature_association": { "disable_feature": ["PermissionLifetime"] } @@ -164,26 +331,64 @@ } }, { - "name": "DoNotShowCustomAdNotificationsOnBetaAndReleaseChannelsStudy", + "name": "FirstPartyEphemeralDomainBlockStudy", + "experiments": [ + { + "name": "Enabled", + "probability_weight": 100, + "feature_association": { + "enable_feature": [ + "BraveFirstPartyEphemeralStorage", + "BraveDomainBlock1PES" + ] + } + }, + { + "name": "Default", + "probability_weight": 0 + } + ], + "filter": { + "min_version": "101.1.38.109", + "channel": ["NIGHTLY", "BETA", "RELEASE"], + "platform": ["WINDOWS", "MAC", "LINUX", "ANDROID"] + } + }, + { + "name": "DisableBlobPartitioning", + "experiments": [ + { + "name": "Default", + "probability_weight": 100, + "feature_association": { + "disable_feature": [ + "BravePartitionBlobStorage" + ] + } + } + ], + "filter": { + "min_version": "100.1.39.41", + "max_version": "102.1.39.117", + "channel": ["NIGHTLY", "BETA", "RELEASE"], + "platform": ["WINDOWS", "MAC", "LINUX", "ANDROID"] + } + }, + { + "name": "SpeedreaderReleaseStudy", "experiments": [ { "name": "Enabled", "probability_weight": 100, - "parameters": [ - { - "name": "should_show_custom_notifications", - "value": "false" - } - ], "feature_association": { - "enable_feature": ["AdNotifications"] + "enable_feature": ["Speedreader"] } }, { "name": "Disabled", "probability_weight": 0, "feature_association": { - "disable_feature": ["AdNotifications"] + "disable_feature": ["Speedreader"] } }, { @@ -192,215 +397,292 @@ } ], "filter": { - "max_version": "91.1.26.36", - "channel": ["BETA", "RELEASE"], - "platform": ["WINDOWS", "MAC", "LINUX", "ANDROID"] + "min_version": "92.1.28.100", + "channel": ["RELEASE"], + "platform": ["WINDOWS", "MAC", "LINUX"] } }, { - "name": "BraveAds.DoNotShowCustomAdNotificationsOnNightlyChannelStudy", + "name": "BraveAds.FrequencyCappingStudy", "experiments": [ { - "name": "Enabled", - "probability_weight": 40, + "name": "ExcludeAdIfWithinTimeWindow=0h", + "probability_weight": 100, "parameters": [ { - "name": "should_show_custom_notifications", - "value": "false" + "name": "exclude_ad_if_dismissed_within_time_window", + "value": "0h" + }, + { + "name": "exclude_ad_if_transferred_within_time_window", + "value": "0h" } ], "feature_association": { - "enable_feature": ["AdNotifications"] - } - }, - { - "name": "Disabled", - "probability_weight": 0, - "feature_association": { - "disable_feature": ["AdNotifications"] + "enable_feature": ["FrequencyCapping"] } }, { "name": "Default", - "probability_weight": 60 + "probability_weight": 0 } ], "filter": { - "max_version": "91.1.26.36", - "channel": ["NIGHTLY"], - "platform": ["WINDOWS", "MAC", "LINUX", "ANDROID"] + "min_version": "91.1.26.60", + "channel": ["NIGHTLY", "BETA", "RELEASE"], + "platform": ["WINDOWS", "MAC", "LINUX", "ANDROID"], + "country": ["US", "AU", "CA", "FR", "DE", "IE", "JP", "NZ", "GB"] } }, { - "name": "BraveAds.ShowCustomAdNotificationOnWindowsStudy", + "name": "BraveAds.UserActivityStudy", "experiments": [ { - "name": "CustomAdNotificationPositionedBottomRightOffsetToTheLeftOfSystemNotifications", - "probability_weight": 30, + "name": "Triggers=EMPTY/Threshold=0.0/IdleTimeThreshold=5", + "probability_weight": 100, "parameters": [ { - "name": "should_show_custom_notifications", - "value": "true" - }, - { - "name": "ad_notification_normalized_display_coordinate_x", - "value": "1.0" - }, - { - "name": "ad_notification_inset_x", - "value": "-370" + "name": "triggers", + "value": "" }, { - "name": "ad_notification_normalized_display_coordinate_y", - "value": "1.0" + "name": "threshold", + "value": "0.0" }, { - "name": "ad_notification_inset_y", - "value": "-10" + "name": "idle_time_threshold", + "value": "5s" } ], "feature_association": { - "enable_feature": ["AdNotifications"] + "enable_feature": ["UserActivity"] } }, { - "name": "CustomAdNotificationDefaultPosition", - "probability_weight": 30, + "name": "Default", + "probability_weight": 0 + } + ], + "filter": { + "channel": ["NIGHTLY", "BETA", "RELEASE"], + "platform": ["WINDOWS", "MAC", "LINUX", "ANDROID"] + } + }, + { + "name": "AdServingStudy", + "experiments": [ + { + "name": "DefaultAdNotificationsPerHour=10/MaximumAdNotificationsPerDay=100/MaximumInlineContentAdsPerHour=12/MaximumInlineContentAdsPerDay=60", + "probability_weight": 100, "parameters": [ { - "name": "should_show_custom_notifications", - "value": "true" + "name": "default_ad_notifications_per_hour", + "value": "10" + }, + { + "name": "maximum_ad_notifications_per_day", + "value": "100" + }, + { + "name": "maximum_inline_content_ads_per_hour", + "value": "12" + }, + { + "name": "maximum_inline_content_ads_per_day", + "value": "60" } ], "feature_association": { - "enable_feature": ["AdNotifications"] - } - }, - { - "name": "Disabled", - "probability_weight": 0, - "feature_association": { - "disable_feature": ["AdNotifications"] + "enable_feature": ["AdServing"] } }, { "name": "Default", - "probability_weight": 40 + "probability_weight": 0 } ], "filter": { - "min_version": "91.1.26.37", - "channel": ["NIGHTLY", "BETA"], - "platform": ["WINDOWS"] + "channel": ["RELEASE"], + "platform": ["WINDOWS", "MAC", "LINUX", "ANDROID"] } }, { - "name": "BraveAds.ShowCustomAdNotificationOnMacStudy", + "name": "BraveAds.AdServingStudy", "experiments": [ { - "name": "CustomAdNotificationPositionedBottomRight", - "probability_weight": 30, + "name": "DefaultAdNotificationsPerHour=10/MaximumAdNotificationsPerDay=100/MaximumInlineContentAdsPerHour=12/MaximumInlineContentAdsPerDay=60/AdServingVersion=1", + "probability_weight": 20, "parameters": [ { - "name": "should_show_custom_notifications", - "value": "true" + "name": "default_ad_notifications_per_hour", + "value": "10" }, { - "name": "ad_notification_normalized_display_coordinate_x", - "value": "1.0" + "name": "maximum_ad_notifications_per_day", + "value": "100" }, { - "name": "ad_notification_inset_x", - "value": "-10" + "name": "maximum_inline_content_ads_per_hour", + "value": "12" }, { - "name": "ad_notification_normalized_display_coordinate_y", - "value": "1.0" + "name": "maximum_inline_content_ads_per_day", + "value": "60" }, { - "name": "ad_notification_inset_y", - "value": "-10" + "name": "ad_serving_version", + "value": "1" } ], "feature_association": { - "enable_feature": ["AdNotifications"] + "enable_feature": ["AdServing"] } }, { - "name": "CustomAdNotificationDefaultPosition", - "probability_weight": 30, + "name": "DefaultAdNotificationsPerHour=10/MaximumAdNotificationsPerDay=100/MaximumInlineContentAdsPerHour=12/MaximumInlineContentAdsPerDay=60/AdServingVersion=2", + "probability_weight": 20, "parameters": [ { - "name": "should_show_custom_notifications", - "value": "true" + "name": "default_ad_notifications_per_hour", + "value": "10" + }, + { + "name": "maximum_ad_notifications_per_day", + "value": "100" + }, + { + "name": "maximum_inline_content_ads_per_hour", + "value": "12" + }, + { + "name": "maximum_inline_content_ads_per_day", + "value": "60" + }, + { + "name": "ad_serving_version", + "value": "2" } ], "feature_association": { - "enable_feature": ["AdNotifications"] - } - }, - { - "name": "Disabled", - "probability_weight": 0, - "feature_association": { - "disable_feature": ["AdNotifications"] + "enable_feature": ["AdServing"] } }, { - "name": "Default", - "probability_weight": 40 - } - ], - "filter": { - "min_version": "91.1.26.37", - "channel": ["NIGHTLY", "BETA"], - "platform": ["MAC"] - } - }, - { - "name": "BraveAds.ShowCustomAdNotificationOnLinuxStudy", - "experiments": [ - { - "name": "Enabled", - "probability_weight": 60, + "name": "DefaultAdNotificationsPerHour=10/MaximumAdNotificationsPerDay=100/MaximumInlineContentAdsPerHour=12/MaximumInlineContentAdsPerDay=60/AdServingVersion=2/AdPredictorWeights=16.0,8.0,16.0,8.0,0.0,0.0,0.0", + "probability_weight": 20, "parameters": [ { - "name": "should_show_custom_notifications", - "value": "true" + "name": "default_ad_notifications_per_hour", + "value": "10" + }, + { + "name": "maximum_ad_notifications_per_day", + "value": "100" + }, + { + "name": "maximum_inline_content_ads_per_hour", + "value": "12" + }, + { + "name": "maximum_inline_content_ads_per_day", + "value": "60" + }, + { + "name": "ad_serving_version", + "value": "2" + }, + { + "name": "ad_predictor_weights", + "value": "16.0, 8.0, 16.0, 8.0, 0.0, 0.0, 0.0" } ], "feature_association": { - "enable_feature": ["AdNotifications"] + "enable_feature": ["AdServing"] } }, { - "name": "Disabled", - "probability_weight": 0, + "name": "DefaultAdNotificationsPerHour=10/MaximumAdNotificationsPerDay=100/MaximumInlineContentAdsPerHour=12/MaximumInlineContentAdsPerDay=60/AdServingVersion=2/AdPredictorWeights=0.0,0.0,0.0,0.0,16.0,16.0,0.0", + "probability_weight": 20, + "parameters": [ + { + "name": "default_ad_notifications_per_hour", + "value": "10" + }, + { + "name": "maximum_ad_notifications_per_day", + "value": "100" + }, + { + "name": "maximum_inline_content_ads_per_hour", + "value": "12" + }, + { + "name": "maximum_inline_content_ads_per_day", + "value": "60" + }, + { + "name": "ad_serving_version", + "value": "2" + }, + { + "name": "ad_predictor_weights", + "value": "0.0, 0.0, 0.0, 0.0, 16.0, 16.0, 0.0" + } + ], "feature_association": { - "disable_feature": ["AdNotifications"] + "enable_feature": ["AdServing"] } }, { - "name": "Default", - "probability_weight": 40 + "name": "DefaultAdNotificationsPerHour=10/MaximumAdNotificationsPerDay=100/MaximumInlineContentAdsPerHour=12/MaximumInlineContentAdsPerDay=60/AdServingVersion=2/AdPredictorWeights=32.0,16.0,16.0,8.0,4.0,2.0,1.0", + "probability_weight": 20, + "parameters": [ + { + "name": "default_ad_notifications_per_hour", + "value": "10" + }, + { + "name": "maximum_ad_notifications_per_day", + "value": "100" + }, + { + "name": "maximum_inline_content_ads_per_hour", + "value": "12" + }, + { + "name": "maximum_inline_content_ads_per_day", + "value": "60" + }, + { + "name": "ad_serving_version", + "value": "2" + }, + { + "name": "ad_predictor_weights", + "value": "32.0, 16.0, 16.0, 8.0, 4.0, 2.0, 1.0" + } + ], + "feature_association": { + "enable_feature": ["AdServing"] + } } ], "filter": { - "min_version": "91.1.26.37", "channel": ["NIGHTLY", "BETA"], - "platform": ["LINUX"] + "platform": ["WINDOWS", "MAC", "LINUX", "ANDROID"], + "country": ["US", "AU", "CA", "FR", "DE", "IE", "JP", "NZ", "GB"] } }, { - "name": "BraveAds.ShowCustomAdNotificationOnAndroidStudy", + "name": "BraveAds.AdNotificationsStudy", "experiments": [ { - "name": "Enabled", - "probability_weight": 60, + "name": "AdNotificationTimeout=60", + "probability_weight": 25, "parameters": [ { - "name": "should_show_custom_notifications", - "value": "true" + "name": "ad_notification_timeout", + "value": "60" } ], "feature_association": { @@ -408,45 +690,81 @@ } }, { - "name": "Disabled", - "probability_weight": 0, + "name": "AdNotificationTimeout=30", + "probability_weight": 25, + "parameters": [ + { + "name": "ad_notification_timeout", + "value": "30" + } + ], "feature_association": { - "disable_feature": ["AdNotifications"] + "enable_feature": ["AdNotifications"] + } + }, + { + "name": "AdNotificationTimeout=15", + "probability_weight": 25, + "parameters": [ + { + "name": "ad_notification_timeout", + "value": "15" + } + ], + "feature_association": { + "enable_feature": ["AdNotifications"] } }, { "name": "Default", - "probability_weight": 40 + "probability_weight": 25 } ], "filter": { - "min_version": "91.1.26.37", "channel": ["NIGHTLY"], - "platform": ["ANDROID"] + "platform": ["WINDOWS", "MAC", "LINUX"] } }, { - "name": "BraveAds.UserActivityStudy", + "name": "AdRewardsStudy", "experiments": [ { - "name": "Triggers=EMPTY/Threshold=0.0/IdleTimeThreshold=5", + "name": "NextPaymentDay", "probability_weight": 100, "parameters": [ { - "name": "triggers", - "value": "" - }, - { - "name": "threshold", - "value": "0.0" - }, + "name": "next_payment_day", + "value": "7" + } + ], + "feature_association": { + "enable_feature": ["AdRewards"] + } + }, + { + "name": "Default", + "probability_weight": 0 + } + ], + "filter": { + "channel": ["NIGHTLY", "BETA", "RELEASE"], + "platform": ["WINDOWS", "MAC", "LINUX", "ANDROID"] + } + }, + { + "name": "ConversionsStudy", + "experiments": [ + { + "name": "NewDefaultPattern", + "probability_weight": 100, + "parameters": [ { - "name": "idle_time_threshold", - "value": "5" + "name": "conversions_default_conversion_id_pattern", + "value": "" } ], "feature_association": { - "enable_feature": ["UserActivity"] + "enable_feature": ["Conversions"] } }, { @@ -456,24 +774,286 @@ ], "filter": { "channel": ["NIGHTLY", "BETA", "RELEASE"], + "platform": ["WINDOWS", "MAC", "LINUX", "ANDROID"] + } + }, + { + "name": "BraveAds.EpsilonGreedyBanditStudy", + "experiments": [ + { + "name": "Treatment", + "probability_weight": 10, + "feature_association": { + "enable_feature": ["EpsilonGreedyBandit"], + "disable_feature": ["TextClassification"] + }, + "parameters": [ + { + "name": "epsilon_value", + "value": "0.33" + } + ] + }, + { + "name": "Control", + "probability_weight": 10 + }, + { + "name": "Default", + "probability_weight": 80 + } + ], + "filter": { + "channel": ["RELEASE","BETA", "NIGHTLY"], "platform": ["WINDOWS", "MAC", "LINUX", "ANDROID"], - "country": ["US", "AU", "CA", "FR", "DE", "IE", "JP", "NZ", "GB"] + "country": ["GB"] } }, { - "name": "AdServingStudy", + "name": "MacCoreLocationBackendStudy", + "experiments": [ + { + "name": "Enabled", + "probability_weight": 100, + "feature_association": { + "enable_feature": ["MacCoreLocationBackend"] + } + }, + { + "name": "Disabled", + "probability_weight": 0, + "feature_association": { + "disable_feature": ["MacCoreLocationBackend"] + } + }, + { + "name": "Default", + "probability_weight": 0 + } + ], + "filter": { + "min_version": "91.1.26.74", + "channel": ["RELEASE", "BETA", "NIGHTLY"], + "platform": ["MAC"] + } + }, + { + "name": "BraveDebounceStudy", + "experiments": [ + { + "name": "Enabled", + "probability_weight": 100, + "feature_association": { + "enable_feature": ["BraveDebounce"] + } + }, + { + "name": "Disabled", + "probability_weight": 0, + "feature_association": { + "disable_feature": ["BraveDebounce"] + } + }, + { + "name": "Default", + "probability_weight": 0 + } + ], + "filter": { + "min_version": "94.1.32.25", + "channel": ["RELEASE", "BETA", "NIGHTLY"], + "platform": ["WINDOWS", "MAC", "LINUX", "ANDROID"] + } + }, + { + "name": "PartitionConnectionsByNetworkIsolationKeyStudy", + "experiments": [ + { + "name": "Enabled", + "probability_weight": 100, + "feature_association": { + "enable_feature": [ + "PartitionConnectionsByNetworkIsolationKey", + "PartitionExpectCTStateByNetworkIsolationKey", + "PartitionHttpServerPropertiesByNetworkIsolationKey", + "PartitionSSLSessionsByNetworkIsolationKey", + "SplitHostCacheByNetworkIsolationKey" + ] + } + }, + { + "name": "Default", + "probability_weight": 0 + } + ], + "filter": { + "min_version": "94.1.31.51", + "channel": ["NIGHTLY", "BETA"], + "platform": ["WINDOWS", "MAC", "LINUX", "ANDROID"] + } + }, + { + "name": "PartitionConnectionsByNetworkIsolationKeyStudy", + "experiments": [ + { + "name": "Enabled", + "probability_weight": 100, + "feature_association": { + "enable_feature": [ + "PartitionConnectionsByNetworkIsolationKey", + "PartitionExpectCTStateByNetworkIsolationKey", + "PartitionHttpServerPropertiesByNetworkIsolationKey", + "PartitionSSLSessionsByNetworkIsolationKey", + "SplitHostCacheByNetworkIsolationKey" + ] + } + }, + { + "name": "Default", + "probability_weight": 0 + } + ], + "filter": { + "min_version": "94.1.31.51", + "channel": ["RELEASE"], + "platform": ["WINDOWS", "MAC", "LINUX", "ANDROID"] + } + }, + { + "name": "PartitionBlinkMemoryCacheStudy", + "experiments": [ + { + "name": "Enabled", + "probability_weight": 100, + "feature_association": { + "enable_feature": [ + "PartitionBlinkMemoryCache" + ] + } + }, + { + "name": "Default", + "probability_weight": 0 + } + ], + "filter": { + "min_version": "96.1.34.20", + "channel": ["NIGHTLY", "BETA", "RELEASE"], + "platform": ["WINDOWS", "MAC", "LINUX", "ANDROID"] + } + }, + { + "name": "ForceDisableBlinkFeatures", + "experiments": [ + { + "name": "Enabled", + "probability_weight": 100, + "feature_association": { + "disable_feature": [ + "IdleDetection", + "WebNFC", + "WebOTP", + "ComputePressure", + "SignedExchangeSubresourcePrefetch", + "TextFragmentAnchor", + "NavigatorPluginsFixed" + ] + } + }, + { + "name": "Default", + "probability_weight": 0 + } + ], + "filter": { + "min_version": "96.1.34.4", + "channel": ["NIGHTLY", "BETA", "RELEASE"], + "platform": ["WINDOWS", "MAC", "LINUX", "ANDROID"] + } + }, + { + "name": "RequestAdsEnabledApiStudy", "experiments": [ { - "name": "MaximumAdNotificationsPerDay=60", + "name": "Enabled", "probability_weight": 100, + "feature_association": { + "enable_feature": ["RequestAdsEnabledApi"] + } + }, + { + "name": "Disabled", + "probability_weight": 0, + "feature_association": { + "disable_feature": ["RequestAdsEnabledApi"] + } + }, + { + "name": "Default", + "probability_weight": 0 + } + ], + "filter": { + "min_version": "95.1.32.87", + "channel": ["NIGHTLY", "BETA", "RELEASE"], + "platform": ["WINDOWS", "MAC", "LINUX", "ANDROID"] + } + }, + { + "name": "HangWatcher", + "experiments": [ + { + "name": "HangWatcherEnableDumps", + "probability_weight": 50, "parameters": [ { - "name": "maximum_ad_notifications_per_day", - "value": "60" + "name": "ui_thread_log_level", + "value": "2" + }, + { + "name": "io_thread_log_level", + "value": "2" + }, + { + "name": "renderer_process_main_thread_log_level", + "value": "2" + }, + { + "name": "renderer_process_io_thread_log_level", + "value": "2" + }, + { + "name": "utility_process_main_thread_log_level", + "value": "2" + }, + { + "name": "utility_process_io_thread_log_level", + "value": "2" } ], "feature_association": { - "enable_feature": ["AdServing"] + "enable_feature": ["EnableHangWatcher"] + } + }, + { + "name": "Default", + "probability_weight": 50 + } + ], + "filter": { + "channel": ["NIGHTLY"], + "platform": ["WINDOWS", "MAC", "LINUX"], + "min_version": "97.1.36.14" + } + }, + { + "name": "DisableCnameUncloakingForAndroid", + "experiments": [ + { + "name": "Disabled", + "probability_weight": 100, + "feature_association": { + "disable_feature": ["BraveAdblockCnameUncloaking"] } }, { @@ -483,8 +1063,30 @@ ], "filter": { "channel": ["NIGHTLY", "BETA", "RELEASE"], - "platform": ["WINDOWS", "MAC", "LINUX", "ANDROID"], - "country": ["US", "AU", "CA", "FR", "DE", "IE", "JP", "NZ", "GB"] + "platform": ["ANDROID"] + } + }, + { + "name": "NavigationThreadingOptimizationsCompatOldVersions", + "experiments": [ + { + "name": "Disabled", + "probability_weight": 100, + "feature_association": { + "disable_feature": [ + "NavigationThreadingOptimizations" + ] + } + }, + { + "name": "Default", + "probability_weight": 0 + } + ], + "filter": { + "platform": ["WINDOWS", "MAC", "LINUX"], + "channel": ["RELEASE"], + "max_version": "102.1.39.0" } } ] diff --git a/seed/serialize.py b/seed/serialize.py index 29570abc..3f9771c6 100644 --- a/seed/serialize.py +++ b/seed/serialize.py @@ -127,6 +127,12 @@ def serialize_and_save_variations_seed_message(seed_data, path): if 'max_version' in study_data['filter']: study.filter.max_version = study_data['filter']['max_version'] + if 'min_os_version' in study_data['filter']: + study.filter.min_os_version = study_data['filter']['min_os_version'] + + if 'max_os_version' in study_data['filter']: + study.filter.max_os_version = study_data['filter']['max_os_version'] + # Serialize and save with open(path, "wb") as file: file.write(seed.SerializeToString())