Overview
Comment: | Fixed typos's etc. |
---|---|
Downloads: | Tarball | ZIP archive | SQL archive |
Timelines: | family | ancestors | descendants | both | test-broken-up-queries |
Files: | files | file ages | folders |
SHA1: |
b88e2e296bdb8c9c7c884ad45e401479 |
User & Date: | matt on 2013-10-31 02:01:09 |
Other Links: | branch diff | manifest | tags |
Context
2013-10-31
| ||
09:01 |
Don't update central with run time - do it once test is completed or deprecate that field in tests forever.
NOTE: This didn't make any substantial difference to throughput. Closed-Leaf check-in: 461f5cc510 user: matt tags: test-broken-up-queries | |
02:01 | Fixed typos's etc. check-in: b88e2e296b user: matt tags: test-broken-up-queries | |
00:59 | Testing broken up queries vs. monolithic queries check-in: bdf6223bb0 user: matt tags: test-broken-up-queries | |
Changes
Modified db.scm from [da1307725b] to [1a94c53bbb].
︙ | |||
1215 1216 1217 1218 1219 1220 1221 | 1215 1216 1217 1218 1219 1220 1221 1222 1223 1224 1225 1226 1227 1228 1229 1230 1231 1232 1233 1234 1235 1236 1237 1238 1239 1240 1241 | - + + - + + | ;; (define (db:get-count-test-items-running db run-id testname) (let ((res 0)) (sqlite3:for-each-row (lambda (count) (set! res count)) db |
︙ | |||
1641 1642 1643 1644 1645 1646 1647 | 1643 1644 1645 1646 1647 1648 1649 1650 1651 1652 1653 1654 1655 1656 1657 1658 | - - + + | (define (cdb:test-set-status-state serverdat test-id status state msg) (if (member state '("LAUNCHED" "REMOTEHOSTSTART")) (cdb:client-call serverdat 'set-test-start-time #t *default-numtries* test-id)) (if msg (cdb:client-call serverdat 'state-status-msg #t *default-numtries* state status msg test-id) (cdb:client-call serverdat 'state-status #t *default-numtries* state status test-id))) ;; run-id test-name item-path minutes cpuload diskfree tmpfree) |
︙ | |||
1710 1711 1712 1713 1714 1715 1716 | 1712 1713 1714 1715 1716 1717 1718 1719 1720 1721 1722 1723 1724 1725 1726 | - + | (define db:queries (list '(register-test "INSERT OR IGNORE INTO tests (run_id,testname,event_time,item_path,state,status) VALUES (?,?,strftime('%s','now'),?,'NOT_STARTED','n/a');") ;; Test state and status '(set-test-state "UPDATE tests SET state=? WHERE id=?;") '(set-test-status "UPDATE tests SET state=? WHERE id=?;") '(state-status "UPDATE tests SET state=?,status=? WHERE id=?;") |
︙ | |||
2141 2142 2143 2144 2145 2146 2147 | 2143 2144 2145 2146 2147 2148 2149 2150 2151 2152 2153 2154 2155 2156 2157 2158 2159 2160 2161 2162 2163 2164 2165 2166 2167 2168 | - + - + | (define (db:test-get-id-state-status-pass-fail-count db testname item-path) (let ((res #f)) ;; First get the pass count (sqlite3:for-each-row (lambda (id state status pcount fcount) ;; 0 1 2 3 4 5 |
︙ |
Modified mt.scm from [706b3d5b6a] to [d277943dd0].
︙ | |||
147 148 149 150 151 152 153 | 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 | - + - - - - - - - + + + + + + + - + - + | (define (mt:roll-up-pass-fail-counts run-id test-name item-path status) (if (and (not (equal? item-path "")) (member status '("PASS" "WARN" "FAIL" "WAIVED" "RUNNING" "CHECK" "SKIP"))) (begin (cdb:update-pass-fail-counts *runremote* run-id test-name) (if (equal? status "RUNNING") ;; This test is RUNNING, if the top test is not set to RUNNING then set it to RUNNING |
︙ |