Megatest

Check-in [c028f8bd3a]
Login
Overview
Comment:catch up workspace
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | fix-chained-waiton
Files: files | file ages | folders
SHA1: c028f8bd3a884e2c645e2b64676bfed89fe4c7fe
User & Date: bb on 2016-07-25 20:43:15
Other Links: branch diff | manifest | tags
Context
2016-07-25
20:43
catch up workspace Closed-Leaf check-in: c028f8bd3a user: bb tags: fix-chained-waiton
2016-06-21
04:45
Merged v1.61 into fix-chained-waiton check-in: 750fe28e23 user: matt tags: fix-chained-waiton
Changes

Modified runs.scm from [d689aacbb6] to [6465e37bed].

994
995
996
997
998
999
1000
1001

1002
1003
1004
1005
1006
1007
1008
1009
1010
1011
1012
1013
1014
1015
1016
1017

1018
1019
1020
1021
1022
1023
1024
				 (if (and mcj (string->number mcj))
				     (string->number mcj)
				     1))) ;; length of the register queue ahead
	(reglen                (if (number? reglen-in) reglen-in 1))
	(last-time-incomplete  (- (current-seconds) 900)) ;; force at least one clean up cycle
	(last-time-some-running (current-seconds))
	(tdbdat                (tasks:open-db)))


    ;; Initialize the test-registery hash with tests that already have a record
    ;; convert state to symbol and use that as the hash value
    (for-each (lambda (trec)
		(let ((id (db:test-get-id        trec))
		      (tn (db:test-get-testname  trec))
		      (ip (db:test-get-item-path trec))
		      (st (db:test-get-state     trec)))
		  (if (not (equal? st "DELETED"))
		      (hash-table-set! test-registry (db:test-make-full-name tn ip) (string->symbol st)))))
	      tests-info)
    (set! max-retries (if (and max-retries (string->number max-retries))(string->number max-retries) 100))

    (let loop ((hed         (car sorted-test-names))
	       (tal         (cdr sorted-test-names))
	       (reg         '()) ;; registered, put these at the head of tal 
	       (reruns      '()))


      (set! reruns '()) ;; force it to test impact!!

    (if (not (null? reruns))(debug:print-info 4 "reruns=" reruns))
    

      ;; Here we mark any old defunct tests as incomplete. Do this every fifteen minutes







|
>
















>







994
995
996
997
998
999
1000
1001
1002
1003
1004
1005
1006
1007
1008
1009
1010
1011
1012
1013
1014
1015
1016
1017
1018
1019
1020
1021
1022
1023
1024
1025
1026
				 (if (and mcj (string->number mcj))
				     (string->number mcj)
				     1))) ;; length of the register queue ahead
	(reglen                (if (number? reglen-in) reglen-in 1))
	(last-time-incomplete  (- (current-seconds) 900)) ;; force at least one clean up cycle
	(last-time-some-running (current-seconds))
	(tdbdat                (tasks:open-db)))
    ;; BB: suspicion: sorted-tests violate dependency topology
    (debug:print 0 "BB> sorted-test-names: "sorted-test-names)
    ;; Initialize the test-registery hash with tests that already have a record
    ;; convert state to symbol and use that as the hash value
    (for-each (lambda (trec)
		(let ((id (db:test-get-id        trec))
		      (tn (db:test-get-testname  trec))
		      (ip (db:test-get-item-path trec))
		      (st (db:test-get-state     trec)))
		  (if (not (equal? st "DELETED"))
		      (hash-table-set! test-registry (db:test-make-full-name tn ip) (string->symbol st)))))
	      tests-info)
    (set! max-retries (if (and max-retries (string->number max-retries))(string->number max-retries) 100))

    (let loop ((hed         (car sorted-test-names))
	       (tal         (cdr sorted-test-names))
	       (reg         '()) ;; registered, put these at the head of tal 
	       (reruns      '()))


      (set! reruns '()) ;; force it to test impact!!

    (if (not (null? reruns))(debug:print-info 4 "reruns=" reruns))
    

      ;; Here we mark any old defunct tests as incomplete. Do this every fifteen minutes