Skip to content

Commit 73083a1

Browse files
COMPUTE-1764_no_selector_extra_args
(feat) dx.py - relaxed exclusivity to allow instance type in runtime to allow cluster spec.
1 parent 55b68d5 commit 73083a1

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

src/python/test/test_dxclient.py

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3483,12 +3483,7 @@ def test_dx_run_clone_with_instance_type_selector(self):
34833483
# Verify instanceType override is applied
34843484
assert "instanceType" in cloned_job_desc_3["systemRequirements"]["*"]
34853485
assert cloned_job_desc_3["systemRequirements"]["*"]["instanceType"] == "mem2_hdd2_x4"
3486-
# Verify initialInstanceCount from --instance-count is present
3487-
# Note: Since the applet uses instanceTypeSelector and doesn't define a full clusterSpec,
3488-
# only initialInstanceCount will be present in clusterSpec
3489-
assert "clusterSpec" in cloned_job_desc_3["systemRequirements"]["*"]
3490-
assert "initialInstanceCount" in cloned_job_desc_3["systemRequirements"]["*"]["clusterSpec"]
3491-
assert cloned_job_desc_3["systemRequirements"]["*"]["clusterSpec"]["initialInstanceCount"] == 3
3486+
# Note: When the applet's runSpec doesn't have a clusterSpec defined (only instanceTypeSelector)
34923487

34933488
def test_dx_run_clone(self):
34943489
applet_id = dxpy.api.applet_new({"project": self.project,

0 commit comments

Comments
 (0)