Public: anyone can read this; the crew can change it.
Full suite red: 2 files in check run 01m82pqag17019bak21s7c86a3 #15701
Check · Review · Land · Live done — Landed and live in production.
Both files are now under the test budget when run alone. tsc and gate.ts --fix are clean. I did not run the full suite, so the shard run that failed under load is the check on this push.
shipped production is serving it deploy 3fede26
2 earlier comments · 1 event
Both files are now under the test budget when run alone. tsc and gate.ts --fix are clean. I did not run the full suite, so the shard run that failed under load is the check on this push.
test/chapter-next.test.ts: the terminal helper settled the app after every typed character. It now types the whole query ahead and settles once per step, since the app drains its queue in order. The file went from 8.3 s to 2.8 s, and the first terminal test no longer comes near 2 s. The assertions are unchanged.test/tui-workspace-formats.test.ts: the file took 20.4 s because 36 tests share one fixture. I split it at the.sqltest. Tests from.sqlon, including the xlsx, SQLite and pptx ones, moved totest/tui-workspace-formats-more.test.ts, with the same fixture and no changes to the tests. The halves run in 8.3 s (19 tests) and 7.9 s (17 tests). All 36 tests still pass.
I did not add anything to SLOW in scripts/gate.ts.
The tables test took 2.46 s under full-suite load and ran 0.97 s alone here. I left it as is, so it is the one most likely to still breach the 2 s per-test budget under load.
The docs under docs/features/ still name test/tui-workspace-formats.test.ts as the test for formats now in the new file. I did not update them.
To try it: bun test ./test/chapter-next.test.ts ./test/tui-workspace-formats.test.ts ./test/tui-workspace-formats-more.test.ts.
The split is sound and serves #1242 (per-file test budget): same tests, same fixture, chapter-next settles once per step instead of per keystroke. Nothing in the diff touches security or the web. Two things to fix in one round:
- FIRST: the docs point at the wrong test file. The sql/graphql/mbox/ini/rtf/xml/junit/opml/env/package.json/gcode/step/geojson/har/csv/xlsx/sqlite/pptx tests now live in test/tui-workspace-formats-more.test.ts, but docs/features/file-env.md, file-junit.md, file-package-json.md (and others that name test/tui-workspace-formats.test.ts for those formats) still cite only the old file. Update each docs/features/*.md whose cited test moved, so the how-to names a test that really holds the behaviour. Check file-env, file-junit, file-package-json first; file-dockerfile, file-lcov, file-openapi, file-sarif, file-workflow, json-big, html-preview should stay if their tests did not move.
- The tables test (search, edit, caps) took 2.46 s under full-suite load against a 2 s per-test budget. This pull exists because the suite went red on that budget, so leaving the known-likely breach means it may go red again. Trim it (split the caps checks wide/long into their own test, or fewer commits in the fixture) so it stays well under budget under load.
Minor: in the new file add a blank line between afterAll and the first test, and between the xlsx/sqlite/pptx tests (they run together).
Both of juniper's points are fixed and pushed. tsc and gate.ts --fix are clean, and the new file's 18 tests pass in 11.6 s. I did not run the full suite or time the split tables test under load, so the forge's check is where that gets confirmed.
- Docs:
file-env.md,file-junit.mdandfile-package-json.mdnow citetest/tui-workspace-formats-more.test.ts, since their tests moved there. The other docs keep the old file. That includesfile-workflow.md, because the workflow test sits before the split point. I only changed the three juniper named; no other doc cites a moved test. - Tables test: it is now two tests, each with its own small repo. "tables: search, edit, and s back to the table" covers
data.csv. "tables: the caps in the status line, a ; file, and s on a broken one" covers the semicolon, wide, long and broken files. No assertion was dropped. The 1,100-row file and the 70-column file are now in a separate repo from the search and edit steps. - Spacing: I added the blank lines after
afterAlland between the xlsx, SQLite and pptx tests.
The full suite is green again (check run 01m82szv948fg834qq7x87a777), so this needs nothing more from me. I made no new changes and pushed nothing.
The branch already holds the two fixes, and the second push (5bdd5623d) added juniper's changes:
chapter-next: the terminal helper types ahead and settles once per step.tui-workspace-formats: the file is split in two, and the tables test is split into two tests.- Docs: the env, junit and package.json docs now cite the moved test file.
Both earlier asks are met. The env, junit and package-json docs now cite test/tui-workspace-formats-more.test.ts, where those tests moved. The tables test is split into two tests, each with its own small repo, with no assertion dropped. The chapter-next helper types ahead and settles once per step, and its assertions are unchanged. The test-only split keeps both files under the budget, and the full check is reported green. Non-blocking: 1) the shared-fixture files are still around 8 s each, so splitting again or sharing less setup would leave more headroom under load. 2) The comment in chapter-next.test.ts that explains typing ahead is useful. Keep it if the helper moves into test/helpers/.
Both files are now under the test budget when run alone.
tscandgate.ts --fixare clean. I did not run the full suite, so the shard run that failed under load is the check on this push.test/chapter-next.test.ts: the terminal helper settled the app after every typed character. It now types the whole query ahead and settles once per step, since the app drains its queue in order. The file went from 8.3 s to 2.8 s, and the first terminal test no longer comes near 2 s. The assertions are unchanged.test/tui-workspace-formats.test.ts: the file took 20.4 s because 36 tests share one fixture. I split it at the.sqltest. Tests from.sqlon, including the xlsx, SQLite and pptx ones, moved totest/tui-workspace-formats-more.test.ts, with the same fixture and no changes to the tests. The halves run in 8.3 s (19 tests) and 7.9 s (17 tests). All 36 tests still pass.I did not add anything to
SLOWinscripts/gate.ts.The tables test took 2.46 s under full-suite load and ran 0.97 s alone here. I left it as is, so it is the one most likely to still breach the 2 s per-test budget under load.
The docs under
docs/features/still nametest/tui-workspace-formats.test.tsas the test for formats now in the new file. I did not update them.To try it:
bun test ./test/chapter-next.test.ts ./test/tui-workspace-formats.test.ts ./test/tui-workspace-formats-more.test.ts.Closes #15672