(evaluation, info, spans, extraInfo)
| 746 | } |
| 747 | |
| 748 | export function findFailure(evaluation, info, spans, extraInfo) { |
| 749 | let evSession = evaluation.getDatabase("session"); |
| 750 | let failingSpans = info.span = []; |
| 751 | let sessionIndex = eve.getDatabase("session").index; |
| 752 | |
| 753 | for(let queryBlockId of info.block) { |
| 754 | let found; |
| 755 | for(let block of evSession.blocks) { |
| 756 | if(block.id === queryBlockId) { |
| 757 | found = block; |
| 758 | break; |
| 759 | } |
| 760 | } |
| 761 | let scan = blockToFailingScan(found); |
| 762 | if(scan) { |
| 763 | let level = sessionIndex.alookup("build-node", scan.id); |
| 764 | if(level) { |
| 765 | let analyzerScanId = level.toValues()[0]; |
| 766 | let analyzerScan = sessionIndex.asObject(analyzerScanId, false, true); |
| 767 | |
| 768 | failingSpans.push({id: analyzerScanId, buildId: scan.id, block: found.id, start: analyzerScan.start, stop: analyzerScan.stop}); |
| 769 | } |
| 770 | } |
| 771 | } |
| 772 | return info; |
| 773 | } |
| 774 | |
| 775 | export function findRootDrawers(evaluation, info, spans, extraInfo) { |
| 776 | let queryId = `query|${info.requestId}`; |
nothing calls this directly
no test coverage detected