Skip to contentSkip to conversation

cambridge: arrange to test each new baseline

PATCH Superseded Ian Campbell 2 participants 2 messages Jul 13, 2015 – Jul 24, 2015

v1 of 3 Superseded Latest is v3 →

lore
Share & tools
lore
#0 lore raw

PATCH 2/2 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.

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.

---
 cr-daily-branch   | 13 ++++++++++++-
 crontab-cambridge |  1 +
 2 files changed, 13 insertions(+), 1 deletion(-)
cr-daily-branch +12 -1
index 7e3e69e..dac28ea 100755
@@ -85,7 +85,11 @@ check_tested () {
 	  "$@"
 }
 
-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
@@ -258,6 +262,13 @@ any, is the most recent actually tested revision.
 
 END
     ;;
+    baselines-only)
+        #subject-prefix="[... ] "
+        cat >> $heading <<END
+This branch is configured for baseline tests only.
+
+END
+    ;;
     '') # Not forcing a baseline, nothing to say.
     ;;
 esac
crontab-cambridge +1 -0
index 2146311..64e4f27 100644
@@ -2,5 +2,6 @@ PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin
 [email protected],[email protected]
 # m            h       dom mon dow     command
 4-59/30        *       * * *           cd testing.git && BRANCHES=osstest              ./cr-for-branches branches -q "./cr-daily-branch --real"
+11-59/30	*	* * *		cd testing.git && OSSTEST_BASELINES_ONLY=y	./cr-for-branches branches -q "./cr-daily-branch --real"
 22		8	* * *		cd testing.git && BRANCHES=maintjobs		./cr-for-branches . -w ./cr-all-branch-statuses ''
 3              4       * * *           savelog -c28 testing.git/tmp/cr-for-branches.log >/dev/null
Signature · 1 line
2.1.4
Acked-by on v1 2/2
#1 lore raw

Ian Campbell writes ("[PATCH OSSTEST 2/2] cambridge: arrange to test each new baseline"):

Quoted 9 lines

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.

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.

...

cr-daily-branch any, is the most recent actually tested revision. · line 268

Quoted 4 lines
cr-daily-branch +4 -0
+    baselines-only)
+        #subject-prefix="[... ] "
+        cat >> $heading <<END
+This branch is configured for baseline tests only.

ITYM "This run is configured..." since the same "branch" may be run either way (even if the ap-* is actually set up never to do so).

With that change,

Ian.