Skip to content

Commit 50a5041

Browse files
committed
test: expose connectivity sweep progress
1 parent 2c47a09 commit 50a5041

1 file changed

Lines changed: 11 additions & 1 deletion

File tree

browser_tests/tests/customNodes/connectivity.spec.ts

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,7 @@ import { fitToViewInstant } from '@e2e/fixtures/utils/fitToView'
5454
const PLAN_SETUP_MS = 120_000
5555
const SWEEP_MS_PER_PAIR = 40
5656
const ISOLATED_MS_PER_PAIR = PLAN_SETUP_MS
57+
const PAIRS_PER_BATCH = 100
5758
// Same discipline for the drag pass, whose edge list grows with every
5859
// connectivity pack: one drag per edge per renderer. This test carried a flat
5960
// 120s cap over today's 6 packs (16 drags) until the since-removed cloud
@@ -445,7 +446,16 @@ async function runPairsInPage(
445446
page: Page,
446447
pairs: PlannedPair[]
447448
): Promise<PairResult[]> {
448-
return await evaluatePairs(page, pairs)
449+
const results: PairResult[] = []
450+
for (let start = 0; start < pairs.length; start += PAIRS_PER_BATCH) {
451+
const batch = pairs.slice(start, start + PAIRS_PER_BATCH)
452+
const firstKey = `${batch[0].producer.nodeType}.${batch[0].producer.slotName}`
453+
console.log(
454+
`connectivity shared batch: ${start + 1}-${start + batch.length}/${pairs.length} starting at ${firstKey}`
455+
)
456+
results.push(...(await evaluatePairs(page, batch)))
457+
}
458+
return results
449459
}
450460

451461
function evaluatePairs(

0 commit comments

Comments
 (0)