Megatest

Diff
Login

Differences From Artifact [dea05c65bd]:

To Artifact [0673e56b7f]:


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
297
298
299
300
301
























302
303
304
305
306
307
308
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
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312







-
+












-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+







    areadat))
	
;; initialize and refresh data
;;		
(define (dboard:general-updater con port)
  (for-each
   (lambda (window-id)
     (print "Processing for window-id " window-id)
     ;; (print "Processing for window-id " window-id)
     (let* ((window-dat   (hash-table-ref *windows* window-id))
	    (areas        (data-areas     window-dat))
	    (tabs         (data-tabs      window-dat))
	    (tab-ids      (hash-table-keys tabs))
	    (current-tab  (if (null? tab-ids)
			      #f
			      (hash-table-ref tabs (car tab-ids))))
	    (current-tree (if (null? tab-ids) #f (tab-tree current-tab)))
	    (seen-nodes   (make-hash-table)))
       ;; now for each area in the window gather the data
       (for-each
	(lambda (area-name)
	  (print "Processing for area-name " area-name)
	  (let* ((area-dat (hash-table-ref areas area-name))
		 (runs     (areadat-runs   area-dat)))
	    (print "Processing " area-dat " for area-name " area-name)
	    (areadb:populate-run-info area-dat)
	    (for-each 
	     (lambda (run-id)
	       (let* ((run     (hash-table-ref runs run-id))
		      (target  (rundat-target run))
		      (runname (rundat-runname run)))
		 (if current-tree
		     (let* ((partial-path (append (string-split target "/")(list runname)))
			    (full-path    (cons area-name partial-path)))
		       (if (not (hash-table-exists? seen-nodes full-path))
			   (begin
			     (print "INFO: Adding node " partial-path " to section " area-name)
			     (tree:add-node current-tree "Areas" full-path)
			     (hash-table-set! seen-nodes full-path #t)))))
		 ))
	     (hash-table-keys runs))))
	  ;; (print "Processing for area-name " area-name)
	  (let* ((area-dat  (hash-table-ref areas area-name))
		 (area-path (areadat-path   area-dat))
		 (runs      (areadat-runs   area-dat)))
	    (if (hash-table-ref/default *changed-main* area-path 'processed)
		(begin
		  (print "Processing " area-dat " for area-name " area-name)
		  (hash-table-set! *changed-main* area-path #f)
		  (areadb:populate-run-info area-dat)
		  (for-each 
		   (lambda (run-id)
		     (let* ((run     (hash-table-ref runs run-id))
			    (target  (rundat-target run))
			    (runname (rundat-runname run)))
		       (if current-tree
			   (let* ((partial-path (append (string-split target "/")(list runname)))
				  (full-path    (cons area-name partial-path)))
			     (if (not (hash-table-exists? seen-nodes full-path))
				 (begin
				   (print "INFO: Adding node " partial-path " to section " area-name)
				   (tree:add-node current-tree "Areas" full-path)
				   (hash-table-set! seen-nodes full-path #t)))))
		       ))
		   (hash-table-keys runs))))))
	(hash-table-keys areas))))
   (hash-table-keys *windows*)))

;;======================================================================
;; D A S H B O A R D   D B 
;;======================================================================