From 52e68b536cac7e24f6549843afabf13ece1ca9e7 Mon Sep 17 00:00:00 2001 From: Jeremy Fowers Date: Wed, 28 Aug 2024 12:20:55 -0400 Subject: [PATCH] disable flakey slurm tests --- .github/workflows/test_turnkey.yml | 48 +++++++++++++++--------------- 1 file changed, 24 insertions(+), 24 deletions(-) diff --git a/.github/workflows/test_turnkey.yml b/.github/workflows/test_turnkey.yml index 38b5136a..7c21c110 100644 --- a/.github/workflows/test_turnkey.yml +++ b/.github/workflows/test_turnkey.yml @@ -77,31 +77,31 @@ jobs: rm -rf ~/.cache/turnkey pip install -e examples/cli/plugins/example_tool turnkey -i examples/cli/scripts/hello_world.py discover export-pytorch example-plugin-tool benchmark - - name: Install and Start Slurm - if: runner.os != 'Windows' - shell: bash -el {0} - run: | - sudo apt update -y - sudo apt install slurm-wlm -y - cp test/helpers/slurm.conf test/helpers/slurm_modified.conf - sed -i "s/YOUR_HOSTNAME_HERE/$HOSTNAME/" test/helpers/slurm_modified.conf - sudo mv test/helpers/slurm_modified.conf /etc/slurm/slurm.conf - sudo service slurmd start - sudo service slurmctld start - sudo service munge start - - name: Test turnkey on Slurm - if: runner.os != 'Windows' - shell: bash -el {0} - run: | - # Create conda environment for Slurm using srun (sbatch + wait) - export SKIP_REQUIREMENTS_INSTALL="True" - export TORCH_CPU="True" - srun src/turnkeyml/cli/setup_venv.sh + # - name: Install and Start Slurm + # if: runner.os != 'Windows' + # shell: bash -el {0} + # run: | + # sudo apt update -y + # sudo apt install slurm-wlm -y + # cp test/helpers/slurm.conf test/helpers/slurm_modified.conf + # sed -i "s/YOUR_HOSTNAME_HERE/$HOSTNAME/" test/helpers/slurm_modified.conf + # sudo mv test/helpers/slurm_modified.conf /etc/slurm/slurm.conf + # sudo service slurmd start + # sudo service slurmctld start + # sudo service munge start + # - name: Test turnkey on Slurm + # if: runner.os != 'Windows' + # shell: bash -el {0} + # run: | + # # Create conda environment for Slurm using srun (sbatch + wait) + # export SKIP_REQUIREMENTS_INSTALL="True" + # export TORCH_CPU="True" + # srun src/turnkeyml/cli/setup_venv.sh - # Run tests on Slurm - export TURNKEY_SLURM_USE_DEFAULT_MEMORY="True" - turnkey -i models/selftest/linear.py --use-slurm --cache-dir local_cache discover export-pytorch - bash test/helpers/check_slurm_output.sh slurm-2.out + # # Run tests on Slurm + # export TURNKEY_SLURM_USE_DEFAULT_MEMORY="True" + # turnkey -i models/selftest/linear.py --use-slurm --cache-dir local_cache discover export-pytorch + # bash test/helpers/check_slurm_output.sh slurm-2.out # Below tests are commented out as the GitHub runner runs out of space installing the requirements # - name: Check installation of requirements.txt and their compatibility with turnkey