Overview
Comment: | Outlined delta get run and tests method |
---|---|
Downloads: | Tarball | ZIP archive | SQL archive |
Timelines: | family | ancestors | descendants | both | newdashboard |
Files: | files | file ages | folders |
SHA1: |
1eb20fd53587186f1a2355840d6b0ad8 |
User & Date: | matt on 2013-03-13 22:10:37 |
Other Links: | branch diff | manifest | tags |
Context
2013-03-14
| ||
00:32 | Data syncs from server to dashboard but CPU load is too high check-in: 95f5714070 user: matt tags: newdashboard | |
2013-03-13
| ||
22:10 | Outlined delta get run and tests method check-in: 1eb20fd535 user: matt tags: newdashboard | |
18:00 | Added new files from re-factoring dashboard code check-in: 2e5af83c88 user: mrwellan tags: newdashboard | |
Changes
Modified db.scm from [3f5b2d2f50] to [d7321ee147].
︙ | |||
751 752 753 754 755 756 757 | 751 752 753 754 755 756 757 758 759 760 761 762 763 764 765 766 | - + - - - + | ;; 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 ;; run-ids is a list of run-ids or a single number (define (db:get-tests-for-runs db run-ids testpatt states statuses #!key (not-in #t) |
︙ | |||
777 778 779 780 781 782 783 | 775 776 777 778 779 780 781 782 783 784 785 786 787 788 789 790 791 792 793 794 795 796 797 798 799 800 801 802 803 804 805 806 | - + - + | "')"))) (tests-match-qry (tests:match->sqlqry testpatt)) (qry (conc "SELECT id,run_id,testname,state,status,event_time,host,cpuload,diskfree,uname,rundir,item_path,run_duration,final_logf,comment " " FROM tests WHERE " (if run-ids (if (list? run-ids) (conc " run_id in (" (string-intersperse (map conc run-ids) ",") ") ") |
︙ |
Modified newdashboard.scm from [61d4d838fb] to [bd9e7cef68].
︙ | |||
371 372 373 374 375 376 377 | 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 | - - - + + + + + + + + + - - - - + + + + + + + - - + | ;;====================================================================== ;; TO-DO ;; 1. Make "data" hash-table hierarchial store of all displayed data ;; 2. Update synchash to understand "get-runs", "get-tests" etc. ;; 3. Add extraction of filters to synchash calls ;; |
Modified synchash.scm from [570e33d1fe] to [fc621c950a].
︙ | |||
54 55 56 57 58 59 60 61 | 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 | + + + - + + - + + + + + + + + + + + + + + + + + + + - + | (hash-table-delete! synchash id)))) orig-keys) (list changed deleted))) ;; (cdb:remote-run db:get-keys #f) ;; (cdb:remote-run db:get-num-runs #f "%") ;; (cdb:remote-run db:get-runs #f runnamepatt numruns *start-run-offset* keypatts) ;; ;; keynum => the field to use as the unique key (usually 0 but can be other field) ;; (define (synchash:client-get proc synckey keynum synchash . params) |