Skip to content

Split test files and skip flaky tests in linux + collab - #4394

Merged
acywatson merged 9 commits into
mainfrom
disable-flakes
Apr 25, 2023
Merged

acywatson merged 9 commits into
mainfrom
disable-flakes

Conversation

@acywatson

@acywatson acywatson commented Apr 23, 2023 •

Copy link
Copy Markdown
Contributor

This experiments with splitting up large test files into smaller ones that can better leverage Playwright's parallel execution. On my M1, this takes execution of the CopyAndPaste suite from ~39s to ~22s, which represents a roughly 43% reduction in test runtime. This uses 5 workers though, and I'm not sure the CI machines on GitHub will provide the same results.

If this works well, we can see if it makes sense to split other suites, or maybe even split down to one-test-per-file (not sure how linearly the execution time savings will scale with test granularity).

Also, we're having consistent CI failures due to flaky tests in Linux/Collab suite. We're tracking a long-term fix in #3915, but until then, this erodes confidence in the CI and burns a ton of compute on retries and re-runs.

@facebook-github-bot facebook-github-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 Apr 23, 2023
@vercel

vercel Bot commented Apr 23, 2023 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
lexical ✅ Ready (Inspect) Visit Preview 💬 Add feedback Apr 24, 2023 9:25pm
lexical-playground ✅ Ready (Inspect) Visit Preview 💬 Add feedback Apr 24, 2023 9:25pm

@github-actions

github-actions Bot commented Apr 23, 2023 •

Copy link
Copy Markdown

size-limit report 📦

Path Size Loading time (3g) Running time (snapdragon) Total time
packages/lexical/dist/Lexical.js 26.94 KB (0%) 539 ms (0%) 449 ms (+65.18% 🔺) 987 ms
packages/lexical-rich-text/dist/LexicalRichText.js 37.8 KB (0%) 757 ms (0%) 246 ms (-23.18% 🔽) 1.1 s
packages/lexical-plain-text/dist/LexicalPlainText.js 37.78 KB (0%) 756 ms (0%) 449 ms (+41.83% 🔺) 1.3 s

This branch was successfully deployed

2 active deployments
Preview – lexical-playground — 6cb6cdce Deployed Apr 24, 2023 by vercel[bot]
Preview – lexical — 6cb6cdce Deployed Apr 24, 2023 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.

3 participants