From bab4dfaaa26a49b956c93cc03b36b446df69cfb5 Mon Sep 17 00:00:00 2001 From: Josh Durgin Date: Tue, 23 Feb 2021 00:27:49 +0000 Subject: [PATCH] qa: schedule a wider variety of jobs Use the day of the year instead of compressing everything into quarters. This lets us get through more breadth of combinations in a year. Signed-off-by: Josh Durgin --- qa/machine_types/schedule_subset.sh | 34 +++++++++-------------------- 1 file changed, 10 insertions(+), 24 deletions(-) diff --git a/qa/machine_types/schedule_subset.sh b/qa/machine_types/schedule_subset.sh index b0e7e0497bd..061a20d04ba 100755 --- a/qa/machine_types/schedule_subset.sh +++ b/qa/machine_types/schedule_subset.sh @@ -2,7 +2,7 @@ #command line => CEPH_BRANCH=; MACHINE_NAME=; SUITE_NAME=; ../schedule_subset.sh $CEPH_BRANCH $MACHINE_NAME $SUITE_NAME $CEPH_QA_EMAIL $KERNEL <$FILTER> -# $1 - part (day of week) +# $1 - part (added to day of year) # $2 - branch name # $3 - machine name # $4 - suite name @@ -10,47 +10,33 @@ # $6 - kernel (distro or testing) # $7 - filter out (this arg is to be at the end of the command line for now) -## example #1 -## (date +%U) week number -## % 2 - mod 2 (e.g. 0,1,0,1 ...) -## * 7 - multiplied by 7 (e.g. 0,7,0,7...) -## $1 day of the week (0-6) -## /14 for 2 weeks - -## example #2 -## (date +%U) week number -## % 4 - mod 4 (e.g. 0,1,2,3,0,1,2,3 ...) -## * 7 - multiplied by 7 (e.g. 0,7,14,21,0,7,14,21...) -## $1 day of the week (0-6) -## /28 for 4 weeks - echo "Scheduling " $2 " branch" if [ $2 = "master" ] ; then # run master branch with --newest option looking for good sha1 7 builds back with /100000 jobs # using '-p 80 --force-priority' as an execption ATM - 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 100 --force-priority + teuthology-suite -v -c $2 -m $3 -k $6 -s $4 --subset $(echo "$(date +%j) + $1" | bc)/100000 --newest 7 -e $5 $7 -p 100 --force-priority elif [ $2 = "jewel" ] ; then # run jewel branch with /40 jobs - teuthology-suite -v -c $2 -m $3 -k $6 -s $4 --subset $(echo "(($(date +%U) % 4) * 7) + $1" | bc)/40 -e $5 $7 + teuthology-suite -v -c $2 -m $3 -k $6 -s $4 --subset $(echo "$(date +%j) + $1" | bc)/40 -e $5 $7 elif [ $2 = "kraken" ] ; then # run kraken branch with /999 jobs - teuthology-suite -v -c $2 -m $3 -k $6 -s $4 --subset $(echo "(($(date +%U) % 4) * 7) + $1" | bc)/999 -e $5 $7 + teuthology-suite -v -c $2 -m $3 -k $6 -s $4 --subset $(echo "$(date +%j) + $1" | bc)/999 -e $5 $7 elif [ $2 = "luminous" ] ; then # run luminous branch with /999 jobs - teuthology-suite -v -c $2 -m $3 -k $6 -s $4 --subset $(echo "(($(date +%U) % 4) * 7) + $1" | bc)/999 -e $5 $7 + teuthology-suite -v -c $2 -m $3 -k $6 -s $4 --subset $(echo "$(date +%j) + $1" | bc)/999 -e $5 $7 elif [ $2 = "mimic" ] ; then # run mimic branch with /999 jobs - teuthology-suite -v -c $2 -m $3 -k $6 -s $4 --subset $(echo "(($(date +%U) % 4) * 7) + $1" | bc)/999 -e $5 $7 + teuthology-suite -v -c $2 -m $3 -k $6 -s $4 --subset $(echo "$(date +%j) + $1" | bc)/999 -e $5 $7 elif [ $2 = "nautilus" ] ; then # run nautilus branch with /2999 jobs == ~ 250 jobs - teuthology-suite -v -c $2 -m $3 -k $6 -s $4 --subset $(echo "(($(date +%U) % 4) * 7) + $1" | bc)/2999 -e $5 $7 + teuthology-suite -v -c $2 -m $3 -k $6 -s $4 --subset $(echo "$(date +%j) + $1" | bc)/2999 -e $5 $7 elif [ $2 = "octopus" ] ; then - teuthology-suite -v -c $2 -m $3 -k $6 -s $4 --subset $(echo "(($(date +%U) % 4) * 7) + $1" | bc)/9999 -e $5 $7 + teuthology-suite -v -c $2 -m $3 -k $6 -s $4 --subset $(echo "$(date +%j) + $1" | bc)/9999 -e $5 $7 # run octopus branch with /100000 jobs for rados == ~ 300 job elif [ $2 = "pacific" ] ; then - teuthology-suite -v -c $2 -m $3 -k $6 -s $4 --subset $(echo "(($(date +%U) % 4) * 7) + $1" | bc)/99999 -e $5 $7 -p 80 --force-priority + teuthology-suite -v -c $2 -m $3 -k $6 -s $4 --subset $(echo "$(date +%j) + $1" | bc)/99999 -e $5 $7 -p 80 --force-priority # run pacific branch with /99999 jobs for rados == ~ 367 job else # run NON master branches without --newest - teuthology-suite -v -c $2 -m $3 -k $6 -s $4 --subset $(echo "(($(date +%U) % 4) * 7) + $1" | bc)/999 -e $5 $7 + teuthology-suite -v -c $2 -m $3 -k $6 -s $4 --subset $(echo "$(date +%j) + $1" | bc)/999 -e $5 $7 fi -- 2.39.5