Skip to content

Commit

Permalink
Centaur slurm (#7083)
Browse files Browse the repository at this point in the history
  • Loading branch information
THWiseman authored Mar 3, 2023
1 parent b9b1ade commit ce68a47
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 9 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/integration_tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,9 @@ jobs:
friendly_name: Centaur Engine Upgrade Local with MySQL 5.7
- build_type: referenceDiskManifestBuilderApp
friendly_name: Reference Disk Manifest Builder App
- build_type: centaurSlurm
build_mysql: 5.7
friendly_name: "Centaur Slurm with MySQL 5.7"
name: ${{ matrix.friendly_name }}
env:
BUILD_NAME: ${{ matrix.build_type }}
Expand Down
3 changes: 0 additions & 3 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,9 +47,6 @@ env:
- >-
BUILD_TYPE=centaurPapiV2beta
BUILD_MYSQL=5.7
- >-
BUILD_TYPE=centaurSlurm
BUILD_MYSQL=5.7
- >-
BUILD_TYPE=centaurTes
BUILD_MYSQL=5.7
Expand Down
14 changes: 8 additions & 6 deletions src/ci/bin/test_slurm.inc.sh
Original file line number Diff line number Diff line change
Expand Up @@ -21,21 +21,23 @@ cromwell::build::slurm::setup_slurm_environment() {
# https://slurm.schedmd.com/
sudo apt-get update

# Try the Lawrence Livermore National Laboratory (LLNL) version first
sudo apt-get install -y slurm-llnl || sudo apt-get install -y slurm-wlm
sudo apt-get install -y slurm-wlm
# As an alternative to 'slurm-wlm', you may also try 'slurm-llnl'.
# If you use 'slurm-llnl', change the below tee path to '/etc/slurm-llnl/slurm.conf'
# For reasons that are unclear, slurm-llnl doesn't work in Github Actions, and slurm-wlm doesn't work in Travis.
# We transitioned from slurm-llnl to slurm-wlm when moving from Travis to Github Actions.
# See the PR associated with ticket WX-888.

# Create various directories used by slurm
sudo mkdir -p /etc/slurm-llnl
sudo mkdir -p /var/run/slurm-llnl
sudo mkdir -p /var/run/munge
sudo mkdir -p /var/spool/slurmd

# A mash of configure-until-it-runs. Feel free to PR suggestions/fixes
# A mash of configure-until-it-runs. Feel free to PR suggestions/fixes.
# https://slurm.schedmd.com/tutorials.html
# https://slurm.schedmd.com/configurator.html
# https://slurm.schedmd.com/slurm.conf.html
# https://slurm.schedmd.com/quickstart_admin.html
cat <<SLURM_CONF | sudo tee /etc/slurm-llnl/slurm.conf >/dev/null
cat <<SLURM_CONF | sudo tee /etc/slurm/slurm.conf >/dev/null
ClusterName=localhost
ControlMachine=localhost
NodeName=localhost
Expand Down

0 comments on commit ce68a47

Please sign in to comment.