Repository navigation
test: stop tests that pass alone from timing out in a loaded full run - #1177
Merged
jonkwheeler merged 3 commits intoNov 12, 2026
Merged
Conversation
A full parallel run on a busy machine failed tests that pass alone and assert results, not speed: - content-mapper, typescript-plugin and language-server spawn `tsc`, `tsrx-tsc` or a language server and used the 5s default. They now get 60s, the limit those packages already set on their slowest tests. - The Vue type-only checks build a TypeScript program per case. They get 30s, as the tsrx-utils `*-types` suites do. - The React typecheck fixtures took up to 28.9s alone against 30s. They get 120s. - The Shiki CodeMirror test waited 1s, the `vi.waitFor` default, for highlighting that loads asynchronously. It now waits up to 20s. Co-Authored-By: Claude Opus 5.5 <[email protected]>
…timing window Each session waited 5s, counted from before the server started, for each startup warning. Under load a warning could arrive later and fail the test, and every case that expects no warning spent 5s waiting for the wait to time out. The server sends its warnings while it handles `initialized`, so they reach the client before the answer to a request sent after it. Record every warning, send a document symbol request after opening the file, and assert on the recorded warnings once it answers. Its tests now take about 6s instead of about 22s. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Contributor
There was a problem hiding this comment.
Cursor Bugbot has reviewed your changes using default effort and found 1 potential issue.
❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.
Reviewed by Cursor Bugbot for commit 4ca2a92. Configure here.
…t runs The warning recorder used wait_for_notification's 30s default timeout, which removes the listener when it expires. Under a 60s test limit, a session whose document symbol answer came after 30s lost its warnings: the warning cases failed and the no-warning cases passed without checking anything. The recorder now times out with the test, and the session fails if it stopped recording before the server answered. Co-Authored-By: Claude Opus 5.5 <[email protected]>
jonkwheeler
marked this pull request as ready for review
October 27, 2026 16:44
jonkwheeler
added a commit
to jonkwheeler/tsrx
that referenced
this pull request
Nov 6, 2026
At the end of `type-only-types.test.js` it conflicted with tsrx-org#1177, which changes the lines before it. Co-Authored-By: Claude Opus 5.5 <[email protected]>
jonkwheeler
added a commit
that referenced
this pull request
Nov 12, 2026
…pins (#1296) * fix(vue): leave Vue's slot flag out of the type-only @pending boundary `vue-jsx-vapor` 3.2.29 types a component's `v-slots` from its real slots, so the `_` flag on `Suspense` is an excess property and every `@try` with `@pending` reports TS2322 in the editor. The flag only matters at runtime, so keep it in compiled output and drop it from the type-only print. * chore(vue): bump vue to 3.6.0-rc.14 and vue-jsx-vapor to 3.2.29 Moves every dev pin, and adds `vue-jsx-vapor` as a dev dependency of `@tsrx/vue` so its peer stops resolving to 3.2.14 in the lockfile. Runs the Vue runtime tests on the real `vue-jsx-vapor` runtime instead of a hand-copied shim. The shim had the #870 bug and lacked `normalizeVaporSlots`, which the new compiler output imports, so it would have hidden the fix. * test(vue): run the worker regression in a worker-like scope The test matched text: it looked only at the first mention of `__VUE_HMR_RUNTIME__` and rejected only uses at column 0, so an indented, unguarded `createRecord` after one guarded use passed. It now runs the served module with `self` and none of Vue's globals, and checks what it posted. * test(vue): pin the Suspense slot flag in compiled output Nothing failed when `_: 1` was dropped from compiled output. Pin it there and pin its absence from type-only output, for both ways `@pending` is lowered. Correct the changeset and 4a43094's message: `vue-jsx-vapor` rejects the flag from 3.2.20, not 3.2.29, and leaving it out clears the error from 3.2.22. 4a43094's "the flag only matters at runtime" is also unsupported: removing it fails no runtime test, and I haven't shown what depends on it. * chore(vue): drop an unused paths entry from the plugin test tsconfig Nothing in the project imports Vue's Vapor browser build. Only `vue-runtime-shim.js` does, and that file isn't part of the project. `tsc` reports the same with and without the entry. * test(vue): move the Suspense slot flag test to its own file At the end of `type-only-types.test.js` it conflicted with #1177, which changes the lines before it. * test(vue): stop the slot flag test passing on missing output The type-only assertion was only a negative match, so it also passed if the `Suspense` boundary was gone. Require the boundary, and no compile errors, before checking that the flag is absent. * test(vue): let the slot flag test accept a private Suspense name #1175 and #1222 import `Suspense` as `__Suspense`, so the test failed once either was merged with this branch. The name isn't what it's about. * style(vue): format the slot flag test * fix(vue): require vue 3.6 and vue-jsx-vapor 3.2.27 as peers Raise the floors in all five packages that declare them: `@tsrx/vue`, `@tsrx/vue-runtime`, `@tsrx/vite-plugin-vue`, `@tsrx/rspack-plugin-vue` and `@tsrx/bun-plugin-vue`. `vue >=3.6.0-0` admits the 3.6 prereleases and rejects 3.5, which has no Vapor. The old `>=3.5` rejected every 3.6 prerelease under npm, so no Vapor setup installed with npm's defaults. `vue-jsx-vapor` 3.2.27 is the first release with the fixes for both #186 (3.2.26) and #870 (3.2.27). Minor, because a project on `vue-jsx-vapor` 3.2.26 that installs today under pnpm's `strict-peer-dependencies` fails after this. * docs(vue): name Vue 3.6 in the install commands `vue` alone installs Vue's `latest`, 3.5.45, which has no Vapor: with pnpm, `vite build` then fails with MISSING_EXPORT. Name `vue@^3.6.0-0`, which picks the newest 3.6 prerelease now and stable 3.6 once it ships. * docs(changeset): drop the 3.2.20 to 3.2.22 notes from the slot flag changeset With `vue-jsx-vapor` 3.2.27 as the floor, every supported version rejects the flag, and every one accepts the output without it. * docs(changeset): say which Vue prereleases the new floor admits `>=3.6.0-0` admits 3.6.0's prereleases, not later ones such as 3.6.1-alpha. Co-Authored-By: Claude Opus 5.5 <[email protected]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

Summary
A full
pnpm teston a busy machine no longer fails tests that pass alone just because they run slowly. Each limit is still there to catch a hang. These tests check results, not speed.content-mapper,typescript-plugin,language-serverprojects (spawntsc,tsrx-tscor a language server)testTimeout, the limit these packages already use for their slowest tests. Files that set their own limit keep it.tsrx-vuetype-only-types.test.js(a TypeScript program per case)tsrx-utils*-typessuites havevite-plugin-reactreact-aria/react-query/react-routertypecheck fixturesreact-ariatook 28.9s alone under load)website-tsrx/tests/shiki-codemirror.test.tsvi.waitFor1s defaultlanguage-server/tests/typescriptDiscoveryLsp.test.jsfailed differently:Timed out waiting for notification window/showMessage. Each session gave every startup warning 5s, counted from before the server process started. A raised timeout alone would have made each "no warning" case wait the whole limit. The server sends these warnings while it handlesinitialized, so they reach the client before the answer to any later request. The session now records every warning, sends atextDocument/documentSymbolrequest after opening the file, and the tests check the recorded warnings once it answers. The only limit left is the recorder's own, as long as the 60s test timeout, and a session fails if the recorder stops before the server answers, so a "no warning" case cannot pass without checking. The tests take about 6s instead of about 22s.Out of scope, as the issue notes:
vscode-plugin/tests/grammar.test.jsunder load fails inside Shiki's per-line tokenize time limit, not on a test timeout.Test-only change, so there is no changeset.
Verification
npx vitest run --project website --project tsrx-vue --project content-mapper --project typescript-plugin --project language-server --project vite-plugin-react: 57 files, 1542 passed, 15 skippedtypescriptDiscoveryLsp.test.js, 4 copies at once: 6/6 passed in eachnpx vitest runat load average 60 to 90: 176 files, 10009 passed, 82 skipped, 0 failed. For comparison, a full run of a branch off main without these changes, at load average about 160, failed 19 tests: every one was a timeout listed in the table above, plus thevscode-plugingrammar test that hits Shiki's tokenize limit.pnpm typecheck: cleannpx prettier --checkon the changed files: cleanRelated
Fixes #1157
Related: #310, #1106
🤖 Generated with Claude Code
Note
Low Risk
Test-only timeout and assertion changes; no production code paths affected.
Overview
Raises Vitest timeouts for slow, worker-contended suites so a full
pnpm testdoes not flake on tests that still pass in isolation.typescript-plugin,content-mapper, andlanguage-serverprojects get a shared 60stestTimeout;tsrx-vuetype-only-typesgets 30s;vite-plugin-reactreact-aria/query/router fixture typechecks go from 30s to 120s per case;shiki-codemirroruses a 20svi.waitForand 30s test timeout.typescriptDiscoveryLsp.test.jsis refactored so startupwindow/showMessagewarnings are collected by a non-matching listener, then asserted after a post-initializedtextDocument/documentSymbolrequest—avoiding per-warning 5s waits and “no second warning” timeout races—while still using the 60s hook/test config.Reviewed by Cursor Bugbot for commit 2a18db8. Bugbot is set up for automated code reviews on this repo. Configure here.