Skip to content

Commit 57d21be

Browse files
committed
[Test] Use flexible instance types for build_image compute queue
The cluster-creation step only submits 'sbatch -N 2 --wrap=uptime' and makes no GPU/nvidia runtime assertions, so the queue does not need to be pinned to the single tested (GPU) instance type. Render the ComputeResource over flexible_instance_types, which the harness derives from the tested instance plus architecture-matched siblings (same arch, vCPUs, threads, EFA, and GPU presence via get_similar_instance_types). This further widens capacity fallback beyond the multi-subnet change to reduce ICE failures (V2280793096) while still satisfying the flexible-instance validators.
1 parent 16ab741 commit 57d21be

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

tests/integration-tests/tests/createami/test_createami/test_build_image/pcluster.config.yaml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,4 +21,6 @@ Scheduling:
2121
ComputeResources:
2222
- Name: compute-resource1
2323
Instances:
24-
- InstanceType: {{ instance }}
24+
{% for instance_type in flexible_instance_types %}
25+
- InstanceType: {{ instance_type }}
26+
{% endfor %}

0 commit comments

Comments
 (0)