Overview
Comment: | Minimised data transferred on dashboard updates |
---|---|
Downloads: | Tarball | ZIP archive | SQL archive |
Timelines: | family | ancestors | descendants | both | v1.55 |
Files: | files | file ages | folders |
SHA1: |
0f8bb62316d54bc07a40a87210f489bd |
User & Date: | matt on 2013-11-02 11:50:49 |
Other Links: | branch diff | manifest | tags |
Context
2013-11-02
| ||
18:37 | Adding additional safety net for testdat.db access check-in: 0e0610387a user: matt tags: v1.55 | |
11:50 | Minimised data transferred on dashboard updates check-in: 0f8bb62316 user: matt tags: v1.55 | |
01:18 | Added test script check-in: 3022617fbd user: matt tags: v1.55 | |
Changes
Modified dashboard.scm from [e725563a07] to [a8322f10a6].
︙ | |||
223 224 225 226 227 228 229 | 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 | - + + | ;; trim runs to only those that are changing often here ;; (for-each (lambda (run) (let* ((run-id (db:get-value-by-header run header "id")) (tests (mt:get-tests-for-run run-id testnamepatt states statuses not-in: *hide-not-hide* sort-by: sort-by |
︙ | |||
459 460 461 462 463 464 465 | 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 | - + | (vector -1 -1 "" "" "" 0 "" "" 0 "" "" "" 0 "" "") (car matching)))) (testname (db:test-get-testname test)) (itempath (db:test-get-item-path test)) (testfullname (test:test-get-fullname test)) (teststatus (db:test-get-status test)) (teststate (db:test-get-state test)) |
︙ |
Modified db.scm from [10887bc2bd] to [f462a4658f].
︙ | |||
553 554 555 556 557 558 559 | 553 554 555 556 557 558 559 560 561 562 563 564 565 566 | - - - | (sqlite3:for-each-row (lambda (tot) (debug:print-info 0 "Records count after clean: " tot)) count-stmt))) (map sqlite3:finalize! statements) (sqlite3:finalize! count-stmt) (db:find-and-mark-incomplete db) (sqlite3:execute db "VACUUM;"))) |
︙ | |||
967 968 969 970 971 972 973 | 964 965 966 967 968 969 970 971 972 973 974 975 976 977 978 979 980 981 982 | - + - - + + + + | ;; states and statuses are lists, turn them into ("PASS","FAIL"...) and use NOT IN ;; i.e. these lists define what to NOT show. ;; states and statuses are required to be lists, empty is ok ;; not-in #t = above behaviour, #f = must match (define (db:get-tests-for-run db run-id testpatt states statuses offset limit not-in sort-by sort-order #!key |
︙ | |||
998 999 1000 1001 1002 1003 1004 | 997 998 999 1000 1001 1002 1003 1004 1005 1006 1007 1008 1009 1010 1011 | - + | (conc " AND ( " states-qry " AND " statuses-qry " ) ")) (states-qry (conc " AND " states-qry)) (statuses-qry (conc " AND " statuses-qry)) (else ""))) (tests-match-qry (tests:match->sqlqry testpatt)) |
︙ | |||
1023 1024 1025 1026 1027 1028 1029 | 1022 1023 1024 1025 1026 1027 1028 1029 1030 1031 1032 1033 1034 1035 1036 1037 1038 1039 1040 1041 1042 1043 1044 1045 1046 1047 1048 1049 1050 1051 1052 | + + + - + + + + + + + + + + + + + + | (sqlite3:for-each-row (lambda (a . b) ;; id run-id testname state status event-time host cpuload diskfree uname rundir item-path run-duration final-logf comment) (set! res (cons (apply vector a b) res))) ;; id run-id testname state status event-time host cpuload diskfree uname rundir item-path run-duration final-logf comment) res))) db qry run-id ) (case qryvals ((shortlist)(map db:test-short-record->norm res)) ((#f) res) |
︙ | |||
1206 1207 1208 1209 1210 1211 1212 | 1221 1222 1223 1224 1225 1226 1227 1228 1229 1230 1231 1232 1233 1234 1235 1236 1237 1238 | - - - - + + + + | (sqlite3:execute db "UPDATE tests SET state=?,status=? WHERE id=?;" newstate newstatus test-id)) (else (if newstate (sqlite3:execute db "UPDATE tests SET state=? WHERE id=?;" newstate test-id)) (if newstatus (sqlite3:execute db "UPDATE tests SET status=? WHERE id=?;" newstatus test-id)) (if newcomment (sqlite3:execute db "UPDATE tests SET comment=? WHERE id=?;" newcomment test-id)))) (mt:process-triggers test-id newstate newstatus)) |
︙ |