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

Centaur slurm #7083

Merged
merged 18 commits into from
Mar 3, 2023
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