-
Notifications
You must be signed in to change notification settings - Fork 4.6k
Automated Testing: Re-enable storybook smoke test #71126
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
Conversation
|
The following accounts have interacted with this PR and/or linked issues. I will continue to update these lists as activity occurs. You can also manually ask me to refresh this list by adding the If you're merging code through a pull request on GitHub, copy and paste the following into the bottom of the merge commit message. To understand the WordPress project's expectations around crediting contributors, please review the Contributor Attribution page in the Core Handbook. |
cda2681 to
00487f9
Compare
|
Flaky tests detected in f609ead. 🔍 Workflow run URL: https://github.com/WordPress/gutenberg/actions/runs/16929683265
|
tyxla
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks @t-hamano! 🚀
As a follow-up, it would be nice to try and see what we can do to make the check faster. Right now it appears to take too long time for a smoke test.
Thanks for the feedback! Before smoke tests, Storybook checks took about 7 minutes See, now it’s around 9.5 minutes, just a reasonable increase for the added value. |
Co-authored-by: Andrew Duthie <[email protected]>
|
Thanks everyone for the reviews! @im3dabasia If there's a way to make the check faster, let's address that in a follow-up. |
|
Somehow, the CI started to fail again with the following error: Details
The CI failures started around the same time as the new Playwright v1.55.0 was released, so I'm sure that the Playwright update is affecting us. I believe we pinned all libraries to local versions with this PR, but maybe I missed something. Updating the Playwright version may solve the problem, but it won't be a fundamental solution. Any ideas would be appreciated 🙏 |
|
Testing what happens if I explicitly install Chromium: #71284 Update: Installing the test runner first seems to resolve the problem. |
What?
This PR re-enables the storybook smoke test and makes some enhancements to prevent CI failures in the feature.
Why?
To prevent Storybook stories from breaking, #69679 added a smoke test. However, it was subsequently skipped by #69943 due to CI failures caused by a new release of Playwright.
We need to re-enable this CI to ensure that storybook stories don't break.
How?
I used the
--no-installflag to avoid any impact from future Playwright upgrades. This should install the local installation of Playwright. This change should not be necessary as #70503 has updated the local playwright to the latest version, but it is a precaution for the future.Additionally, I have pinned the test runner version to
0.22.1, as the latest version of the test runner causes CI to fail with the following error:Example: https://github.com/WordPress/gutenberg/actions/runs/16819117756/job/47642444066
My guess is that the following change made in the test runner version
0.23.0is the cause:storybookjs/test-runner#556
In the future, if we update Storybook to the latest version, we will be able to remove this pinned version.
Testing Instructions
Check the CI and make sure it's properly smoke tested.
https://github.com/WordPress/gutenberg/actions/runs/16819975585/job/47644834408?pr=71126