]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commitdiff
Added option to search for newest good/built commit (7 commits back)
authorYuri Weinstein <yweinste@redhat.com>
Fri, 15 Jul 2016 16:39:53 +0000 (09:39 -0700)
committerYuri Weinstein <yweinste@redhat.com>
Tue, 19 Jul 2016 23:55:04 +0000 (16:55 -0700)
Signed-off-by: Yuri Weinstein <yweinste@redhat.com>
machine_types/schedule_rados.sh
machine_types/schedule_rados_ovh.sh

index 3aef851f2ed51b9b4ad8015870c4e3242896b868..9f3d691e7921262e8a72dcfe8683e54105d5b159 100755 (executable)
 ## $1 day of the week (0-6)
 ## /28 for 4 weeks
 
-teuthology-suite -v -c $2 -m $3 -k distro -s rados --subset $(echo "(($(date +%U) % 4) * 7) + $1" | bc)/28 -e $4 $5
+echo "Scheduling " $2 " branch"
+if [ $2 = "master" ] ; then
+        # run master branch with --newest option looking for good sha1 7 builds back
+        teuthology-suite -v -c $2 -m $3 -k distro -s rados --subset $(echo "(($(date +%U) % 4) * 7) + $1" | bc)/28 --newest 7 -e $4 $5
+else
+        # run NON master branches without --newest 
+        teuthology-suite -v -c $2 -m $3 -k distro -s rados --subset $(echo "(($(date +%U) % 4) * 7) + $1" | bc)/28 -e $4 $5
+fi
index cc9e178b46fd8674b61ea1b0e489b3c52d8e7654..2685b976acaafe4066ef1a7bc7876ba78639b010 100755 (executable)
 ## $1 day of the week (0-6)
 ## /28 for 4 weeks
 
-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
+echo "Scheduling " $2 " branch"
+if [ $2 = "master" ] ; then
+        # run master branch with --newest option looking for good sha1 7 builds back
+        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
+else
+        # run NON master branches without --newest 
+        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
+fi
+