feat: add delete command, make cancel abort for k8s (#1156) #1798
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Slurm Integration Tests | |
| on: | |
| push: | |
| branches: | |
| - main | |
| pull_request: | |
| env: | |
| # slurm tag should be one of https://github.com/SchedMD/slurm/tags | |
| SLURM_TAG: slurm-23-11-11-1 | |
| SLURM_VERSION: 23.11.11 | |
| jobs: | |
| slurm: | |
| runs-on: linux.24_04.4x | |
| permissions: | |
| id-token: write | |
| contents: read | |
| steps: | |
| - name: Setup Python | |
| uses: actions/setup-python@v2 | |
| with: | |
| python-version: "3.10" | |
| architecture: x64 | |
| - name: Checkout TorchX | |
| uses: actions/checkout@v2 | |
| - name: Checkout slurm-docker-cluster | |
| run: | | |
| set -ex | |
| # TODO: switch to trunk once https://github.com/giovtorres/slurm-docker-cluster/pull/29 lands | |
| git clone https://github.com/d4l3k/slurm-docker-cluster.git | |
| - name: Pull docker containers | |
| run: | | |
| set -ex | |
| cd slurm-docker-cluster | |
| docker compose pull --ignore-pull-failures | |
| continue-on-error: true | |
| # cache layers to avoid rebuilding slurm | |
| - uses: satackey/[email protected] | |
| continue-on-error: true | |
| - name: Build slurm | |
| run: | | |
| set -ex | |
| cd slurm-docker-cluster | |
| docker build -t slurm-docker-cluster:$SLURM_VERSION . | |
| - name: Start slurm | |
| run: | | |
| set -ex | |
| cd slurm-docker-cluster | |
| IMAGE_TAG=$SLURM_VERSION docker compose up --detach | |
| - name: Install Dependencies | |
| run: | | |
| set -ex | |
| pip install wheel | |
| - name: Run Slurm Integration Tests | |
| run: | | |
| set -e | |
| mkdir -p ~/.ssh | |
| echo "$SLURM_KNOWN_HOST" >> ~/.ssh/known_hosts | |
| scripts/slurmdockerint.sh |