Repository navigation
[lexical-table] Chore: Give the rectangular table selection sweep a 30 s timeout - #9769
Merged
Merged
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
zurfyx
requested review from
acywatson,
etrepum,
ivailop7 and
potatowagon
as code owners
November 3, 2026 20:03
|
AI review status for this pull request.
|
lexical
@lexical/a11y
@lexical/clipboard
@lexical/code
@lexical/code-core
@lexical/code-prism
@lexical/code-shiki
@lexical/compiler
@lexical/devtools-core
@lexical/dragon
@lexical/eslint-plugin
@lexical/extension
@lexical/fast-check
@lexical/file
@lexical/hashtag
@lexical/headless
@lexical/history
@lexical/html
@lexical/internal
@lexical/link
@lexical/list
@lexical/mark
@lexical/markdown
@lexical/mdast
@lexical/offset
@lexical/overflow
@lexical/plain-text
@lexical/react
@lexical/rich-text
@lexical/selection
@lexical/table
@lexical/tailwind
@lexical/text
@lexical/utils
@lexical/y
@lexical/yjs
commit: |
There was a problem hiding this comment.
This looks good to me. A 30 s timeout matches what the other table sweeps already use (TableSelectionCoveredRows.test.ts passes 30000). Because the argument is inside the for loop, all three generated cases get it, and nothing the test asserts changes. The failure is real: the plain case hit Vitest's 5000 ms default in main's core-tests / unit (22.x) job, and both unit jobs pass on this branch.
Optional, non-blocking:
- The Test plan could follow the
### Before/### Aftershape from.github/pull_request_template.mdand AGENTS.md (Commits and Pull Requests), with the real output pasted in: main's timeout annotation as Before and the passingvitest runoutput as After.
A test-only change needs no changeset (AGENTS.md, Changesets).
This branch was successfully deployed
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.
Description
copy, delete and paste of every selection are unchanged: plain(added in #9749) timed out on main'score-tests / unit (22.x)run for 23ddbfc: 5,294 ms against vitest's 5 s default. The test sweeps all 81 anchor/focus pairs of a 3x3 table, copying each selection, pasting it twice (Lexical JSON and HTML) and deleting it, so a loaded runner pushes it past the default. Locally the three cases take about 1 s each.This gives the test a 30 s timeout, as other table sweeps already have (
TableSelectionCoveredRowsuses 30000,LexicalTableNodeandLexicalTableCellNode15000). No behaviour or expectation changes.Test plan
pnpm exec vitest run --project unit packages/lexical-table/src/__tests__/unit/RectangularTableSelection.test.ts: 7/7 pass.