Skip to content

Commit 864e9ba

Browse files
committed
Separate model and feature support matrices by category (#1100)
Signed-off-by: Teresa Chen <boe20211@gmail.com>
1 parent b555d6b commit 864e9ba

File tree

2 files changed

+11
-7
lines changed

2 files changed

+11
-7
lines changed

.buildkite/pipeline_generation/add_feature_to_ci.py

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,8 @@ class FeatureCategory(str, Enum):
1313
FEATURE_SUPPORT = "feature support matrix"
1414
KERNEL_SUPPORT = "kernel support matrix"
1515

16-
def generate_from_template(feature_name: str, feature_category: str, queue: str) -> None:
16+
def generate_from_template(feature_name: str,
17+
feature_category: str, queue: str) -> None:
1718
"""
1819
Generates a buildkite yml file from feature template.
1920
Args:
@@ -97,10 +98,11 @@ def main():
9798
help="The name of the agent queue to use (ex: 'tpu_v6e_queue')")
9899
parser.add_argument(
99100
'--category',
100-
choices=[FeatureCategory.FEATURE_SUPPORT.value, FeatureCategory.KERNEL_SUPPORT.value],
101+
choices=[
102+
FeatureCategory.FEATURE_SUPPORT.value, FeatureCategory.KERNEL_SUPPORT.value
103+
],
101104
default='feature support matrix',
102-
help=
103-
'[OPTIONAL] Category of feature. (Default: feature support matrix)'
105+
help='[OPTIONAL] Category of feature. (Default: feature support matrix)'
104106
)
105107
args = parser.parse_args()
106108
generate_from_template(feature_name=args.feature_name,

.buildkite/pipeline_generation/add_model_to_ci.py

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,8 @@ class ModelCategory(str, Enum):
2323
}
2424

2525

26-
def generate_from_template(model_name: str, queue: str,
27-
model_type: str, model_category: str) -> None:
26+
def generate_from_template(model_name: str, queue: str, model_type: str,
27+
model_category: str) -> None:
2828
"""
2929
Generates a buildkite yml file from model template.
3030
Args:
@@ -119,7 +119,9 @@ def main():
119119
)
120120
parser.add_argument(
121121
'--category',
122-
choices=[ModelCategory.TEXT_ONLY.value, ModelCategory.MULTIMODEL.value],
122+
choices=[
123+
ModelCategory.TEXT_ONLY.value, ModelCategory.MULTIMODEL.value
124+
],
123125
default='text-only',
124126
help=
125127
'[OPTIONAL] Category of model. Must be "text-only" or "multimodel". (Default: text-only)'

0 commit comments

Comments
 (0)