Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adapt Slurm test setup to Ubuntu 24.04 #9823

Merged
merged 1 commit into from
Jan 22, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 10 additions & 2 deletions .github/workflows/test_ert_with_slurm.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jobs:
test-ert-on-slurm:
name: Run ert tests
timeout-minutes: 20
runs-on: ubuntu-22.04
runs-on: ubuntu-24.04

steps:
- uses: actions/checkout@v4
Expand All @@ -36,11 +36,16 @@ jobs:

sudo apt install slurmd slurmctld -y

sudo mkdir /var/spool/slurm
sudo chown slurm /var/spool/slurm

cat <<EOF > slurm.conf
ClusterName=localcluster
SlurmUser=slurm
SlurmctldHost=localhost
SelectType=select/cons_res # Select nodes based on consumable resources
SelectType=select/cons_tres # Select nodes based on consumable resources
SelectTypeParameters=CR_Core # Cores are the consumable resource
StateSaveLocation=/var/spool/slurm
ProctrackType=proctrack/linuxproc # Use /proc to track processes
PartitionName=LocalQ Nodes=ALL Default=YES MaxTime=INFINITE State=UP
PartitionName=AlternativeQ Nodes=ALL Default=YES MaxTime=INFINITE State=UP
Expand All @@ -55,6 +60,9 @@ jobs:
sudo systemctl start slurmd # The compute node slurm daemon
sudo systemctl start slurmctld # The slurm controller daemon

systemctl status slurmd
systemctl status slurmctld

# Show partition and node information configured:
sinfo

Expand Down
Loading