From 241b6b7020fd66ec5e8c94bb7a7b2e299a227de2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?H=C3=A5vard=20Berland?= Date: Thu, 23 Jan 2025 12:16:51 +0100 Subject: [PATCH] Install correct dependency and adjust slurm config Dramatic speedup in test time (~10-fold) --- .github/workflows/test_ert_with_slurm.yml | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/.github/workflows/test_ert_with_slurm.yml b/.github/workflows/test_ert_with_slurm.yml index e90d430aaac..4c355ee5e84 100644 --- a/.github/workflows/test_ert_with_slurm.yml +++ b/.github/workflows/test_ert_with_slurm.yml @@ -34,7 +34,7 @@ jobs: run: | set -e - sudo apt install slurmd slurmctld -y + sudo apt install libpmix-dev slurmd slurmctld -y sudo mkdir /var/spool/slurm sudo chown slurm /var/spool/slurm @@ -43,6 +43,7 @@ jobs: ClusterName=localcluster SlurmUser=slurm SlurmctldHost=localhost + SchedulerType=sched/builtin # Avoid default backfill scheduler which adds delays SelectType=select/cons_tres # Select nodes based on consumable resources SelectTypeParameters=CR_Core # Cores are the consumable resource StateSaveLocation=/var/spool/slurm @@ -59,12 +60,13 @@ jobs: sudo mv slurm.conf /etc/slurm/ sudo systemctl start slurmd # The compute node slurm daemon sudo systemctl start slurmctld # The slurm controller daemon - + sleep 1 systemctl status slurmd systemctl status slurmctld # Show partition and node information configured: sinfo + scontrol show nodes - name: Verify slurm cluster works # Timeout is set low to catch a misconfigured cluster where srun will hang. @@ -77,7 +79,7 @@ jobs: run: | set -e export _ERT_TESTS_ALTERNATIVE_QUEUE=AlternativeQ - pytest tests/ert/unit_tests/scheduler/test_{generic,slurm}_driver.py --slurm \ + pytest tests/ert/unit_tests/scheduler/test_{generic,slurm}_driver.py -sv --slurm \ -n 8 --durations=10 -k "not (LsfDriver or LocalDriver or OpenPBSDriver)" scontrol show job