# Copyright 2023 The Chromium Authors # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. """Variant declarations Variants are used to expand tests within a matrix compound suite into multiple tests and applying variant-specific modifications to the tests. """ load("@chromium-luci//targets.star", "targets") targets.variant( name = "AMD_RADEON_RX_5500_XT", identifier = "AMD Radeon RX 5500 XT", mixins = [ "amd_radeon_rx_5500_xt", ], ) targets.variant( name = "CHANNEL_BETA", identifier = "Beta Channel", args = [ "--channel=beta", ], ) targets.variant( name = "CHANNEL_DEV", identifier = "Dev Channel", args = [ "--channel=dev", ], ) targets.variant( name = "CHANNEL_STABLE", identifier = "Stable Channel", args = [ "--channel=stable", ], ) targets.variant( name = "CROS_LKGM", identifier = "LKGM", skylab = targets.skylab( use_lkgm = True, ), ) targets.variant( name = "CROS_JACUZZI_RELEASE_LKGM", identifier = "JACUZZI_RELEASE_LKGM", skylab = targets.skylab( cros_board = "jacuzzi", use_lkgm = True, ), ) targets.variant( name = "CROS_GPU_BRYA_RELEASE_LKGM", identifier = "GPU_BRYA_RELEASE_LKGM", skylab = targets.skylab( cros_board = "brya", dut_pool = "chrome-gpu", use_lkgm = True, ), ) targets.variant( name = "CROS_GPU_CORSOLA_RELEASE_LKGM", identifier = "GPU_CORSOLA_RELEASE_LKGM", skylab = targets.skylab( cros_board = "corsola", dut_pool = "chrome-gpu", use_lkgm = True, ), ) targets.variant( name = "CROS_GPU_SKYRIM_RELEASE_LKGM", identifier = "GPU_SKYRIM_RELEASE_LKGM", skylab = targets.skylab( cros_board = "skyrim", dut_pool = "chrome-gpu", use_lkgm = True, ), ) targets.variant( name = "DISABLE_FIELD_TRIAL_CONFIG", identifier = "Disable Field Trial Config", args = [ "--disable-field-trial-config", "--webview-verbose-logging", ], ) targets.variant( name = "DISABLE_FIELD_TRIAL_CONFIG_WEBVIEW_COMMANDLINE", identifier = "Disable Field Trial Config", args = [ "--webview-command-line-arg=--disable-field-trial-config", "--webview-command-line-arg=--webview-verbose-logging", ], ) targets.variant( name = "SINGLE_GROUP_PER_STUDY_PREFER_EXISTING_BEHAVIOR", identifier = "Single Group Per Study Prefer Existing Behavior Field Trial Config", args = [ "--variations-test-seed-path=../../components/variations/test_data/cipd/single_group_per_study_prefer_existing_behavior/seed.json", "--accept-empty-variations-seed-signature", "--webview-verbose-logging", "--disable-field-trial-config", "--fake-variations-channel=stable", ], ) targets.variant( name = "SINGLE_GROUP_PER_STUDY_PREFER_NEW_BEHAVIOR", identifier = "Single Group Per Study Prefer New Behavior Field Trial Config", args = [ "--variations-test-seed-path=../../components/variations/test_data/cipd/single_group_per_study_prefer_new_behavior/seed.json", "--accept-empty-variations-seed-signature", "--webview-verbose-logging", "--disable-field-trial-config", "--fake-variations-channel=stable", ], ) targets.variant( name = "SINGLE_GROUP_PER_STUDY_PREFER_EXISTING_BEHAVIOR_WEBVIEW_COMMANDLINE", identifier = "Single Group Per Study Prefer Existing Behavior Field Trial Config", args = [ "--webview-variations-test-seed-path=../../components/variations/test_data/cipd/single_group_per_study_prefer_existing_behavior/seed.json", "--webview-command-line-arg=--accept-empty-variations-seed-signature", "--webview-command-line-arg=--webview-verbose-logging", "--webview-command-line-arg=--disable-field-trial-config", "--webview-command-line-arg=--fake-variations-channel=stable", ], ) targets.variant( name = "SINGLE_GROUP_PER_STUDY_PREFER_NEW_BEHAVIOR_WEBVIEW_COMMANDLINE", identifier = "Single Group Per Study Prefer New Behavior Field Trial Config", args = [ "--webview-variations-test-seed-path=../../components/variations/test_data/cipd/single_group_per_study_prefer_new_behavior/seed.json", "--webview-command-line-arg=--accept-empty-variations-seed-signature", "--webview-command-line-arg=--webview-verbose-logging", "--webview-command-line-arg=--disable-field-trial-config", "--webview-command-line-arg=--fake-variations-channel=stable", ], ) targets.variant( name = "INTEL_UHD_630_OR_770", identifier = "Intel UHD 630 or 770", mixins = [ "intel_uhd_630_or_770", ], ) targets.variant( name = "IPHONE_13", identifier = "iPhone 13", swarming = targets.swarming( dimensions = { "device": "iPhone14,5", "device_status": "available", }, ), ) targets.variant( name = "IPHONE_15_PRO_18", identifier = "iPhone 15 Pro 18", swarming = targets.swarming( dimensions = { "os": "iOS-18", "device": "iPhone16,1", "cpu": "arm64", }, ), ) targets.variant( name = "LINUX_INTEL_UHD_630_STABLE", identifier = "UHD 630", mixins = [ "linux_intel_uhd_630_stable", ], ) targets.variant( name = "LINUX_NVIDIA_GTX_1660_STABLE", identifier = "GTX 1660", mixins = [ "linux_nvidia_gtx_1660_stable", ], ) targets.variant( name = "MAC_MINI_INTEL_GPU_STABLE", identifier = "8086:3e9b", mixins = [ "mac_mini_intel_gpu_stable", ], ) targets.variant( name = "MAC_RETINA_AMD_GPU_STABLE", identifier = "1002:7340", mixins = [ "mac_retina_amd_gpu_stable", ], ) targets.variant( name = "NVIDIA_GEFORCE_GTX_1660", identifier = "NVIDIA GeForce GTX 1660", mixins = [ "nvidia_geforce_gtx_1660", ], ) targets.variant( name = "SIM_APPLE_TV_4K_3RD_GENERATION_26_0", identifier = "Apple TV 4K (3rd generation) 26.0", mixins = [ "tvos_runtime_cache_26_0", ], args = [ "--platform", "Apple TV 4K (3rd generation)", "--version", "26.0", ], ) targets.variant( name = "SIM_IPAD_AIR_5TH_GEN_18_5", identifier = "iPad Air (5th generation) 18.5", mixins = [ "ios_runtime_cache_18_5", "use-ios-simulator-cache", ], args = [ "--platform", "iPad Air (5th generation)", "--version", "18.5", ], ) targets.variant( name = "SIM_IPAD_AIR_6TH_GEN_18_5", identifier = "iPad Air (6th generation) 18.5", mixins = [ "ios_runtime_cache_18_5", "use-ios-simulator-cache", ], args = [ "--platform", "iPad Air 11-inch (M2)", "--version", "18.5", ], ) targets.variant( name = "SIM_IPAD_AIR_6TH_GEN_26_5", identifier = "iPad Air (6th generation) 26.5", mixins = [ "ios_runtime_cache_26_5", "use-ios-simulator-cache", ], args = [ "--platform", "iPad Air 11-inch (M2)", "--version", "26.5", ], ) targets.variant( name = "SIM_IPAD_AIR_6TH_GEN_27_0", identifier = "iPad Air (6th generation) 27.0", mixins = [ "ios_runtime_cache_27_0", "use-ios-simulator-cache", ], args = [ "--platform", "iPad Air 11-inch (M2)", "--version", "27.0", ], ) targets.variant( name = "SIM_IPAD_A16_27_0", identifier = "iPad (A16) 27.0", mixins = [ "ios_runtime_cache_27_0", "use-ios-simulator-cache", ], args = [ "--platform", "iPad (A16)", "--version", "27.0", ], ) targets.variant( name = "SIM_IPAD_PRO_7TH_GEN_18_5", identifier = "iPad Pro 13-inch (M4) 18.5", mixins = [ "ios_runtime_cache_18_5", "use-ios-simulator-cache", ], args = [ "--platform", "iPad Pro 13-inch (M4)", "--version", "18.5", ], ) targets.variant( name = "SIM_IPAD_PRO_7TH_GEN_26_5", identifier = "iPad Pro 13-inch (M4) 26.5", mixins = [ "ios_runtime_cache_26_5", "use-ios-simulator-cache", ], args = [ "--platform", "iPad Pro 13-inch (M4)", "--version", "26.5", ], ) targets.variant( name = "SIM_IPAD_10TH_GEN_18_5", identifier = "iPad (10th generation) 18.5", mixins = [ "ios_runtime_cache_18_5", "use-ios-simulator-cache", ], args = [ "--platform", "iPad (10th generation)", "--version", "18.5", ], ) targets.variant( name = "SIM_IPAD_10TH_GEN_26_5", identifier = "iPad (10th generation) 26.5", mixins = [ "ios_runtime_cache_26_5", "use-ios-simulator-cache", ], args = [ "--platform", "iPad (10th generation)", "--version", "26.5", ], ) targets.variant( name = "SIM_IPHONE_14_18_5", identifier = "iPhone 14 18.5", mixins = [ "ios_runtime_cache_18_5", "use-ios-simulator-cache", ], args = [ "--platform", "iPhone 14", "--version", "18.5", ], ) targets.variant( name = "SIM_IPHONE_15_26_5", identifier = "iPhone 15 26.5", mixins = [ "ios_runtime_cache_26_5", "use-ios-simulator-cache", ], args = [ "--platform", "iPhone 15", "--version", "26.5", ], ) targets.variant( name = "SIM_IPHONE_15_18_5", identifier = "iPhone 15 18.5", mixins = [ "ios_runtime_cache_18_5", "use-ios-simulator-cache", ], args = [ "--platform", "iPhone 15", "--version", "18.5", ], ) targets.variant( name = "SIM_IPHONE_16_26_5", identifier = "iPhone 16 26.5", mixins = [ "ios_runtime_cache_26_5", "use-ios-simulator-cache", ], args = [ "--platform", "iPhone 16", "--version", "26.5", ], ) targets.variant( name = "SIM_IPHONE_16_27_0", identifier = "iPhone 16 27.0", mixins = [ "ios_runtime_cache_27_0", "use-ios-simulator-cache", ], args = [ "--platform", "iPhone 16", "--version", "27.0", ], ) targets.variant( name = "SIM_IPHONE_14_PLUS_18_5", identifier = "iPhone 14 Plus 18.5", mixins = [ "ios_runtime_cache_18_5", "use-ios-simulator-cache", ], args = [ "--platform", "iPhone 14 Plus", "--version", "18.5", ], ) targets.variant( name = "SIM_IPHONE_16_PLUS_26_5", identifier = "iPhone 16 Plus 26.5", mixins = [ "ios_runtime_cache_26_5", "use-ios-simulator-cache", ], args = [ "--platform", "iPhone 16 Plus", "--version", "26.5", ], ) targets.variant( name = "SIM_IPHONE_15_PRO_MAX_18_5", identifier = "iPhone 15 Pro Max 18.5", mixins = [ "ios_runtime_cache_18_5", "use-ios-simulator-cache", ], args = [ "--platform", "iPhone 15 Pro Max", "--version", "18.5", ], ) targets.variant( name = "SIM_IPHONE_SE_3RD_GEN_18_5", identifier = "iPhone SE (3rd generation) 18.5", mixins = [ "ios_runtime_cache_18_5", "use-ios-simulator-cache", ], args = [ "--platform", "iPhone SE (3rd generation)", "--version", "18.5", ], ) targets.variant( name = "SIM_IPHONE_SE_3RD_GEN_26_5", identifier = "iPhone SE (3rd generation) 26.5", mixins = [ "ios_runtime_cache_26_5", "use-ios-simulator-cache", ], args = [ "--platform", "iPhone SE (3rd generation)", "--version", "26.5", ], ) targets.variant( name = "SIM_IPHONE_SE_3RD_GEN_27_0", identifier = "iPhone SE (3rd generation) 27.0", mixins = [ "ios_runtime_cache_27_0", "use-ios-simulator-cache", ], args = [ "--platform", "iPhone SE (3rd generation)", "--version", "27.0", ], ) targets.variant( name = "WEBVIEW_FULL_CTS_TESTS", identifier = "full_mode", swarming = targets.swarming( shards = 2, ), ) targets.variant( name = "WEBVIEW_INSTANT_CTS_TESTS", identifier = "instant_mode", args = [ "--exclude-annotation", "AppModeFull", "--test-apk-as-instant", ], ) targets.variant( name = "WIN10_INTEL_UHD_630_STABLE", identifier = "8086:9bc5", mixins = [ "swarming_containment_auto", "win10_intel_uhd_630_stable", ], ) targets.variant( name = "WIN10_NVIDIA_GTX_1660_STABLE", identifier = "10de:2184", mixins = [ "win10_nvidia_gtx_1660_stable", ], )