Overview
Comment: | Merged v1.60 |
---|---|
Downloads: | Tarball | ZIP archive | SQL archive |
Timelines: | family | ancestors | descendants | both | rerun-behavior-fixes |
Files: | files | file ages | folders |
SHA1: |
db227d3471a55d0d34a8190f8c0a457f |
User & Date: | matt on 2014-10-23 23:53:42 |
Other Links: | branch diff | manifest | tags |
Context
2014-10-24
| ||
00:25 | Merged rerun-behavior-fixes check-in: ef02bf7a14 user: matt tags: v1.60 | |
2014-10-23
| ||
23:53 | Merged v1.60 Closed-Leaf check-in: db227d3471 user: matt tags: rerun-behavior-fixes | |
23:51 | Added more exception and signal handlers check-in: 086bd3226a user: matt tags: v1.60 | |
18:26 | Partial implemenation of correct rerun behaviour check-in: f9f3796ce3 user: mrwellan tags: rerun-behavior-fixes | |
Changes
Modified db.scm from [69fe2b8740] to [a92867ffdc].
︙ | |||
283 284 285 286 287 288 289 | 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 | + + - + + - - - + + + + + + + - | (sqlite3:finalize! (db:get-db dbstruct #f)) (let* ((local (dbr:dbstruct-get-local dbstruct)) (rundb (dbr:dbstruct-get-rundb dbstruct))) (if local (for-each (lambda (db) (if (sqlite3:database? db) (begin (sqlite3:interrupt! db) |
︙ |
Modified http-transport.scm from [457c02e647] to [cf3cf50511].
︙ | |||
246 247 248 249 250 251 252 | 246 247 248 249 250 251 252 253 254 255 256 257 258 259 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 | + + + - + + + + + + - - - - - - + + + + + + | (res #f)) (handle-exceptions exn (if (> numretries 0) (begin (mutex-unlock! *http-mutex*) (thread-sleep! 1) (handle-exceptions exn (debug:print 0 "WARNING: closing connections failed. Server at " fullurl " almost certainly dead") |
︙ |
Modified launch.scm from [0c1efd6507] to [09c74e18be].
︙ | |||
89 90 91 92 93 94 95 96 97 98 99 100 101 102 | 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 | + + | (if (and (file-exists? fulln) (file-execute-access? fulln)) fulln runscript))))) ;; assume it is on the path (rollup-status 0)) (change-directory top-path) ;; (set-signal-handler! signal/int (lambda () ;; Do not run the test if it is REMOVING, RUNNING, KILLREQ or REMOTEHOSTSTART, ;; Mark the test as REMOTEHOSTSTART *IMMEDIATELY* ;; (let ((test-info (rmt:get-testinfo-state-status run-id test-id))) (if (not (member (db:test-get-state test-info) '("REMOVING" "REMOTEHOSTSTART" "RUNNING" "KILLREQ"))) (tests:test-force-state-status! run-id test-id "REMOTEHOSTSTART" "n/a") (debug:print 0 "ERROR: test state is " (db:test-get-state test-info) ", cannot proceed"))) |
︙ |
Modified megatest.scm from [edf456cc83] to [456389bec5].
︙ | |||
277 278 279 280 281 282 283 284 285 286 287 288 289 290 | 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 | + + + + + + + + + + + + + + + + + + + + + + | "-logging" "-v" ;; verbose 2, more than normal (normal is 1) "-q" ;; quiet 0, errors/warnings only ) args:arg-hash 0)) (define (std-exit-procedure) (rmt:print-db-stats) (let ((run-ids (hash-table-keys *db-local-sync*))) (if (not (null? run-ids)) (db:multi-db-sync run-ids 'new2old))) (if *dbstruct-db* (db:close-all *dbstruct-db*)) (if *megatest-db* (begin (sqlite3:interrupt! *megatest-db*) (sqlite3:finalize! *megatest-db* #t))) (if *task-db* (let ((db (vector-ref *task-db* 0))) (sqlite3:interrupt! db) (sqlite3:finalize! db #t)))) (define (std-signal-handler signum) (signal-mask! signum) (debug:print 0 "ERROR: Received signal " signum " exiting promptly") (std-exit-procedure) (exit)) (set-signal-handler! signal/int std-signal-handler) (set-signal-handler! signal/term std-signal-handler) (if (args:get-arg "-log") (let ((oup (open-output-file (args:get-arg "-log")))) (debug:print-info 0 "Sending log output to " (args:get-arg "-log")) (current-error-port oup) (current-output-port oup))) (if (or (args:get-arg "-h") |
︙ | |||
345 346 347 348 349 350 351 | 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 | - + - - - - - - - | (if (args:get-arg "-itempatt") (let ((newval (conc (args:get-arg "-testpatt") "/" (args:get-arg "-itempatt")))) (debug:print 0 "WARNING: -itempatt has been deprecated, please use -testpatt testpatt/itempatt method, new testpatt is "newval) (hash-table-set! args:arg-hash "-testpatt" newval) (hash-table-delete! args:arg-hash "-itempatt"))) |
︙ |
Modified runs.scm from [305bca0ebf] to [82ef1f6781].
︙ | |||
215 216 217 218 219 220 221 222 223 224 | 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 | + + - + | (test-names #f) ;; (tests:filter-test-names all-test-names test-patts)) (required-tests #f) ;;(lset-intersection equal? (string-split test-patts ",") test-names))) ;; test-names)) ;; Added test-names as initial for required-tests but that failed to work (task-key (conc (hash-table->alist flags) " " (get-host-name) " " (current-process-id))) (tasks-db (tasks:open-db))) (set-signal-handler! signal/int (lambda (signum) (signal-mask! signum) (let ((tdb (tasks:open-db))) (tasks:set-state-given-param-key tdb task-key "killed") ;; (sqlite3:interrupt! tdb) ;; seems silly? (sqlite3:finalize! tdb)) |
︙ |
tests/installall/config/megatest.config.dat became a regular file with contents [736a5da885].
tests/installall/config/runconfigs.config.dat became a regular file with contents [3b8f260acb].