Skip to content

fix(testing): update puppeteer, default to 'new' headless#6098

Merged
christian-bromann merged 12 commits intomainfrom
cb/fix-headless
Jan 16, 2025
Merged

fix(testing): update puppeteer, default to 'new' headless#6098
christian-bromann merged 12 commits intomainfrom
cb/fix-headless

Conversation

@christian-bromann
Copy link
Copy Markdown
Member

@christian-bromann christian-bromann commented Jan 16, 2025

What is the current behavior?

We are currently seeing issues in CI pipelines when running Stencils test command. This is related to Puppeteer (v20) trying to start an old version of Chrome (v120) with new headless mode which appears to fail.

NOTE:

This PR removes our Node.js v16 pipelines as we can't support them anymore. If you still use Node.js v16 please update!

What is the new behavior?

This patch allows to set a browserChannel testing property to set channel option to Chrome stable to ensure we use latest Chrome. As we can't yet update Puppeteer (as we are required to continue support for Node.js v16) this is the only workaround to ensure tests are passing again.

Documentation

n/a

Does this introduce a breaking change?

Setting the default value for browserHeadless to "new" is technically a breaking change but since the other behavior started to break anyway, this can be considered a bug fix.

  • Yes
  • No

Testing

n/a

Other information

n/a

@christian-bromann christian-bromann requested a review from a team as a code owner January 16, 2025 18:44
@christian-bromann christian-bromann merged commit 6537869 into main Jan 16, 2025
@christian-bromann christian-bromann deleted the cb/fix-headless branch January 16, 2025 22:48
@danyball
Copy link
Copy Markdown

Are you now official supporting puppeteer 24? If so, you should pls update the docu (https://stenciljs.com/docs/support-policy) ?

@christian-bromann
Copy link
Copy Markdown
Member Author

Thanks for reminding! I pushed an update. For v4 the policy has changed from Puppeteer v22 - v24. I doubt that previous promises that we would support Puppeteer v11 were actually accurate.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants