]> git.proxmox.com Git - ceph.git/blob - ceph/qa/machine_types/schedule_subset.sh
Import ceph 15.2.8
[ceph.git] / ceph / qa / machine_types / schedule_subset.sh
1 #!/usr/bin/env bash
2
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>
4
5 # $1 - part (day of week)
6 # $2 - branch name
7 # $3 - machine name
8 # $4 - suite name
9 # $5 - email address
10 # $6 - kernel (distro or testing)
11 # $7 - filter out (this arg is to be at the end of the command line for now)
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
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
32 elif [ $2 = "jewel" ] ; then
33 # run jewel branch with /40 jobs
34 teuthology-suite -v -c $2 -m $3 -k $6 -s $4 --subset $(echo "(($(date +%U) % 4) * 7) + $1" | bc)/40 -e $5 $7
35 elif [ $2 = "kraken" ] ; then
36 # run kraken branch with /999 jobs
37 teuthology-suite -v -c $2 -m $3 -k $6 -s $4 --subset $(echo "(($(date +%U) % 4) * 7) + $1" | bc)/999 -e $5 $7
38 elif [ $2 = "luminous" ] ; then
39 # run luminous branch with /999 jobs
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
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
49 else
50 # run NON master branches without --newest
51 teuthology-suite -v -c $2 -m $3 -k $6 -s $4 --subset $(echo "(($(date +%U) % 4) * 7) + $1" | bc)/999 -e $5 $7
52 fi