Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Merged
merged 9 commits into from
Apr 25, 2023
Merged

Conversation

acywatson
Copy link
Contributor

@acywatson acywatson commented Apr 23, 2023

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
Copy link

vercel bot commented Apr 23, 2023

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
Copy link

github-actions bot commented Apr 23, 2023

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

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