Megatest

Check-in [9ab2add492]
Login
Overview
Comment:clean-up
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | v1.65-try3
Files: files | file ages | folders
SHA1: 9ab2add492901a823f238b673f091a011a259f95
User & Date: matt on 2019-12-07 19:57:34
Other Links: branch diff | manifest | tags
Context
2019-12-08
16:43
Merged v1.65 changes up to 027877 into v1.65-try3 Leaf check-in: 6fa2e78406 user: matt tags: v1.65-try3
2019-12-07
19:57
clean-up check-in: 9ab2add492 user: matt tags: v1.65-try3
2019-12-06
16:03
More clean up. Added missing import of imports in megatest.scm and dashboard.scm. check-in: 77cd1aff88 user: mrwellan tags: v1.65-try3
Changes

Modified common_records.scm from [6eee551227] to [349188aa4b].

18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
;;
;;======================================================================

;; (use trace)
(use typed-records)

;; globals - modules that include this need these here
(define *default-log-port* (current-error-port))
(define *logging* #f)
(define *functions* (make-hash-table)) ;; symbol => fn ### TEMPORARY!!!
;; (define *toppath* #f)
(define *transport-type* 'http)

#;(define (exec-fn fn . params)
  (if (hash-table-exists? *functions* fn)







<







18
19
20
21
22
23
24

25
26
27
28
29
30
31
;;
;;======================================================================

;; (use trace)
(use typed-records)

;; globals - modules that include this need these here

(define *logging* #f)
(define *functions* (make-hash-table)) ;; symbol => fn ### TEMPORARY!!!
;; (define *toppath* #f)
(define *transport-type* 'http)

#;(define (exec-fn fn . params)
  (if (hash-table-exists? *functions* fn)
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
      #f))

(define (http-transport:server-dat-update-last-access vec)
  (if (vector? vec)
      (vector-set! vec 5 (current-seconds))
      (begin
	(print-call-chain (current-error-port))
	(debug:print-error 0 *default-log-port* "call to http-transport:server-dat-update-last-access with non-vector!!"))))

;;======================================================================
;;
;;======================================================================


;; allow these queries through without starting a server







|







61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
      #f))

(define (http-transport:server-dat-update-last-access vec)
  (if (vector? vec)
      (vector-set! vec 5 (current-seconds))
      (begin
	(print-call-chain (current-error-port))
	(debug:print-error 0 (current-error-port) "call to http-transport:server-dat-update-last-access with non-vector!!"))))

;;======================================================================
;;
;;======================================================================


;; allow these queries through without starting a server

Modified megamod.scm from [6c4232b557] to [acafcfe4d9].

148
149
150
151
152
153
154

155
156
157
158
159
160
161
(include "megatest-fossil-hash.scm")
(include "megatest-version.scm")

;; globals
(define *writes-total-delay* 0)
(define *exit-started* #f)
(define *last-monitor-update-time* 0)


;; The watchdog is to keep an eye on things like db sync etc.
;;

;; TODO: for multiple areas, we will have multiple watchdogs; and multiple threads to manage
(define *watchdog* (make-thread
		    (lambda ()







>







148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
(include "megatest-fossil-hash.scm")
(include "megatest-version.scm")

;; globals
(define *writes-total-delay* 0)
(define *exit-started* #f)
(define *last-monitor-update-time* 0)
(define *default-log-port* (current-error-port))

;; The watchdog is to keep an eye on things like db sync etc.
;;

;; TODO: for multiple areas, we will have multiple watchdogs; and multiple threads to manage
(define *watchdog* (make-thread
		    (lambda ()

Modified megatest.scm from [e30d3b49bb] to [986c3210f8].

69
70
71
72
73
74
75

76
77
78
79
80
81
82
;; (declare (uses tasks)) ;; only used for debugging.
;; (declare (uses env))
;; (declare (uses diff-report))
;; (declare (uses ftail))
;; (import ftail)

(define *db* #f) ;; this is only for the repl, do not use in general!!!!


(include "common_records.scm")
(include "key_records.scm")
(include "db_records.scm")
(include "run_records.scm")
(include "megatest-fossil-hash.scm")








>







69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
;; (declare (uses tasks)) ;; only used for debugging.
;; (declare (uses env))
;; (declare (uses diff-report))
;; (declare (uses ftail))
;; (import ftail)

(define *db* #f) ;; this is only for the repl, do not use in general!!!!
(define *default-log-port* (current-error-port))

(include "common_records.scm")
(include "key_records.scm")
(include "db_records.scm")
(include "run_records.scm")
(include "megatest-fossil-hash.scm")