gutenberg icon indicating copy to clipboard operation
gutenberg copied to clipboard

Project: Remove Puppeteer

Open Mamaduka opened this issue 1 year ago • 5 comments

What?

Now that Playwright migration is completed, we can safely remove Puppeteer and related.

Testing Instructions

CI should be green.

Mamaduka avatar Feb 23 '24 11:02 Mamaduka

I think this needs to become a peer dependency just like Playwright. @swissspidy, @gziolo what do you think?

https://github.com/WordPress/gutenberg/blob/8ce1a6cc74afcba5a49f39cc08883a850f112a4d/packages/scripts/package.json#L79

Mamaduka avatar Feb 23 '24 11:02 Mamaduka

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 props-bot label.

If you're merging code through a pull request on GitHub, copy and paste the following into the bottom of the merge commit message.

Co-authored-by: Mamaduka <[email protected]>
Co-authored-by: ellatrix <[email protected]>
Co-authored-by: talldan <[email protected]>
Co-authored-by: gziolo <[email protected]>
Co-authored-by: youknowriad <[email protected]>
Co-authored-by: ntsekouras <[email protected]>
Co-authored-by: kevin940726 <[email protected]>

To understand the WordPress project's expectations around crediting contributors, please review the Contributor Attribution page in the Core Handbook.

github-actions[bot] avatar Feb 23 '24 11:02 github-actions[bot]

I think this needs to become a peer dependency just like Playwright. @swissspidy, @gziolo what do you think?

https://github.com/WordPress/gutenberg/blob/8ce1a6cc74afcba5a49f39cc08883a850f112a4d/packages/scripts/package.json#L79

As long as it works when using @wordpress/scripts alone which it should, it's fine with me.

gziolo avatar Feb 23 '24 12:02 gziolo

@Mamaduka can we remove the npm dependency entirely since we now recommend playwright, It can be a breaking change in the wp-scripts package but that seems fine.

youknowriad avatar Feb 23 '24 13:02 youknowriad

Is this all that needs to be removed? What about the e2e-tests package?

First we’ll need to relocate test plugins in different directory and then I guess deprecate the package. Not sure what’s the policy about that.

Mamaduka avatar Feb 23 '24 17:02 Mamaduka

First we’ll need to relocate test plugins in different directory and then I guess deprecate the package. Not sure what’s the policy about that.

I think @wordpress/nux is a package that has been deprecated in the past. There was also an attempt to remove it in the past which didn't go so well as it's used by core. This one might be different as it's only a dev dependency. 🤔

talldan avatar Feb 26 '24 07:02 talldan

@Mamaduka can we remove the npm dependency entirely since we now recommend playwright, It can be a breaking change in the wp-scripts package but that seems fine.

➕ to this.

ntsekouras avatar Mar 06 '24 09:03 ntsekouras

Another smaller thing is that we can now reference npm run test:e2e directly to npm run test:e2e:playwright in this repo. We can keep the test:e2e:playwright script for a while for muscle memory.

kevin940726 avatar Mar 07 '24 07:03 kevin940726

Good point, @talldan!

I'll create a separate issue to remove Puppeteer from the scripts package. We can discuss the best options there.

Mamaduka avatar Apr 02 '24 07:04 Mamaduka

Decided to rebase this and it'll auto-merge when all tests pass.

talldan avatar Apr 02 '24 07:04 talldan

Flaky tests detected in 34b004e790429b978b16bae2c506fdeaa6bae6cf. Some tests passed with failed attempts. The failures may not be related to this commit but are still reported for visibility. See the documentation for more information.

🔍 Workflow run URL: https://github.com/WordPress/gutenberg/actions/runs/8519245299 📝 Reported issues:

  • #59579 in /test/e2e/specs/editor/various/multi-block-selection.spec.js

github-actions[bot] avatar Apr 02 '24 08:04 github-actions[bot]

Oops, I forgot to add the co-authors. Sorry everyone 😞

talldan avatar Apr 02 '24 08:04 talldan