Skip to content

Commit ce5dfa4

Browse files
committed
nit
1 parent abfe6b7 commit ce5dfa4

3 files changed

Lines changed: 37 additions & 6 deletions

File tree

scripts/aws.sh

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
#!/bin/bash
2+
3+
# Check if argument is provided
4+
if [ $# -eq 0 ]; then
5+
echo "Usage: $0 <config_file>"
6+
echo "Example: $0 configs/main/RobotRumble__gemini-2.5-pro__gpt-5-mini__r15__s1000.yaml"
7+
exit 1
8+
fi
9+
10+
CONFIG_FILE="$1"
11+
12+
for i in {1..2}; do
13+
AWS_PROFILE=swerl aws/run_job.py -y -- aws/docker_and_sync.sh python main.py "$CONFIG_FILE"
14+
done

scripts/multiple.sh

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
#!/bin/bash
2+
3+
# Check if argument is provided
4+
if [ $# -eq 0 ]; then
5+
echo "Usage: $0 <config_file>"
6+
echo "Example: $0 configs/main/RobotRumble__gemini-2.5-pro__gpt-5-mini__r15__s1000.yaml"
7+
exit 1
8+
fi
9+
10+
CONFIG_FILE="$1"
11+
12+
# optional second arg: number of times to run (default 10)
13+
COUNT=${2:-10}
14+
for ((i=1; i<=COUNT; i++)); do
15+
python main.py "$CONFIG_FILE"
16+
done
17+
18+
# Replace RoboCode with CoreWar in config file path
19+
COREWAR_CONFIG_FILE="${CONFIG_FILE//RoboCode/CoreWar}"
20+
21+
for ((i=1; i<=COUNT; i++)); do
22+
python main.py "$COREWAR_CONFIG_FILE"
23+
done

scripts/push_log_to_gh.py

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -68,12 +68,6 @@ def main(cc_folder: Path):
6868
f.write(str(patch))
6969

7070
apply_cmd = "git apply ../temp.diff"
71-
if arena == "BattleSnake":
72-
apply_cmd += " --exclude=game/battlesnake"
73-
elif arena == "CoreWar":
74-
apply_cmd += " --exclude=src/pmars"
75-
elif arena == "RobotRumble":
76-
apply_cmd += " --exclude=rumblebot"
7771
subprocess.run(apply_cmd, shell=True, check=True, cwd=arena)
7872
subprocess.run("git add .", shell=True, check=True, cwd=arena)
7973
subprocess.run(f"git commit -m 'Round {idx} changes'", shell=True, check=True, cwd=arena)

0 commit comments

Comments
 (0)