]>
Commit | Line | Data |
---|---|---|
11fdf7f2 | 1 | #!/usr/bin/env bash |
7c673cae | 2 | |
11fdf7f2 | 3 | #command line => CEPH_BRANCH=<branch>; MACHINE_NAME=<machine_type>; SUITE_NAME=<suite>; ../schedule_subset.sh <day_of_week> $CEPH_BRANCH $MACHINE_NAME $SUITE_NAME $CEPH_QA_EMAIL $KERNEL <$FILTER> |
7c673cae FG |
4 | |
5 | # $1 - part (day of week) | |
6 | # $2 - branch name | |
7 | # $3 - machine name | |
8 | # $4 - suite name | |
9 | # $5 - email address | |
11fdf7f2 TL |
10 | # $6 - kernel (distro or testing) |
11 | # $7 - filter out (this arg is to be at the end of the command line for now) | |
7c673cae FG |
12 | |
13 | ## example #1 | |
14 | ## (date +%U) week number | |
15 | ## % 2 - mod 2 (e.g. 0,1,0,1 ...) | |
16 | ## * 7 - multiplied by 7 (e.g. 0,7,0,7...) | |
17 | ## $1 day of the week (0-6) | |
18 | ## /14 for 2 weeks | |
19 | ||
20 | ## example #2 | |
21 | ## (date +%U) week number | |
22 | ## % 4 - mod 4 (e.g. 0,1,2,3,0,1,2,3 ...) | |
23 | ## * 7 - multiplied by 7 (e.g. 0,7,14,21,0,7,14,21...) | |
24 | ## $1 day of the week (0-6) | |
25 | ## /28 for 4 weeks | |
26 | ||
27 | echo "Scheduling " $2 " branch" | |
28 | if [ $2 = "master" ] ; then | |
f91f0fd5 TL |
29 | # run master branch with --newest option looking for good sha1 7 builds back with /100000 jobs |
30 | # using '-p 80 --force-priority' as an execption ATM | |
31 | teuthology-suite -v -c $2 -m $3 -k $6 -s $4 --subset $(echo "(($(date +%U) % 4) * 7) + $1" | bc)/100000 --newest 7 -e $5 $7 -p 80 --force-priority | |
7c673cae FG |
32 | elif [ $2 = "jewel" ] ; then |
33 | # run jewel branch with /40 jobs | |
11fdf7f2 | 34 | teuthology-suite -v -c $2 -m $3 -k $6 -s $4 --subset $(echo "(($(date +%U) % 4) * 7) + $1" | bc)/40 -e $5 $7 |
7c673cae | 35 | elif [ $2 = "kraken" ] ; then |
b5b8bbf5 | 36 | # run kraken branch with /999 jobs |
11fdf7f2 | 37 | teuthology-suite -v -c $2 -m $3 -k $6 -s $4 --subset $(echo "(($(date +%U) % 4) * 7) + $1" | bc)/999 -e $5 $7 |
c07f9fc5 | 38 | elif [ $2 = "luminous" ] ; then |
b5b8bbf5 | 39 | # run luminous branch with /999 jobs |
11fdf7f2 TL |
40 | teuthology-suite -v -c $2 -m $3 -k $6 -s $4 --subset $(echo "(($(date +%U) % 4) * 7) + $1" | bc)/999 -e $5 $7 |
41 | elif [ $2 = "mimic" ] ; then | |
42 | # run mimic branch with /999 jobs | |
43 | teuthology-suite -v -c $2 -m $3 -k $6 -s $4 --subset $(echo "(($(date +%U) % 4) * 7) + $1" | bc)/999 -e $5 $7 | |
9f95a23c TL |
44 | elif [ $2 = "nautilus" ] ; then |
45 | # run nautilus branch with /2999 jobs == ~ 250 jobs | |
46 | teuthology-suite -v -c $2 -m $3 -k $6 -s $4 --subset $(echo "(($(date +%U) % 4) * 7) + $1" | bc)/2999 -e $5 $7 | |
47 | elif [ $2 = "octopus" ] ; then | |
48 | teuthology-suite -v -c $2 -m $3 -k $6 -s $4 --subset $(echo "(($(date +%U) % 4) * 7) + $1" | bc)/9999 -e $5 $7 | |
7c673cae FG |
49 | else |
50 | # run NON master branches without --newest | |
11fdf7f2 | 51 | teuthology-suite -v -c $2 -m $3 -k $6 -s $4 --subset $(echo "(($(date +%U) % 4) * 7) + $1" | bc)/999 -e $5 $7 |
7c673cae | 52 | fi |