]>
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 | |
b5b8bbf5 | 29 | # run master branch with --newest option looking for good sha1 7 builds back with /999 jobs |
11fdf7f2 | 30 | teuthology-suite -v -c $2 -m $3 -k $6 -s $4 --subset $(echo "(($(date +%U) % 4) * 7) + $1" | bc)/999 --newest 7 -e $5 $7 |
7c673cae FG |
31 | elif [ $2 = "hammer" ] ; then |
32 | # run hammer branch with less jobs | |
11fdf7f2 | 33 | teuthology-suite -v -c $2 -m $3 -k $6 -s $4 --subset $(echo "(($(date +%U) % 4) * 7) + $1" | bc)/56 -e $5 $7 |
7c673cae FG |
34 | elif [ $2 = "jewel" ] ; then |
35 | # run jewel branch with /40 jobs | |
11fdf7f2 | 36 | teuthology-suite -v -c $2 -m $3 -k $6 -s $4 --subset $(echo "(($(date +%U) % 4) * 7) + $1" | bc)/40 -e $5 $7 |
7c673cae | 37 | elif [ $2 = "kraken" ] ; then |
b5b8bbf5 | 38 | # run kraken branch with /999 jobs |
11fdf7f2 | 39 | teuthology-suite -v -c $2 -m $3 -k $6 -s $4 --subset $(echo "(($(date +%U) % 4) * 7) + $1" | bc)/999 -e $5 $7 |
c07f9fc5 | 40 | elif [ $2 = "luminous" ] ; then |
b5b8bbf5 | 41 | # run luminous branch with /999 jobs |
11fdf7f2 TL |
42 | teuthology-suite -v -c $2 -m $3 -k $6 -s $4 --subset $(echo "(($(date +%U) % 4) * 7) + $1" | bc)/999 -e $5 $7 |
43 | elif [ $2 = "mimic" ] ; then | |
44 | # run mimic branch with /999 jobs | |
45 | 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 |
46 | elif [ $2 = "nautilus" ] ; then |
47 | # run nautilus branch with /2999 jobs == ~ 250 jobs | |
48 | teuthology-suite -v -c $2 -m $3 -k $6 -s $4 --subset $(echo "(($(date +%U) % 4) * 7) + $1" | bc)/2999 -e $5 $7 | |
49 | elif [ $2 = "octopus" ] ; then | |
50 | 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 |
51 | else |
52 | # run NON master branches without --newest | |
11fdf7f2 | 53 | teuthology-suite -v -c $2 -m $3 -k $6 -s $4 --subset $(echo "(($(date +%U) % 4) * 7) + $1" | bc)/999 -e $5 $7 |
7c673cae | 54 | fi |