Overview
Comment: | Reduced noise from messages, bumped server life to 70 hrs and other minor cleanups |
---|---|
Downloads: | Tarball | ZIP archive | SQL archive |
Timelines: | family | ancestors | descendants | both | trunk | v1.5115 |
Files: | files | file ages | folders |
SHA1: |
60f1fc22c315b8c6dfeec93cf06e3b0e |
User & Date: | mrwellan on 2012-11-12 20:34:46 |
Other Links: | manifest | tags |
Context
2012-11-12
| ||
22:00 | Cut back test5 to 4 parallel runs check-in: eb80c72f89 user: mrwellan tags: trunk | |
20:34 | Reduced noise from messages, bumped server life to 70 hrs and other minor cleanups check-in: 60f1fc22c3 user: mrwellan tags: trunk, v1.5115 | |
19:50 | Cherrypicked the fix to building for deploy check-in: e4ac93792c user: matt tags: trunk | |
Changes
Modified megatest-version.scm from [f4fe051edd] to [0980567fa8].
1 2 3 4 5 | 1 2 3 4 5 6 7 | - + | ;; Always use two digit decimal ;; 1.01, 1.02...1.10,1.11 ... 1.99,2.00.. (declare (unit megatest-version)) |
Modified megatest.scm from [8b945e5bb2] to [f379a0e485].
︙ | |||
183 184 185 186 187 188 189 190 191 192 193 194 195 196 | 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 | + + + | "-gui" ;; misc "-archive" "-repl" "-lock" "-unlock" "-listservers" ;; mist queries "-list-disks" "-list-targets" ;; queries "-test-paths" ;; get path(s) to a test, ordered by youngest first "-runall" ;; run all tests "-remove-runs" "-usequeue" "-rebuild-db" |
︙ | |||
257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 | 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 | + + + + + + + + + + + + + + - + | ;; Misc general calls ;;====================================================================== (if (args:get-arg "-env2file") (begin (save-environment-as-files (args:get-arg "-env2file")) (set! *didsomething* #t))) (if (args:get-arg "-list-targets") (print (string-intersperse (sort (map car (hash-table->alist (read-config "runconfigs.config" (make-hash-table) #f))) string<?) "\n"))) (if (args:get-arg "-list-disks") (print (string-intersperse (map cadr (hash-table-ref/default (read-config "megatest.config" #f #t) "disks" "'" ("none" ""))) "\n"))) ;;====================================================================== ;; Start the server - can be done in conjunction with -runall or -runtests (one day...) ;; we start the server if not running else start the client thread ;;====================================================================== (if (args:get-arg "-server") (begin |
︙ |
Modified runs.scm from [9e964d5db3] to [3e4e30fa7d].
︙ | |||
863 864 865 866 867 868 869 | 863 864 865 866 867 868 869 870 871 872 873 874 875 876 877 878 | - + + | (begin (debug:print 0 "Failed to setup, exiting") (exit 1))) (if (args:get-arg "-server") (open-run-close server:start db (args:get-arg "-server")) (if (not (or (args:get-arg "-runall") ;; runall and runtests are allowed to be servers (args:get-arg "-runtests"))) |
︙ |
Modified server.scm from [c2beddecc4] to [6fd4f98b66].
︙ | |||
42 43 44 45 46 47 48 | 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 | - + | (debug:print 4 "server:self-ping - I'm alive on " iface ":" port "!") (mutex-lock! *heartbeat-mutex*) (set! *server-loop-heart-beat* (current-seconds)) (mutex-unlock! *heartbeat-mutex*) (loop)))) (define (server:run hostn) |
︙ | |||
123 124 125 126 127 128 129 130 131 132 133 134 135 136 | 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 | + + + | ;; run server:keep-running in a parallel thread to monitor that the db is being ;; used and to shutdown after sometime if it is not. ;; (define (server:keep-running) ;; if none running or if > 20 seconds since ;; server last used then start shutdown ;; (let ((die-timeout ( (let loop ((count 0)) (thread-sleep! 4) ;; no need to do this very often (db:write-cached-data) ;; (print "Server running, count is " count) (if (< count 1) ;; 3x3 = 9 secs aprox (loop (+ count 1)) (let (;; (numrunning (open-run-close db:get-count-tests-running #f)) |
︙ | |||
151 152 153 154 155 156 157 | 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 | - + - + | (begin (open-run-close tasks:server-deregister tasks:open-db (cadr server-info) port: (caddr server-info)) (debug:print 0 "ERROR: Heartbeat failed, committing servercide") (exit)) (open-run-close tasks:server-update-heartbeat tasks:open-db (car server-info))) ;; (if ;; (or (> numrunning 0) ;; stay alive for two days after last access (if (> (+ *last-db-access* |
︙ | |||
186 187 188 189 190 191 192 | 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 | - + - + | ;; (old-handler) ;; (print-call-chain) (if (> trynum 0) (server:find-free-port-and-open iface s (+ p 1) trynum: (- trynum 1)) (debug:print-info 0 "Tried ports up to " p " but all were in use. Please try a different port range by starting the server with parameter \" -port N\" where N is the starting port number to use"))) (let ((zmq-url (conc "tcp://" iface ":" p))) |
︙ | |||
271 272 273 274 275 276 277 | 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 | - + + + + + - + - + - + - + | #t) (begin (debug:print-info 2 "Failed to login or connect to " conurl) (set! *runremote* #f) #f))))) (if (> numtries 0) (let ((exe (car (argv)))) |
︙ |