From c38a972a223edb54985148d8ecfae54728a14c72 Mon Sep 17 00:00:00 2001 From: Fabrice Normandin Date: Fri, 12 Apr 2024 15:13:24 -0400 Subject: [PATCH] Add regression files for test_code Signed-off-by: Fabrice Normandin --- .../test_code_beluga__salloc_.txt | 11 +++++++++++ .../test_code_beluga__sbatch_.txt | 16 ++++++++++++++++ .../test_code_cedar__salloc_.txt | 10 ++++++++++ .../test_code_cedar__sbatch_.txt | 15 +++++++++++++++ .../test_code_graham__salloc_.txt | 10 ++++++++++ .../test_code_graham__sbatch_.txt | 15 +++++++++++++++ .../test_code_mila__salloc_.txt | 10 ++++++++++ .../test_code_mila__sbatch_.txt | 14 ++++++++++++++ 8 files changed, 101 insertions(+) create mode 100644 tests/integration/test_code_command/test_code_beluga__salloc_.txt create mode 100644 tests/integration/test_code_command/test_code_beluga__sbatch_.txt create mode 100644 tests/integration/test_code_command/test_code_cedar__salloc_.txt create mode 100644 tests/integration/test_code_command/test_code_cedar__sbatch_.txt create mode 100644 tests/integration/test_code_command/test_code_graham__salloc_.txt create mode 100644 tests/integration/test_code_command/test_code_graham__sbatch_.txt create mode 100644 tests/integration/test_code_command/test_code_mila__salloc_.txt create mode 100644 tests/integration/test_code_command/test_code_mila__sbatch_.txt diff --git a/tests/integration/test_code_command/test_code_beluga__salloc_.txt b/tests/integration/test_code_command/test_code_beluga__salloc_.txt new file mode 100644 index 00000000..ab393fc8 --- /dev/null +++ b/tests/integration/test_code_command/test_code_beluga__salloc_.txt @@ -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 or terminate the process with (maybe twice). +(beluga) $ scancel JOB_ID +Ended session on 'COMPUTE_NODE' \ No newline at end of file diff --git a/tests/integration/test_code_command/test_code_beluga__sbatch_.txt b/tests/integration/test_code_command/test_code_beluga__sbatch_.txt new file mode 100644 index 00000000..13cb7a53 --- /dev/null +++ b/tests/integration/test_code_command/test_code_beluga__sbatch_.txt @@ -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 or terminate the process with (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 \ No newline at end of file diff --git a/tests/integration/test_code_command/test_code_cedar__salloc_.txt b/tests/integration/test_code_command/test_code_cedar__salloc_.txt new file mode 100644 index 00000000..d15369f5 --- /dev/null +++ b/tests/integration/test_code_command/test_code_cedar__salloc_.txt @@ -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 or terminate the process with (maybe twice). +(cedar) $ scancel JOB_ID +Ended session on 'COMPUTE_NODE' \ No newline at end of file diff --git a/tests/integration/test_code_command/test_code_cedar__sbatch_.txt b/tests/integration/test_code_command/test_code_cedar__sbatch_.txt new file mode 100644 index 00000000..d9ee6150 --- /dev/null +++ b/tests/integration/test_code_command/test_code_cedar__sbatch_.txt @@ -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 or terminate the process with (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 \ No newline at end of file diff --git a/tests/integration/test_code_command/test_code_graham__salloc_.txt b/tests/integration/test_code_command/test_code_graham__salloc_.txt new file mode 100644 index 00000000..6c4d1df8 --- /dev/null +++ b/tests/integration/test_code_command/test_code_graham__salloc_.txt @@ -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 or terminate the process with (maybe twice). +(graham) $ scancel JOB_ID +Ended session on 'COMPUTE_NODE' \ No newline at end of file diff --git a/tests/integration/test_code_command/test_code_graham__sbatch_.txt b/tests/integration/test_code_command/test_code_graham__sbatch_.txt new file mode 100644 index 00000000..dbcb1341 --- /dev/null +++ b/tests/integration/test_code_command/test_code_graham__sbatch_.txt @@ -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 or terminate the process with (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 \ No newline at end of file diff --git a/tests/integration/test_code_command/test_code_mila__salloc_.txt b/tests/integration/test_code_command/test_code_mila__salloc_.txt new file mode 100644 index 00000000..b08db608 --- /dev/null +++ b/tests/integration/test_code_command/test_code_mila__salloc_.txt @@ -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 or terminate the process with (maybe twice). +(mila) $ scancel JOB_ID +Ended session on 'COMPUTE_NODE' \ No newline at end of file diff --git a/tests/integration/test_code_command/test_code_mila__sbatch_.txt b/tests/integration/test_code_command/test_code_mila__sbatch_.txt new file mode 100644 index 00000000..702af262 --- /dev/null +++ b/tests/integration/test_code_command/test_code_mila__sbatch_.txt @@ -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 or terminate the process with (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 \ No newline at end of file