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

[lexical-playground] CI: fix flaky collab test #6240

Merged
merged 3 commits into from
Jun 3, 2024
Merged

Conversation

potatowagon
Copy link
Contributor

@potatowagon potatowagon commented Jun 3, 2024

Description

https://github.com/facebook/lexical/actions/runs/9294132717/job/25578693971?pr=6201

^ this e2e collab test fails occasionally on the CI due to flakiness. the output is an extra <p></br><p>

add a callback to modify actual html. this callback is useful to adjust for flaky html outputs

Closes #6241

Test plan

npm run start & npm run test-e2e-collab-chromium

✓ 1 [chromium] › packages/lexical-playground/tests/e2e/Toolbar.spec.mjs:37:8 › Toolbar › Insert image caption + table (2.5s)

Copy link

vercel bot commented Jun 3, 2024

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 Jun 3, 2024 7:26am
lexical-playground ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jun 3, 2024 7:26am

@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 Jun 3, 2024
@potatowagon potatowagon marked this pull request as draft June 3, 2024 07:02
Copy link

github-actions bot commented Jun 3, 2024

size-limit report 📦

Path Size
lexical - cjs 28.33 KB (0%)
lexical - esm 28.14 KB (0%)
@lexical/rich-text - cjs 36.76 KB (0%)
@lexical/rich-text - esm 28.1 KB (0%)
@lexical/plain-text - cjs 35.37 KB (0%)
@lexical/plain-text - esm 25.33 KB (0%)
@lexical/react - cjs 38.52 KB (0%)
@lexical/react - esm 29.12 KB (0%)

@potatowagon potatowagon changed the title add modifications callback to html [lexical-playground] CI: fix flakey collab test Jun 3, 2024
@potatowagon potatowagon changed the title [lexical-playground] CI: fix flakey collab test [lexical-playground] CI: fix flaky collab test Jun 3, 2024
@potatowagon potatowagon marked this pull request as ready for review June 3, 2024 07:29
@@ -99,6 +99,25 @@ test.describe('Toolbar', () => {
ignoreClasses: true,
ignoreInlineStyles: true,
},
(actualHtml) =>
// flaky fix: remove the extra <p><br /></p> that appears occasionally in CI runs
Copy link
Contributor

Choose a reason for hiding this comment

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

do we want to add a check for collab if flakyness is for collab mode only ?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

afaik these extra chars only appear for collab, tho if it happens to appear for non collab, no harm helping to remove the xtra chars so the test is not flaky

@potatowagon potatowagon added the extended-tests Run extended e2e tests on a PR label Jun 3, 2024
@Sahejkm
Copy link
Contributor

Sahejkm commented Jun 3, 2024

i think we don't need to add label if the PR is approved ald, it cancelled the run https://github.com/facebook/lexical/actions/runs/9346276629/usage and restarted a new one :(

@potatowagon
Copy link
Contributor Author

i think we don't need to add label if the PR is approved ald, it cancelled the run https://github.com/facebook/lexical/actions/runs/9346276629/usage and restarted a new one :(

sorry, perhaps i forgot to refresh the page, i added the tag when i saw the e2e tests were skipped

@potatowagon potatowagon added this pull request to the merge queue Jun 3, 2024
Merged via the queue into main with commit 0d93363 Jun 3, 2024
40 of 67 checks passed
@potatowagon potatowagon deleted the fix-flaky-collab branch September 11, 2024 07:24
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. extended-tests Run extended e2e tests on a PR
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Stabilise CI: resolve flaky e2e tests
3 participants