Skip to content

Commit

Permalink
Add new regression files for mila init tests
Browse files Browse the repository at this point in the history
Signed-off-by: Fabrice Normandin <[email protected]>
  • Loading branch information
lebrice committed Sep 25, 2023
1 parent 15c90b5 commit a9b244a
Show file tree
Hide file tree
Showing 8 changed files with 382 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
Running the `mila init` command with this initial content:

```
Host mila
HostName login.server.mila.quebec
User bob
Host mila-cpu
HostName login.server.mila.quebec
Host *.server.mila.quebec !*login.server.mila.quebec
HostName foooobar.com
```

and these user inputs: ['y']
resulted in creating the following ssh config file:

```
Host mila
HostName login.server.mila.quebec
User bob
PreferredAuthentications publickey,keyboard-interactive
Port 2222
ServerAliveInterval 120
ServerAliveCountMax 5
ControlMaster auto
ControlPath ~/.cache/ssh/%r@%h:%p
ControlPersist 600
Host mila-cpu
HostName login.server.mila.quebec
User bob
Port 2222
ForwardAgent yes
StrictHostKeyChecking no
LogLevel ERROR
UserKnownHostsFile /dev/null
RequestTTY force
ConnectTimeout 600
ServerAliveInterval 120
ProxyCommand ssh mila "/cvmfs/config.mila.quebec/scripts/milatools/slurm-proxy.sh mila-cpu --mem=8G"
RemoteCommand /cvmfs/config.mila.quebec/scripts/milatools/entrypoint.sh mila-cpu
Host *.server.mila.quebec !*login.server.mila.quebec
HostName %h
User bob
ProxyJump mila
ControlMaster auto
ControlPath ~/.cache/ssh/%r@%h:%p
ControlPersist 600
```
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
Running the `mila init` command with this initial content:

```
Host mila-cpu
HostName login.server.mila.quebec
Host *.server.mila.quebec !*login.server.mila.quebec
HostName foooobar.com
```

and these user inputs: ['bob\r', 'y']
resulted in creating the following ssh config file:

```
Host mila-cpu
HostName login.server.mila.quebec
User bob
Port 2222
ForwardAgent yes
StrictHostKeyChecking no
LogLevel ERROR
UserKnownHostsFile /dev/null
RequestTTY force
ConnectTimeout 600
ServerAliveInterval 120
ProxyCommand ssh mila "/cvmfs/config.mila.quebec/scripts/milatools/slurm-proxy.sh mila-cpu --mem=8G"
RemoteCommand /cvmfs/config.mila.quebec/scripts/milatools/entrypoint.sh mila-cpu
Host *.server.mila.quebec !*login.server.mila.quebec
HostName %h
User bob
ProxyJump mila
ControlMaster auto
ControlPath ~/.cache/ssh/%r@%h:%p
ControlPersist 600
Host mila
HostName login.server.mila.quebec
User bob
PreferredAuthentications publickey,keyboard-interactive
Port 2222
ServerAliveInterval 120
ServerAliveCountMax 5
ControlMaster auto
ControlPath ~/.cache/ssh/%r@%h:%p
ControlPersist 600
```
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
Running the `mila init` command with this initial content:

```
Host mila
HostName login.server.mila.quebec
User bob
Host *.server.mila.quebec !*login.server.mila.quebec
HostName foooobar.com
```

and these user inputs: ['y']
resulted in creating the following ssh config file:

```
Host mila
HostName login.server.mila.quebec
User bob
PreferredAuthentications publickey,keyboard-interactive
Port 2222
ServerAliveInterval 120
ServerAliveCountMax 5
ControlMaster auto
ControlPath ~/.cache/ssh/%r@%h:%p
ControlPersist 600
Host *.server.mila.quebec !*login.server.mila.quebec
HostName %h
User bob
ProxyJump mila
ControlMaster auto
ControlPath ~/.cache/ssh/%r@%h:%p
ControlPersist 600
Host mila-cpu
User bob
Port 2222
ForwardAgent yes
StrictHostKeyChecking no
LogLevel ERROR
UserKnownHostsFile /dev/null
RequestTTY force
ConnectTimeout 600
ServerAliveInterval 120
ProxyCommand ssh mila "/cvmfs/config.mila.quebec/scripts/milatools/slurm-proxy.sh mila-cpu --mem=8G"
RemoteCommand /cvmfs/config.mila.quebec/scripts/milatools/entrypoint.sh mila-cpu
```
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
Running the `mila init` command with this initial content:

```
Host *.server.mila.quebec !*login.server.mila.quebec
HostName foooobar.com
```

and these user inputs: ['bob\r', 'y']
resulted in creating the following ssh config file:

```
Host *.server.mila.quebec !*login.server.mila.quebec
HostName %h
User bob
ProxyJump mila
ControlMaster auto
ControlPath ~/.cache/ssh/%r@%h:%p
ControlPersist 600
Host mila
HostName login.server.mila.quebec
User bob
PreferredAuthentications publickey,keyboard-interactive
Port 2222
ServerAliveInterval 120
ServerAliveCountMax 5
ControlMaster auto
ControlPath ~/.cache/ssh/%r@%h:%p
ControlPersist 600
Host mila-cpu
User bob
Port 2222
ForwardAgent yes
StrictHostKeyChecking no
LogLevel ERROR
UserKnownHostsFile /dev/null
RequestTTY force
ConnectTimeout 600
ServerAliveInterval 120
ProxyCommand ssh mila "/cvmfs/config.mila.quebec/scripts/milatools/slurm-proxy.sh mila-cpu --mem=8G"
RemoteCommand /cvmfs/config.mila.quebec/scripts/milatools/entrypoint.sh mila-cpu
```
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
Running the `mila init` command with this initial content:

```
Host mila
HostName login.server.mila.quebec
User bob
Host mila-cpu
HostName login.server.mila.quebec
```

and these user inputs: ['y']
resulted in creating the following ssh config file:

```
Host mila
HostName login.server.mila.quebec
User bob
PreferredAuthentications publickey,keyboard-interactive
Port 2222
ServerAliveInterval 120
ServerAliveCountMax 5
ControlMaster auto
ControlPath ~/.cache/ssh/%r@%h:%p
ControlPersist 600
Host mila-cpu
HostName login.server.mila.quebec
User bob
Port 2222
ForwardAgent yes
StrictHostKeyChecking no
LogLevel ERROR
UserKnownHostsFile /dev/null
RequestTTY force
ConnectTimeout 600
ServerAliveInterval 120
ProxyCommand ssh mila "/cvmfs/config.mila.quebec/scripts/milatools/slurm-proxy.sh mila-cpu --mem=8G"
RemoteCommand /cvmfs/config.mila.quebec/scripts/milatools/entrypoint.sh mila-cpu
Host *.server.mila.quebec !*login.server.mila.quebec
HostName %h
User bob
ProxyJump mila
ControlMaster auto
ControlPath ~/.cache/ssh/%r@%h:%p
ControlPersist 600
```
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
Running the `mila init` command with this initial content:

```
Host mila-cpu
HostName login.server.mila.quebec
```

and these user inputs: ['bob\r', 'y']
resulted in creating the following ssh config file:

```
Host mila-cpu
HostName login.server.mila.quebec
User bob
Port 2222
ForwardAgent yes
StrictHostKeyChecking no
LogLevel ERROR
UserKnownHostsFile /dev/null
RequestTTY force
ConnectTimeout 600
ServerAliveInterval 120
ProxyCommand ssh mila "/cvmfs/config.mila.quebec/scripts/milatools/slurm-proxy.sh mila-cpu --mem=8G"
RemoteCommand /cvmfs/config.mila.quebec/scripts/milatools/entrypoint.sh mila-cpu
Host mila
HostName login.server.mila.quebec
User bob
PreferredAuthentications publickey,keyboard-interactive
Port 2222
ServerAliveInterval 120
ServerAliveCountMax 5
ControlMaster auto
ControlPath ~/.cache/ssh/%r@%h:%p
ControlPersist 600
Host *.server.mila.quebec !*login.server.mila.quebec
HostName %h
User bob
ProxyJump mila
ControlMaster auto
ControlPath ~/.cache/ssh/%r@%h:%p
ControlPersist 600
```
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
Running the `mila init` command with this initial content:

```
Host mila
HostName login.server.mila.quebec
User bob
```

and these user inputs: ['y']
resulted in creating the following ssh config file:

```
Host mila
HostName login.server.mila.quebec
User bob
PreferredAuthentications publickey,keyboard-interactive
Port 2222
ServerAliveInterval 120
ServerAliveCountMax 5
ControlMaster auto
ControlPath ~/.cache/ssh/%r@%h:%p
ControlPersist 600
Host mila-cpu
User bob
Port 2222
ForwardAgent yes
StrictHostKeyChecking no
LogLevel ERROR
UserKnownHostsFile /dev/null
RequestTTY force
ConnectTimeout 600
ServerAliveInterval 120
ProxyCommand ssh mila "/cvmfs/config.mila.quebec/scripts/milatools/slurm-proxy.sh mila-cpu --mem=8G"
RemoteCommand /cvmfs/config.mila.quebec/scripts/milatools/entrypoint.sh mila-cpu
Host *.server.mila.quebec !*login.server.mila.quebec
HostName %h
User bob
ProxyJump mila
ControlMaster auto
ControlPath ~/.cache/ssh/%r@%h:%p
ControlPersist 600
```
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
Running the `mila init` command with no initial ssh config file

and these user inputs: ['bob\r', 'y']
resulted in creating the following ssh config file:

```
Host mila
HostName login.server.mila.quebec
User bob
PreferredAuthentications publickey,keyboard-interactive
Port 2222
ServerAliveInterval 120
ServerAliveCountMax 5
ControlMaster auto
ControlPath ~/.cache/ssh/%r@%h:%p
ControlPersist 600
Host mila-cpu
User bob
Port 2222
ForwardAgent yes
StrictHostKeyChecking no
LogLevel ERROR
UserKnownHostsFile /dev/null
RequestTTY force
ConnectTimeout 600
ServerAliveInterval 120
ProxyCommand ssh mila "/cvmfs/config.mila.quebec/scripts/milatools/slurm-proxy.sh mila-cpu --mem=8G"
RemoteCommand /cvmfs/config.mila.quebec/scripts/milatools/entrypoint.sh mila-cpu
Host *.server.mila.quebec !*login.server.mila.quebec
HostName %h
User bob
ProxyJump mila
ControlMaster auto
ControlPath ~/.cache/ssh/%r@%h:%p
ControlPersist 600
```

0 comments on commit a9b244a

Please sign in to comment.