]> git.proxmox.com Git - ceph.git/blob - ceph/qa/machine_types/schedule_rados_ovh.sh
add subtree-ish sources for 12.0.3
[ceph.git] / ceph / qa / machine_types / schedule_rados_ovh.sh
1 #!/bin/bash
2
3 # $1 - part
4 # $2 - branch name
5 # $3 - machine name
6 # $4 - email address
7 # $5 - filter out (this arg is to be at the end of the command line for now)
8
9 ## example #1
10 ## (date +%U) week number
11 ## % 2 - mod 2 (e.g. 0,1,0,1 ...)
12 ## * 7 - multiplied by 7 (e.g. 0,7,0,7...)
13 ## $1 day of the week (0-6)
14 ## /14 for 2 weeks
15
16 ## example #2
17 ## (date +%U) week number
18 ## % 4 - mod 4 (e.g. 0,1,2,3,0,1,2,3 ...)
19 ## * 7 - multiplied by 7 (e.g. 0,7,14,21,0,7,14,21...)
20 ## $1 day of the week (0-6)
21 ## /28 for 4 weeks
22
23 echo "Scheduling " $2 " branch"
24 if [ $2 = "master" ] ; then
25 # run master branch with --newest option looking for good sha1 7 builds back
26 teuthology-suite -v -c $2 -m $3 -k distro -s rados --subset $(echo "(($(date +%U) % 4) * 7) + $1" | bc)/28 --newest 7 -e $4 ~/vps.yaml $5
27 elif [ $2 = "hammer" ] ; then
28 # run hammer branch with less jobs
29 teuthology-suite -v -c $2 -m $3 -k distro -s rados --subset $(echo "(($(date +%U) % 4) * 7) + $1" | bc)/56 -e $4 ~/vps.yaml $5
30 elif [ $2 = "jewel" ] ; then
31 # run jewel branch with /40 jobs
32 teuthology-suite -v -c $2 -m $3 -k distro -s rados --subset $(echo "(($(date +%U) % 4) * 7) + $1" | bc)/40 -e $4 ~/vps.yaml $5
33 else
34 # run NON master branches without --newest
35 teuthology-suite -v -c $2 -m $3 -k distro -s rados --subset $(echo "(($(date +%U) % 4) * 7) + $1" | bc)/28 -e $4 ~/vps.yaml $5
36 fi
37