Files
ruflo/v3/@claude-flow
ClaudeandRuFlo 985bdcddac dream(performance): #3976 fix CI timeout on the new complexity-growth test
CI: "Test Suite (ubuntu-latest)" failed on 1a5c8b83 -- root-caused, fixed.

ci-test-ratchet's summary showed an opaque `Error: STACK_TRACE_ERROR` for
"scales near-linearly with node count..." Reproduced the exact CI
invocation locally (CI=1 node node_modules/vitest/vitest.mjs run ... from
repo root, the same command scripts/ci-test-ratchet.mjs spawns, after
`npm install` at root) and got the real error: the legacy O(n^2)
algorithm's warmup+3 trials at n=1600, for both algorithms at both sizes,
exceeded vitest's default 5000ms per-test timeout on this invocation path
-- the same failure class PR #3754 (2026-10-05) hit and fixed the same way.

Fix: explicit 30000ms timeout on the test, trial count 3->2 to trim real
wall-clock cost further. Re-verified against the exact CI invocation:
4/4 tests pass, ~3s total (comfortably inside the new budget). Measured
growth ratios in this run are consistent with the range already disclosed
in the gist/issue/PR -- no change to the reported evidence, only to the
test's own timeout margin.

Co-Authored-By: RuFlo <ruv@ruv.net>
Claude-Session: https://claude.ai/code/session_01JL2GEEWf9ezZo1X1wQ2Ls6
2026-10-10 06:47:01 +00:00
..
…