Skip to content

[lexical-table] Chore: Give the rectangular table selection sweep a 30 s timeout - #9769

Merged
zurfyx merged 1 commit into
mainfrom
zurfyx/ci-table-selection-timeout
Nov 3, 2026
Merged

zurfyx merged 1 commit into
mainfrom
zurfyx/ci-table-selection-timeout

Conversation

@zurfyx

@zurfyx zurfyx commented Nov 3, 2026

Copy link
Copy Markdown
Member

Description

copy, delete and paste of every selection are unchanged: plain (added in #9749) timed out on main's core-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 (TableSelectionCoveredRows uses 30000, LexicalTableNode and LexicalTableCellNode 15000). 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.
  • CI on this PR.

@vercel

vercel Bot commented Nov 3, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
lexical Ready Ready Preview Nov 3, 2026 8:05pm UTC
lexical-playground Ready Ready Preview Nov 3, 2026 8:05pm UTC

Request Review

@meta-cla meta-cla Bot added the CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. label Nov 3, 2026
@meta-code-review

meta-code-review Bot commented Nov 3, 2026 •

Copy link
Copy Markdown

AI review status for this pull request.

Review status Updated
🟢 Reviewed (for maintainers only) Nov 3, 2026, 8:18 PM UTC

@pkg-pr-new

pkg-pr-new Bot commented Nov 3, 2026

Copy link
Copy Markdown
lexical

npm i https://pkg.pr.new/lexical@9769

@lexical/a11y

npm i https://pkg.pr.new/@lexical/a11y@9769

@lexical/clipboard

npm i https://pkg.pr.new/@lexical/clipboard@9769

@lexical/code

npm i https://pkg.pr.new/@lexical/code@9769

@lexical/code-core

npm i https://pkg.pr.new/@lexical/code-core@9769

@lexical/code-prism

npm i https://pkg.pr.new/@lexical/code-prism@9769

@lexical/code-shiki

npm i https://pkg.pr.new/@lexical/code-shiki@9769

@lexical/compiler

npm i https://pkg.pr.new/@lexical/compiler@9769

@lexical/devtools-core

npm i https://pkg.pr.new/@lexical/devtools-core@9769

@lexical/dragon

npm i https://pkg.pr.new/@lexical/dragon@9769

@lexical/eslint-plugin

npm i https://pkg.pr.new/@lexical/eslint-plugin@9769

@lexical/extension

npm i https://pkg.pr.new/@lexical/extension@9769

@lexical/fast-check

npm i https://pkg.pr.new/@lexical/fast-check@9769

@lexical/file

npm i https://pkg.pr.new/@lexical/file@9769

@lexical/hashtag

npm i https://pkg.pr.new/@lexical/hashtag@9769

@lexical/headless

npm i https://pkg.pr.new/@lexical/headless@9769

@lexical/history

npm i https://pkg.pr.new/@lexical/history@9769

@lexical/html

npm i https://pkg.pr.new/@lexical/html@9769

@lexical/internal

npm i https://pkg.pr.new/@lexical/internal@9769

@lexical/link

npm i https://pkg.pr.new/@lexical/link@9769

@lexical/list

npm i https://pkg.pr.new/@lexical/list@9769

@lexical/mark

npm i https://pkg.pr.new/@lexical/mark@9769

@lexical/markdown

npm i https://pkg.pr.new/@lexical/markdown@9769

@lexical/mdast

npm i https://pkg.pr.new/@lexical/mdast@9769

@lexical/offset

npm i https://pkg.pr.new/@lexical/offset@9769

@lexical/overflow

npm i https://pkg.pr.new/@lexical/overflow@9769

@lexical/plain-text

npm i https://pkg.pr.new/@lexical/plain-text@9769

@lexical/react

npm i https://pkg.pr.new/@lexical/react@9769

@lexical/rich-text

npm i https://pkg.pr.new/@lexical/rich-text@9769

@lexical/selection

npm i https://pkg.pr.new/@lexical/selection@9769

@lexical/table

npm i https://pkg.pr.new/@lexical/table@9769

@lexical/tailwind

npm i https://pkg.pr.new/@lexical/tailwind@9769

@lexical/text

npm i https://pkg.pr.new/@lexical/text@9769

@lexical/utils

npm i https://pkg.pr.new/@lexical/utils@9769

@lexical/y

npm i https://pkg.pr.new/@lexical/y@9769

@lexical/yjs

npm i https://pkg.pr.new/@lexical/yjs@9769

commit: da1a52e

@meta-code-review meta-code-review Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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 / ### After shape from .github/pull_request_template.md and AGENTS.md (Commits and Pull Requests), with the real output pasted in: main's timeout annotation as Before and the passing vitest run output as After.

A test-only change needs no changeset (AGENTS.md, Changesets).

@zurfyx
zurfyx added this pull request to the merge queue Nov 3, 2026
Merged via the queue into main with commit 936f1ad Nov 3, 2026
57 of 58 checks passed

This branch was successfully deployed

2 active deployments
Preview – lexical — da1a52ed Deployed Nov 3, 2026 by vercel[bot]
Preview – lexical-playground — da1a52ed Deployed Nov 3, 2026 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant