Skip to content

Commit acaac29

Browse files
add separate test owner logic
1 parent f74958b commit acaac29

File tree

2 files changed

+11
-4
lines changed

2 files changed

+11
-4
lines changed

dags/sparsity_diffusion_devx/maxtext_moe_tpu_e2e.py

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -77,20 +77,23 @@
7777
"script_name": "tpu/qwen/next/qwen3-next-80b-a3b/2_test_qwen3_next_80b_a3b",
7878
"cluster": XpkClusters.TPU_V5P_128_CLUSTER,
7979
"time_out_in_min": 90,
80+
"owner": test_owner.ROHAN_B,
8081
},
8182
}
8283

8384
unchained_tests = []
8485
for model, test_scripts_details in test_models_tpu.items():
8586
for image in docker_image.keys():
87+
current_owner = test_scripts_details.get("owner", test_owner.SHUNING_J)
88+
8689
training_tpu = gke_config.get_gke_config(
8790
time_out_in_min=test_scripts_details["time_out_in_min"],
8891
test_name=f"{test_name_prefix}_{image}_{model}",
8992
run_model_cmds=(
9093
f"export HF_TOKEN={HF_TOKEN}; export BASE_OUTPUT_PATH=$GCS_OUTPUT; bash tests/end_to_end/{test_scripts_details['script_name']}.sh",
9194
),
9295
docker_image=docker_image[image],
93-
test_owner=test_owner.SHUNING_J,
96+
test_owner=current_owner,
9497
cluster=test_scripts_details["cluster"],
9598
).run_with_quarantine(quarantine_task_group)
9699
unchained_tests.append(training_tpu)
@@ -134,6 +137,7 @@ def convert_checkpoint_and_run_training(
134137
docker_image,
135138
model,
136139
test_scripts_details,
140+
current_owner,
137141
):
138142
with TaskGroup(group_id=test_group_id, prefix_group_id=False) as group:
139143
test_name = f"{test_name_prefix}_{image}_{model}"
@@ -150,7 +154,7 @@ def convert_checkpoint_and_run_training(
150154
f"export BASE_OUTPUT_PATH=$GCS_OUTPUT; bash tests/end_to_end/{test_scripts_details[0]['script_name']}.sh",
151155
),
152156
docker_image=docker_image,
153-
test_owner=test_owner.SHUNING_J,
157+
test_owner=current_owner,
154158
cluster=test_scripts_details[0]["cluster"],
155159
).run(gcs_location=shared_gcs_location)
156160
training_tpu = gke_config.get_gke_config(
@@ -160,7 +164,7 @@ def convert_checkpoint_and_run_training(
160164
f"export BASE_OUTPUT_PATH=$GCS_OUTPUT; bash tests/end_to_end/{test_scripts_details[1]['script_name']}.sh",
161165
),
162166
docker_image=docker_image,
163-
test_owner=test_owner.SHUNING_J,
167+
test_owner=current_owner,
164168
cluster=test_scripts_details[1]["cluster"],
165169
).run(gcs_location=shared_gcs_location)
166170
return conversion_cpu, training_tpu
@@ -170,6 +174,7 @@ def convert_checkpoint_and_run_training(
170174
gcs_subfolder = (
171175
f"{test_owner.Team.JAX_MODELS_AND_PERFORMANCE.value}/maxtext"
172176
)
177+
current_owner = test_scripts_details[0].get("owner", test_owner.SHUNING_J)
173178
for image in docker_image.keys():
174179
test_group_id = "chained_tests" + "_" + model + "_" + image
175180
if QuarantineTests.is_quarantined(test_group_id):
@@ -181,6 +186,7 @@ def convert_checkpoint_and_run_training(
181186
docker_image[image],
182187
model,
183188
test_scripts_details,
189+
current_owner,
184190
)
185191
else:
186192
mode_cpu, mode_tpu = convert_checkpoint_and_run_training(
@@ -190,6 +196,7 @@ def convert_checkpoint_and_run_training(
190196
docker_image[image],
191197
model,
192198
test_scripts_details,
199+
current_owner,
193200
)
194201
tests.append(mode_cpu)
195202
tests.append(mode_tpu)

dags/sparsity_diffusion_devx/qwen3_next_test.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Copyright 2024 Google LLC
1+
# Copyright 2026 Google LLC
22
#
33
# Licensed under the Apache License, Version 2.0 (the "License");
44
# you may not use this file except in compliance with the License.

0 commit comments

Comments
 (0)