chore: refine pipeline stage logs
This commit is contained in:
+2
-4
@@ -76,7 +76,7 @@ async function main() {
|
|||||||
}
|
}
|
||||||
ok(`Step2 完成: 新 findings 總計 ${newFindings.length} 筆`);
|
ok(`Step2 完成: 新 findings 總計 ${newFindings.length} 筆`);
|
||||||
|
|
||||||
step('Step3', 'Findings 合併');
|
step('Step3', 'Findings 合併與語意去重');
|
||||||
let repoDir;
|
let repoDir;
|
||||||
try {
|
try {
|
||||||
repoDir = cloneRepo(WORKSPACE);
|
repoDir = cloneRepo(WORKSPACE);
|
||||||
@@ -90,11 +90,9 @@ async function main() {
|
|||||||
const oldFindings = loadOldFindings(repoDir || WORKSPACE);
|
const oldFindings = loadOldFindings(repoDir || WORKSPACE);
|
||||||
const mergedFindings = mergeFindings(oldFindings, newFindings);
|
const mergedFindings = mergeFindings(oldFindings, newFindings);
|
||||||
ok(`Step3 merged findings total=${mergedFindings.length}`);
|
ok(`Step3 merged findings total=${mergedFindings.length}`);
|
||||||
|
|
||||||
step('Step3b', 'AI 語意去重');
|
|
||||||
const deduped = await deduplicateWithAI(mergedFindings);
|
const deduped = await deduplicateWithAI(mergedFindings);
|
||||||
const sorted = sortByLevel(deduped);
|
const sorted = sortByLevel(deduped);
|
||||||
ok(`Step3b dedup findings total=${sorted.length} (critical=${sorted.filter(f=>f.level==='critical').length} warning=${sorted.filter(f=>f.level==='warning').length} info=${sorted.filter(f=>f.level==='info').length})`);
|
ok(`Step3 去重完成: ${mergedFindings.length} -> ${sorted.length} 筆 (critical=${sorted.filter(f=>f.level==='critical').length} warning=${sorted.filter(f=>f.level==='warning').length} info=${sorted.filter(f=>f.level==='info').length})`);
|
||||||
|
|
||||||
step('Step4', 'AI 排除問題過濾');
|
step('Step4', 'AI 排除問題過濾');
|
||||||
const exclusions = loadExclusions(repoDir || WORKSPACE, repoState);
|
const exclusions = loadExclusions(repoDir || WORKSPACE, repoState);
|
||||||
|
|||||||
Reference in New Issue
Block a user