Overview
Comment: | Convert get run stats to NOT use local access, ALL db busy checks hard turned off |
---|---|
Downloads: | Tarball | ZIP archive | SQL archive |
Timelines: | family | ancestors | descendants | both | v1.60-zero-local-access |
Files: | files | file ages | folders |
SHA1: |
ffdb01323debcfa45f5e0774b6eac873 |
User & Date: | matt on 2015-11-05 04:16:27 |
Other Links: | branch diff | manifest | tags |
Context
2015-11-11
| ||
20:50 | Merged in recent changes to v1.60 in prep for meld check-in: ab0d1e7633 user: matt tags: v1.60-zero-local-access | |
2015-11-05
| ||
04:16 | Convert get run stats to NOT use local access, ALL db busy checks hard turned off check-in: ffdb01323d user: matt tags: v1.60-zero-local-access | |
2015-11-04
| ||
14:38 | Better testconfig handling check-in: beccdd88ab user: mrwellan tags: v1.60 | |
Changes
Modified api.scm from [7425d00411] to [d2df3c2dd1].
︙ | |||
214 215 216 217 218 219 220 221 222 223 224 225 226 227 | 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 | + | ((get-runs) (apply db:get-runs dbstruct params)) ((get-num-runs) (apply db:get-num-runs dbstruct params)) ((get-all-run-ids) (db:get-all-run-ids dbstruct)) ((get-prev-run-ids) (apply db:get-prev-run-ids dbstruct params)) ((get-run-ids-matching-target) (apply db:get-run-ids-matching-target dbstruct params)) ((get-runs-by-patt) (apply db:get-runs-by-patt dbstruct params)) ((get-run-name-from-id) (apply db:get-run-name-from-id dbstruct params)) ((get-run-stats) (apply db:get-run-stats dbstruct params)) ;; STEPS ((get-steps-data) (apply db:get-steps-data dbstruct params)) ((get-steps-for-test) (apply db:get-steps-for-test dbstruct params)) ;; MISC ((have-incompletes?) (apply db:have-incompletes? dbstruct params)) |
︙ |
Modified dashboard.scm from [3d081ca889] to [7bcb6b3970].
︙ | |||
88 89 90 91 92 93 94 | 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 | - - + + + + | (print "Failed to find megatest.config, exiting") (exit 1))) (define *useserver* (or(not (args:get-arg "-use-local")) (configf:lookup *configdat* "dashboard" "use-server"))) (define *dbdir* (db:dbfile-path #f)) ;; (conc (configf:lookup *configdat* "setup" "linktree") "/.db")) |
︙ |
Modified db.scm from [3b21c0f4f0] to [a67df6fe11].
︙ | |||
1820 1821 1822 1823 1824 1825 1826 | 1820 1821 1822 1823 1824 1825 1826 1827 1828 1829 1830 1831 1832 1833 1834 1835 1836 1837 1838 1839 1840 1841 1842 1843 1844 1845 1846 1847 1848 1849 1850 1851 1852 1853 1854 1855 1856 1857 1858 1859 1860 1861 | - - + + - + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + - | "SELECT id FROM runs WHERE state != 'deleted' ORDER BY event_time DESC;") (reverse run-ids))))) ;; get some basic run stats ;; ;; ( (runname (( state count ) ... )) ;; ( ... |
︙ | |||
3160 3161 3162 3163 3164 3165 3166 | 3148 3149 3150 3151 3152 3153 3154 3155 3156 3157 3158 3159 3160 3161 3162 | - + | (hash-table-set! tests-hash full-testname testdat)))) results) (if (null? tal) (map cdr (hash-table->alist tests-hash)) ;; return a list of the most recent tests (loop (car tal)(cdr tal)))))))))) (define (db:delay-if-busy dbdat #!key (count 6)) |
︙ |
Modified dcommon.scm from [5d1caffec5] to [f2eb55f8d3].
︙ | |||
398 399 400 401 402 403 404 | 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 | - + + + | general-matrix)) (define (dcommon:run-stats dbstruct) (let* ((stats-matrix (iup:matrix expand: "YES")) (changed #f) (updater (lambda () |
︙ |
Modified megatest.scm from [47f4506230] to [a6b3a87608].
︙ | |||
325 326 327 328 329 330 331 | 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 | + - + | (define *watchdog* (make-thread (lambda () (thread-sleep! 0.05) ;; delay for startup (let ((legacy-sync (common:legacy-sync-required)) (debug-mode (debug:debug-mode 1)) (last-time (current-seconds))) (if legacy-sync |
︙ |
Modified rmt.scm from [58033889c8] to [1253a2efe8].
︙ | |||
620 621 622 623 624 625 626 627 628 629 630 631 632 633 | 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 | + + + + + + + + + + + + + + + + + + + + | (debug:print 4 "Got tests for run-id " run-id ", test-name " test-name ", item-path " item-path ": " results) (if (and (null? results) (not (null? tal))) (loop (car tal)(cdr tal)) (if (null? results) #f (car results)))))))))) ;; call with run-id #f ;; (define (rmt:get-all-run-stats) (let* ((runs-dat (rmt:get-runs "%" #f #f '())) (header (db:get-header runs-dat)) (runs (db:get-rows runs-dat))) (fold (lambda (run currdat) (let* ((run-id (db:get-value-by-header run header "id")) (run-name (db:get-value-by-header run header "runname"))) (if (and run-id run-name) (append (rmt:get-run-stats run-id run-name) currdat) (begin (debug:print 0 "ERROR: Bad run-id or run-name in " run) currdat)))) '() runs))) (define (rmt:get-run-stats run-id run-name) (rmt:send-receive 'get-run-stats run-id (list run-id run-name))) ;;====================================================================== ;; S T E P S ;;====================================================================== ;; Getting steps is more complicated. ;; ;; If given work area |
︙ |