diff --git a/scripts/analyze-ui-test-times.js b/scripts/analyze-ui-test-times.js index 42b0364b0ce..6179acd257c 100644 --- a/scripts/analyze-ui-test-times.js +++ b/scripts/analyze-ui-test-times.js @@ -23,6 +23,8 @@ async function analyzeTestTimes() { console.log('[analyze-test-times] Processing historical results...\n'); const historicalAverages = new Map(); const historicalCounts = new Map(); +const variablesTimings = new Set(); +const jobACLDisabledTimings = new Set(); // Read each historical result file console.log('[analyze-test-times] Reading historical results directory...\n'); @@ -65,6 +67,15 @@ historicalFiles.forEach((file, index) => { const count = historicalCounts.get(test.name) || 0; historicalAverages.set(test.name, current + test.duration); historicalCounts.set(test.name, count + 1); + // Log out all timings for "Acceptance | variables > Job Variables Page: If the user has variable read access, but no variables, the subnav exists but contains only a message" + if (test.name === "Acceptance | variables > Job Variables Page: If the user has variable read access, but no variables, the subnav exists but contains only a message") { + console.log(`[analyze-test-times] Timings for ${test.name}: ${test.duration}`); + variablesTimings.add(test.duration); + } + if (test.name === "Unit | Ability | job: it permits job run when ACLs are disabled") { + console.log(`[analyze-test-times] Timings for ${test.name}: ${test.duration}`); + jobACLDisabledTimings.add(test.duration); + } }); } else { console.log(`[analyze-test-times] Skipping ${file} because it has failed tests or invalid format`); @@ -86,6 +97,9 @@ if (historicalAverages.size > 0) { console.log(`- ${name}: ${total}ms total, ${count} samples`); } } +// Log out variablesTimings +console.log(`[analyze-test-times] Variables timings: ${Array.from(variablesTimings).join(', ')}`); +console.log(`[analyze-test-times] Job ACL disabled timings: ${Array.from(jobACLDisabledTimings).join(', ')}`); // Calculate averages and compare const analysis = { timestamp: new Date().toISOString(),