Repository navigation
test(renderer): give the repeated project turn link test an explicit 15s budget - #533
PeterGuy326 wants to merge 1 commit into
Conversation
…15s budget The test renders the full App, opens the project workspace and re-anchors the same turn twice inside a loop, so its cold cost sits above the 5s vitest default on loaded runners. Fresh runs of main currently fail on Node 24 / macos-14 with 'Test timed out in 5000ms' (#532), which keeps the required check red for every open PR. The same commit passed Node 24 / ubuntu-latest in that run and passed both platforms on a plain rerun, so this is per-test budget, not a hang. 15s matches the other full-App tests in this file, and is the same treatment #531 gave the toolbar test. Refs #532
|
Third independent occurrence, this time on #527 after its branch update — same test, same signature, and
Three different merge bases, three different runs, the same single test in I have rerun the |
Measured, not inferred — the test is 7.8% over budget, and the file routinely runs tests at 4–8sI re-ran the
Whole file: What this settles
Since opening this PR the test has now failed 4 times in a row on |
|
Superseded — closing this rather than rebasing. While this PR was open, #534 ( #534 went further and also fixed the HireDrawer binding and the docs undo/redo test from the same family, so there is nothing left here that The timing evidence in the two comments above still stands as the measurement behind the fix, and applies equally to #534's change: 5389ms actual against a 5000ms default on Branch |
Preflight
main@ed94fca.Summary
reanchors a repeated project turn link without replacing the conversation draftrenders the fullApp, opens the project workspace and re-anchors the same turn twice inside aforloop, so its cold cost sits above the 5s vitest default on loaded runners. Fresh runs ofmaincurrently fail onNode 24 / macos-14withTest timed out in 5000ms(#532), which keeps that required check red for every open PR.This gives the test an explicit 15s budget with a comment recording why — the same treatment #531 gave the toolbar test, and matching the other full-App tests in this file that already carry
10_000/15_000budgets.Evidence
mained94fca36518952016, job109247408016(Node 24 / macos-14)Test Files 1 failed | 70 passed (71),Tests 1 failed | 884 passed (885),App.test.tsx:2667:1→Error: Test timed out in 5000ms.b6cedd336517817744attempt 1, job109243938638(Node 24 / macos-14)b6cedd336517817744attempt 1,Node 24 / ubuntu-latestsuccess— same commit, same codeb6cedd336517817744attempt 2successon both platformsSame commit passes on ubuntu in the same run, and passes on macOS on a rerun with no code change — so the test sits at the 5s edge and loses under runner load. It is not a hang and it is not caused by any PR's diff: the failing test never touches the thought-trail code path.
Assumptions
ubuntu-latestin the same run.10_000/15_000budgets, and this is exactly what test(renderer): give the full-App toolbar test an explicit 15s budget #531 set for the toolbar test one function above.Verification
vitest run --config <temp> renderer/test/App.test.tsx -t "reanchors a repeated project turn link without replacing the conversation draft"→Tests 1 passed | 110 skipped (111), the test itself in1441ms.Acceptance
Node 24 / macos-14andNode 24 / ubuntu-latestboth green on fresh runs of this branch and ofmainafter merge.App.test.tsxchanges behaviour: the diff is one added comment plus});→}, 15_000);on a singleit.Found during the 2026-09-29 duty sweep while checking why #527's macOS job failed while ubuntu passed in the same run.
Closes #532.