Index: mtut.scm ================================================================== --- mtut.scm +++ mtut.scm @@ -544,11 +544,11 @@ (let* ((run-name (alist-ref 'run-name val-alist)) (target (alist-ref 'target val-alist)) (crontab (alist-ref 'cron val-alist)) ;; (action (alist-ref 'action val-alist)) (need-run (common:extended-cron crontab #f last-run)) - (cron-safe-string (string-intersperse (string-split (alist-ref 'cron val-alist)) "-")) + (cron-safe-string (string-translate (string-intersperse (string-split (alist-ref 'cron val-alist)) "-") "*" "X")) (runname std-runname)) ;; (conc "sched" (time->string (seconds->local-time (current-seconds)) "%M%H%d"))))) (print "last-run: " last-run " need-run: " need-run) (if need-run (case (string->symbol action) ((sync) Index: runconfigs.config ================================================================== --- runconfigs.config +++ runconfigs.config @@ -1,13 +1,29 @@ + +# example of a cron entry to run sync using db spec pgdb, with pgdb setting in file local.config +# +[a/b/c] +all:scheduled:sync cron= 5 * * * *;dbdest=pgdb;appendconf=/mfs/matt/.sysmaint/local.config + +# tip will be replaced with hashkey [v1.63/tip/dev] # file: files changes since last run trigger new run # script: script is called with unix seconds as last parameter (other parameters are preserved) # # contour:sensetype:action params data -quick:file:run run-name=auto;glob=*.scm -quick:file:clean run-name=auto; -quick:script:run run-name=auto;script=checkfossil.sh v1.63 +quick:file:run run-name=auto;glob=/home/matt/data/megatest/*.scm + +# script returns change-time (unix epoch), new-target-name, run-name +# +# quick:script:run checkfossil = http://www.kiatoa.com/fossils/megatest v1.63;\ +# checkfossil = http://www.kiatoa.com/fossils/megatest_qa trunk + +# fossil based trigger +# +quick:fossil:run http://www.kiatoa.com/fossils/megatest=v1.63;\ + http://www.kiatoa.com/fossils/megatest_qa=trunk;\ + http://www.kiatoa.com/fossils/megatest=v1.64 # field allowed values # ----- -------------- # minute 0-59 # hour 0-23 @@ -18,12 +34,41 @@ # actions: # run - run a testsuite # clean - clear out runs # archive - archive runs -quick:scheduled:run cron=47 * * * * ;run-name=auto -quick:scheduled:archive cron=15 20 * * * ;run-name=% ; +# quick:scheduled:run cron=47 * * * * ;run-name=auto +# quick:scheduled:archive cron=15 20 * * * ;run-name=%;target=%/%/% -[%/%/%] -# every friday at midnight clean "all" tests over 7d -all:scheduled:clean cron= 0 0 0 0 5;run-name=%;age=7d +# [%] +# # every friday at midnight clean "all" tests over 7d +# all:scheduled:clean cron= 0 0 0 0 5;run-name=%;age=7d +# [v1.63/tip/dev] +# # file: files changes since last run trigger new run +# # script: script is called with unix seconds as last parameter (other parameters are preserved) +# # +# # contour:sensetype:action params data +# quick:file:run run-name=auto;glob=*.scm +# quick:file:clean run-name=auto; +# quick:script:run run-name=auto;script=checkfossil.sh v1.63 +# +# # field allowed values +# # ----- -------------- +# # minute 0-59 +# # hour 0-23 +# # day of month 1-31 +# # month 1-12 (or names, future development) +# # day of week 0-7 (0 or 7 is Sun, or, future development, use names) +# +# # actions: +# # run - run a testsuite +# # clean - clear out runs +# # archive - archive runs +# +# quick:scheduled:run cron=47 * * * * ;run-name=auto +# quick:scheduled:archive cron=15 20 * * * ;run-name=% ; +# +# [%/%/%] +# # every friday at midnight clean "all" tests over 7d +# all:scheduled:clean cron= 0 0 0 0 5;run-name=%;age=7d +#