Skip to content

Commit

Permalink
Add regression files for test_code
Browse files Browse the repository at this point in the history
Signed-off-by: Fabrice Normandin <[email protected]>
  • Loading branch information
lebrice committed Apr 18, 2024
1 parent 07741bf commit c38a972
Show file tree
Hide file tree
Showing 8 changed files with 101 additions and 0 deletions.
11 changes: 11 additions & 0 deletions tests/integration/test_code_command/test_code_beluga__salloc_.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
Checking disk quota on $HOME...
Disk usage: X / LIMIT GiB and X / LIMIT files
Installing VSCode extensions that are on the local machine on beluga in the background.
(beluga) $ cd $SCRATCH && salloc --wckey=milatools_test --account=SLURM_ACCOUNT --nodes=1 --ntasks=1 --cpus-per-task=1 --mem=1G --time=0:05:00 --oversubscribe --job-name=mila-code
Waiting for job JOB_ID to start.
(local) echo --new-window --wait --remote ssh-remote+COMPUTE_NODE $HOME/bob
--new-window --wait --remote ssh-remote+COMPUTE_NODE $HOME/bob

The editor was closed. Reopen it with <Enter> or terminate the process with <Ctrl+C> (maybe twice).
(beluga) $ scancel JOB_ID
Ended session on 'COMPUTE_NODE'
16 changes: 16 additions & 0 deletions tests/integration/test_code_command/test_code_beluga__sbatch_.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
Checking disk quota on $HOME...
Disk usage: X / LIMIT GiB and X / LIMIT files
Installing VSCode extensions that are on the local machine on beluga in the background.
(beluga) $ cd $SCRATCH && sbatch --parsable --wckey=milatools_test --account=SLURM_ACCOUNT --nodes=1 --ntasks=1 --cpus-per-task=1 --mem=1G --time=0:05:00 --oversubscribe --job-name=mila-code --wrap
'srun sleep 7d'
JOB_ID

(local) echo --new-window --wait --remote ssh-remote+COMPUTE_NODE $HOME/bob
--new-window --wait --remote ssh-remote+COMPUTE_NODE $HOME/bob

The editor was closed. Reopen it with <Enter> or terminate the process with <Ctrl+C> (maybe twice).
This allocation is persistent and is still active.
To reconnect to this job, run the following:
mila code $HOME/bob --cluster beluga --job JOB_ID
To kill this allocation:
ssh beluga scancel JOB_ID
10 changes: 10 additions & 0 deletions tests/integration/test_code_command/test_code_cedar__salloc_.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
Checking disk quota on $HOME...
Disk usage: X / LIMIT GiB and X / LIMIT files
(cedar) $ cd $SCRATCH && salloc --wckey=milatools_test --account=SLURM_ACCOUNT --nodes=1 --ntasks=1 --cpus-per-task=1 --mem=1G --time=0:05:00 --oversubscribe --job-name=mila-code
Waiting for job JOB_ID to start.
(local) echo --new-window --wait --remote ssh-remote+COMPUTE_NODE $HOME/bob
--new-window --wait --remote ssh-remote+COMPUTE_NODE $HOME/bob

The editor was closed. Reopen it with <Enter> or terminate the process with <Ctrl+C> (maybe twice).
(cedar) $ scancel JOB_ID
Ended session on 'COMPUTE_NODE'
15 changes: 15 additions & 0 deletions tests/integration/test_code_command/test_code_cedar__sbatch_.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
Checking disk quota on $HOME...
Disk usage: X / LIMIT GiB and X / LIMIT files
(cedar) $ cd $SCRATCH && sbatch --parsable --wckey=milatools_test --account=SLURM_ACCOUNT --nodes=1 --ntasks=1 --cpus-per-task=1 --mem=1G --time=0:05:00 --oversubscribe --job-name=mila-code --wrap
'srun sleep 7d'
JOB_ID

(local) echo --new-window --wait --remote ssh-remote+COMPUTE_NODE $HOME/bob
--new-window --wait --remote ssh-remote+COMPUTE_NODE $HOME/bob

The editor was closed. Reopen it with <Enter> or terminate the process with <Ctrl+C> (maybe twice).
This allocation is persistent and is still active.
To reconnect to this job, run the following:
mila code $HOME/bob --cluster cedar --job JOB_ID
To kill this allocation:
ssh cedar scancel JOB_ID
10 changes: 10 additions & 0 deletions tests/integration/test_code_command/test_code_graham__salloc_.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
Checking disk quota on $HOME...
Installing VSCode extensions that are on the local machine on graham in the background.
(graham) $ cd $SCRATCH && salloc --wckey=milatools_test --account=SLURM_ACCOUNT --nodes=1 --ntasks=1 --cpus-per-task=1 --mem=1G --time=0:05:00 --oversubscribe --job-name=mila-code
Waiting for job JOB_ID to start.
(local) echo --new-window --wait --remote ssh-remote+COMPUTE_NODE $HOME/bob
--new-window --wait --remote ssh-remote+COMPUTE_NODE $HOME/bob

The editor was closed. Reopen it with <Enter> or terminate the process with <Ctrl+C> (maybe twice).
(graham) $ scancel JOB_ID
Ended session on 'COMPUTE_NODE'
15 changes: 15 additions & 0 deletions tests/integration/test_code_command/test_code_graham__sbatch_.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
Checking disk quota on $HOME...
Installing VSCode extensions that are on the local machine on graham in the background.
(graham) $ cd $SCRATCH && sbatch --parsable --wckey=milatools_test --account=SLURM_ACCOUNT --nodes=1 --ntasks=1 --cpus-per-task=1 --mem=1G --time=0:05:00 --oversubscribe --job-name=mila-code --wrap
'srun sleep 7d'
JOB_ID

(local) echo --new-window --wait --remote ssh-remote+COMPUTE_NODE $HOME/bob
--new-window --wait --remote ssh-remote+COMPUTE_NODE $HOME/bob

The editor was closed. Reopen it with <Enter> or terminate the process with <Ctrl+C> (maybe twice).
This allocation is persistent and is still active.
To reconnect to this job, run the following:
mila code $HOME/bob --cluster graham --job JOB_ID
To kill this allocation:
ssh graham scancel JOB_ID
10 changes: 10 additions & 0 deletions tests/integration/test_code_command/test_code_mila__salloc_.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
Checking disk quota on $HOME...
Disk usage: X / LIMIT GiB and X / LIMIT files
(mila) $ salloc --wckey=milatools_test --account=SLURM_ACCOUNT --nodes=1 --ntasks=1 --cpus-per-task=1 --mem=1G --time=0:05:00 --oversubscribe --job-name=mila-code
Waiting for job JOB_ID to start.
(local) echo --new-window --wait --remote ssh-remote+COMPUTE_NODE $HOME/bob
--new-window --wait --remote ssh-remote+COMPUTE_NODE $HOME/bob

The editor was closed. Reopen it with <Enter> or terminate the process with <Ctrl+C> (maybe twice).
(mila) $ scancel JOB_ID
Ended session on 'COMPUTE_NODE'
14 changes: 14 additions & 0 deletions tests/integration/test_code_command/test_code_mila__sbatch_.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
Checking disk quota on $HOME...
Disk usage: X / LIMIT GiB and X / LIMIT files
(mila) $ sbatch --parsable --wckey=milatools_test --account=SLURM_ACCOUNT --nodes=1 --ntasks=1 --cpus-per-task=1 --mem=1G --time=0:05:00 --oversubscribe --job-name=mila-code --wrap 'srun sleep 7d'
JOB_ID

(local) echo --new-window --wait --remote ssh-remote+COMPUTE_NODE $HOME/bob
--new-window --wait --remote ssh-remote+COMPUTE_NODE $HOME/bob

The editor was closed. Reopen it with <Enter> or terminate the process with <Ctrl+C> (maybe twice).
This allocation is persistent and is still active.
To reconnect to this job, run the following:
mila code $HOME/bob --job JOB_ID
To kill this allocation:
ssh mila scancel JOB_ID

0 comments on commit c38a972

Please sign in to comment.