From: Ian Campbell Date: Thu, 13 Aug 2015 15:18:37 +0000 (+0100) Subject: cambridge: arrange to test each new baseline X-Git-Url: http://xenbits.xensource.com/gitweb?a=commitdiff_plain;h=c85be53071b22a3bc54266f3a6c268ad062f7cea;p=osstest.git cambridge: arrange to test each new baseline Provide a new cr-daily-branch setting OSSTEST_BASELINES_ONLY which causes it to only attempt to test the current baseline (if it is untested) and never the tip version. Such tests will not result in any push. Each new baseline is tested exactly once (i.e. we aren't repeating hoping for a pass), hence the correct revision is just the one tested by the last run on the branch. Add a cronjob to Cambridge which runs in this manner, ensuring that there will usually be some sort of reasonably up to date baseline for any given branch which can be used for comparisons in adhoc testing or bisections. This will also give us some data on the success of various branches on the set of machines in Cambridge, which can be useful/interesting. Signed-off-by: Ian Campbell Acked-by: Ian Jackson --- diff --git a/cr-daily-branch b/cr-daily-branch index 8c294d0..ade515d 100755 --- a/cr-daily-branch +++ b/cr-daily-branch @@ -92,12 +92,24 @@ if [ "x$OLD_REVISION" = x ]; then OSSTEST_NO_BASELINE=y OLD_REVISION=flight-`check_tested` ;; - *) OLD_REVISION="`./ap-fetch-version-old $branch`";; + *) + if [ "x$OSSTEST_BASELINES_ONLY" = xy ] ; then + # We run on each upstream baseline exactly once so the + # last test will have tested the previous upstream baseline + OLD_REVISION=`check_tested --print-revision=$tree` + else + OLD_REVISION="`./ap-fetch-version-old $branch`" + fi + ;; esac export OLD_REVISION fi -if [ "x$OSSTEST_NO_BASELINE" != xy ] ; then +if [ "x$OSSTEST_BASELINES_ONLY" = xy ] ; then + force_baseline=baselines-only + wantpush=false + skipidentical=true +elif [ "x$OSSTEST_NO_BASELINE" != xy ] ; then testedflight=`check_tested --revision-$tree="$OLD_REVISION"` if [ "x$testedflight" = x ]; then @@ -277,6 +289,13 @@ case "$force_baseline" in flight we test it, rather than a new candidate. The baseline, if any, is the most recent actually tested revision. +END + ;; + baselines-only) + subject_prefix="[$branch baseline-only test] " + cat >> $heading <