From 498bfb314afc9d587cbac835efef66961eaf8f87 Mon Sep 17 00:00:00 2001 From: Francesco De Martino Date: Wed, 27 Oct 2021 14:32:23 +0200 Subject: [PATCH] [integ-tests] Use c5.xlarge in test_slurm Signed-off-by: Francesco De Martino --- tests/integration-tests/tests/schedulers/test_slurm.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/integration-tests/tests/schedulers/test_slurm.py b/tests/integration-tests/tests/schedulers/test_slurm.py index 1c84740be1..883a8548ac 100644 --- a/tests/integration-tests/tests/schedulers/test_slurm.py +++ b/tests/integration-tests/tests/schedulers/test_slurm.py @@ -65,7 +65,7 @@ def test_slurm(region, pcluster_config_reader, clusters_factory, test_datadir, a _test_slurm_version(remote_command_executor) if supports_impi: - _test_mpi_job_termination(remote_command_executor, test_datadir) + _test_mpi_job_termination(remote_command_executor, test_datadir, instance_type="c5.xlarge") _assert_no_node_in_cluster(region, cluster.cfn_name, slurm_commands) _test_job_dependencies(slurm_commands, region, cluster.cfn_name, scaledown_idletime) @@ -655,7 +655,7 @@ def _terminate_nodes_manually(instance_ids, region): logging.info("Terminated nodes: {}".format(instance_ids)) -def _test_mpi_job_termination(remote_command_executor, test_datadir): +def _test_mpi_job_termination(remote_command_executor, test_datadir, instance_type): """ Test canceling mpirun job will not leave stray processes. @@ -669,7 +669,7 @@ def _test_mpi_job_termination(remote_command_executor, test_datadir): # Submit mpi_job, which runs Intel MPI benchmarks with intelmpi # Leaving 1 vcpu on each node idle so that the process check job can run while mpi_job is running - result = slurm_commands.submit_script(str(test_datadir / "mpi_job.sh")) + result = slurm_commands.submit_script(str(test_datadir / "mpi_job.sh"), constraint=instance_type) job_id = slurm_commands.assert_job_submitted(result.stdout) # Wait for compute node to start and check that mpi processes are started