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

playwright: cleanup build process #12248

Merged
merged 1 commit into from
Mar 13, 2023
Merged

Conversation

vince-fugnitto
Copy link
Member

What it does

The pull-request cleans up the build process which previously would automatically install playwright dependencies such as chromium when performing yarn on the repo (due to the prepare script). The change cleans up the build so that playwright can be built only when needed (ex: when we need to run the suite) and not unnecessarily.

How to test

  • confirm that CI successfully passes

Review checklist

Reminder for reviewers

@vince-fugnitto vince-fugnitto added the playwright issues related to playwright tests label Mar 1, 2023
@vince-fugnitto vince-fugnitto marked this pull request as ready for review March 1, 2023 18:28
Copy link
Member

@msujew msujew left a comment

Choose a reason for hiding this comment

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

LGTM 👍

@vince-fugnitto
Copy link
Member Author

@planger do you have any objections to the following approach?

@planger
Copy link
Contributor

planger commented Mar 3, 2023

Thanks for pinging me @vince-fugnitto! I don't have any objections. Good idea to minify if Playwright isn't needed.
I just think we should also update examples/playwright/docs/DEVELOPING.md and mention that users should run yarn build in examples/playwright now, am I right?

The commit updates the `@theia/playwright` package to not install it's dependencies on startup
since we often do not run the tests manually but instead handles the package similarly to our examples where
they can built on demand. The change should improve the build process without irrelevant logs.

Signed-off-by: vince-fugnitto <[email protected]>
@vince-fugnitto vince-fugnitto force-pushed the vf/cleanup-playwright branch from 33d97be to 8cf978f Compare March 3, 2023 13:54
@vince-fugnitto vince-fugnitto merged commit de3fc72 into master Mar 13, 2023
@vince-fugnitto vince-fugnitto deleted the vf/cleanup-playwright branch March 13, 2023 12:32
@github-actions github-actions bot added this to the 1.36.0 milestone Mar 13, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
playwright issues related to playwright tests
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants