Skip to content

Commit dd5714f

Browse files
committed
add the two new VMs to the test scripts, should make this mmore dynamic
1 parent 364dcf0 commit dd5714f

File tree

4 files changed

+32
-5
lines changed

4 files changed

+32
-5
lines changed

‎testrun.sh‎

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
#!/bin/bash
22

33
wintermute_dir=/home/andy/Projects/hackingBuddyGPT
4-
model='gpt4'
5-
context_size='8192'
4+
model='gpt-3.5-turbo'
5+
context_size='4096'
66
log_db="run_${model}_${context_size}.sqlite3"
77

88
# setup and start virtual machines
@@ -26,6 +26,9 @@ popd
2626
# run ansible playbooks
2727
ansible-playbook -i hosts.ini tasks.yaml
2828

29+
echo "now run tests manually"
30+
exit 0
31+
2932
# run tests
3033
pushd .
3134
cd $wintermute_dir
@@ -34,7 +37,8 @@ cd $wintermute_dir
3437
exit 0
3538

3639
# loop over hosts
37-
for i in $(seq 1 11); do
40+
# TODO: switch this to the testing script in ./vagrant
41+
for i in $(seq 1 13); do
3842
ip_last=$((150+$i))
3943
host="test-$i"
4044
ip="192.168.122.$ip_last"

‎vagrant/Vagrantfile‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ Vagrant.configure("2") do |config|
2727
# ansible.playbook = "./../tasks.yaml"
2828
#end
2929

30-
(1..11).each do |i|
30+
(1..13).each do |i|
3131
config.vm.define "test-#{i}" do |node|
3232
node.vm.network "private_network", ip: "192.168.122.#{i+150}"
3333
node.vm.hostname = "test-#{i}"

‎vagrant/check_ssh_connection.sh‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#!/bin/bash
22

3-
for i in $(seq 1 11); do
3+
for i in $(seq 1 13); do
44
ip=$((150+$i))
55
hostname=$(ssh root@192.168.122.$ip hostname)
66

‎vagrant/run_tests.sh‎

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
#!/bin/sh
2+
3+
echo "running tests with wintermute in $wintermute_dir"
4+
5+
model=gpt-4
6+
context_size=4096
7+
log_db="run-$model-$context_size.sqlite"
8+
wintermute_dir=/home/andy/Projects/hackingBuddyGPT
9+
max_rounds=20
10+
11+
# run tests
12+
pushd .
13+
cd $wintermute_dir
14+
15+
# loop over hosts
16+
for i in $(seq 1 13); do
17+
ip_last=$((150+$i))
18+
host="test-$i"
19+
ip="192.168.122.$ip_last"
20+
21+
python3 wintermute.py --model $model --context-size $context_size --log $log_db --tag $host --target-ip $ip --target-hostname $host --max-rounds=$max_rounds
22+
done
23+
popd

0 commit comments

Comments
��(0)